diff options
author | Andreas Schuh <andreas.schuh.84@gmail.com> | 2016-08-02 12:24:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-02 12:24:34 +0100 |
commit | 435f949dbbddadedde049feb1777449edcbc8eb3 (patch) | |
tree | 3cab45dd40d4ee35f59f2255ecdd4c936f43cb82 | |
parent | 22e4a534c189162bc136c1cb5056b7eef72ebfe5 (diff) | |
download | gflags-435f949dbbddadedde049feb1777449edcbc8eb3.tar.gz gflags-435f949dbbddadedde049feb1777449edcbc8eb3.tar.bz2 gflags-435f949dbbddadedde049feb1777449edcbc8eb3.zip |
test: Travis CI build static+shared in Release+Debug (#164)
-rw-r--r-- | .travis.yml | 16 |
1 files 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 |