diff --git a/.travis.yml b/.travis.yml index cbbac73e..703006d3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,13 @@ language: cpp sudo: required +os: osx compiler: # - gcc - clang -os: osx +env: + - BUILD_TARGET=Debug + - BUILD_TARGET=Release + - BUILD_TARGET=RelWithDebInfo install: - .travisci/install.sh script: diff --git a/.travisci/build_and_test.sh b/.travisci/build_and_test.sh index 35d06809..deb90903 100755 --- a/.travisci/build_and_test.sh +++ b/.travisci/build_and_test.sh @@ -31,7 +31,8 @@ cd cmake cmake --version # Build -cmake .. -DBUILD_TESTING=on -DCMAKE_BUILD_TYPE=Debug +echo Build target: ${BUILD_TARGET} +cmake .. -DBUILD_TESTING=on -DCMAKE_BUILD_TYPE=${BUILD_TARGET} make -j$NUMCORES ccache --show-stats