From 38370a10162b5f3cbfb6219d8018ceee06d4846e Mon Sep 17 00:00:00 2001 From: Sebastian Messmer Date: Thu, 27 Sep 2018 16:31:12 -0700 Subject: [PATCH] Add Release and RelWithDebInfo builds on Travis --- .travis.yml | 6 +++++- .travisci/build_and_test.sh | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) 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