From 90fc82895ed24a7e987dcd2aec8b56ba7f3d50b0 Mon Sep 17 00:00:00 2001 From: Corentin Le Molgat Date: Wed, 17 Oct 2018 10:35:57 +0200 Subject: [PATCH] Add Travis-CI Cmake jobs (#109) --- .travis.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000000..14a8ca7e0af --- /dev/null +++ b/.travis.yml @@ -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