Title: Travis CI how to build debug and release?
Tags: travis-ci
Question: I have a C++ project and sometimes the release and debug code gets out of sync (some code is #ifdef'd out or breaks with diff compiler options).
I'd like Travis-CI to build both debug and release, how can I do it? If it can be done will this also work with the multiple compiler matrix? I.e would it allow me to build debug and release on g++ and clang?
Comment: Use `env` matrix: [example](https://github.com/forexample/hunter-simple/blob/master/.travis.yml)



{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 0, 'CommentCount': 1, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2015:00:01/08/15', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<travis-ci>', 'Title': 'Travis CI how to build debug and release?', 'ViewCount': 591, 'id': 27847363, 'user_AboutMe': '', 'user_AccountId': 1140768.0, 'user_DisplayName': 'paulm', 'user_Reputation': 5448.0, 'user_Views': 869.0, 'user_id': 1124744.0}}