Skip to content

Commit

Permalink
Add Travis-CI Cmake jobs (abseil#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizux committed Oct 24, 2018
1 parent d460f42 commit 90fc828
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# 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

# see https://docs.travis-ci.com/user/languages/cpp/#clang
- os: osx
osx_image: xcode9.4
compiler: clang

script:
- cmake --version
- cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release -DABSL_RUN_TESTS=ON -DABSL_USE_GOOGLETEST_HEAD=ON
- cmake --build build --target all
- CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test

0 comments on commit 90fc828

Please sign in to comment.