forked from abseil/abseil-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Travis-CI Cmake jobs (abseil#109)
- Loading branch information
Showing
1 changed file
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# see https://docs.travis-ci.com/user/reference/trusty/#container-based-with-sudo-false | ||
sudo: false | ||
|
||
# see https://docs.travis-ci.com/user/languages/cpp/ | ||
language: cpp | ||
|
||
# For build environment setup | ||
# see https://docs.travis-ci.com/user/reference/overview/ | ||
matrix: | ||
include: | ||
# see https://docs.travis-ci.com/user/languages/cpp/#gcc-on-linux | ||
- os: linux | ||
dist: trusty | ||
compiler: gcc | ||
env: | ||
- BUILD_TYPE=Release | ||
- os: linux | ||
dist: trusty | ||
compiler: gcc | ||
env: | ||
- BUILD_TYPE=Debug | ||
|
||
# see https://docs.travis-ci.com/user/languages/cpp/#clang | ||
- os: linux | ||
dist: trusty | ||
compiler: clang | ||
env: | ||
- BUILD_TYPE=Release | ||
# Need to patch CPATH when using clang on linux | ||
# see https://github.com/travis-ci/travis-ci/issues/9550 | ||
- CPATH=/usr/local/clang-5.0.0/include/c++/v1 | ||
- LD_LIBRARY_PATH=/usr/local/clang-5.0.0/lib | ||
- os: linux | ||
dist: trusty | ||
compiler: clang | ||
env: | ||
- BUILD_TYPE=Debug | ||
# Need to patch CPATH when using clang on linux | ||
# see https://github.com/travis-ci/travis-ci/issues/9550 | ||
- CPATH=/usr/local/clang-5.0.0/include/c++/v1 | ||
- LD_LIBRARY_PATH=/usr/local/clang-5.0.0/lib | ||
|
||
- os: osx | ||
osx_image: xcode9.4 | ||
compiler: clang | ||
env: | ||
- BUILD_TYPE=Release | ||
- os: osx | ||
osx_image: xcode9.4 | ||
compiler: clang | ||
env: | ||
- BUILD_TYPE=Debug | ||
|
||
script: | ||
- cmake --version | ||
- cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DABSL_RUN_TESTS=ON -DABSL_USE_GOOGLETEST_HEAD=ON | ||
- cmake --build build --target all | ||
- CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test |