From 435f949dbbddadedde049feb1777449edcbc8eb3 Mon Sep 17 00:00:00 2001 From: Andreas Schuh Date: Tue, 2 Aug 2016 12:24:34 +0100 Subject: [PATCH] test: Travis CI build static+shared in Release+Debug (#164) --- .travis.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3a27ac3..0989c7c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,16 +1,20 @@ -os: - - linux - - osx - # Ubuntu 14.04 Trusty support, to get newer cmake and compilers. sudo: required dist: trusty language: cpp -script: - - mkdir out && cd out && cmake -DGFLAGS_BUILD_TESTING=True .. && make && ctest +os: + - linux + - osx compiler: - clang - gcc + +env: + - CONFIG=Release + - CONFIG=Debug + +script: + - mkdir out && cd out && cmake -D CMAKE_BUILD_TYPE=$CONFIG -D GFLAGS_BUILD_SHARED_LIBS=ON -D GFLAGS_BUILD_STATIC_LIBS=ON -D GFLAGS_BUILD_TESTING=ON .. && cmake --build . --config $CONFIG && ctest -- 2.7.4