diff options
author | Lei Zhang <antiagainst@google.com> | 2016-03-16 14:54:47 -0400 |
---|---|---|
committer | Lei Zhang <antiagainst@google.com> | 2016-03-16 15:19:37 -0400 |
commit | de4a7c7f405c80d3b03cbd64ac9557bfc2ccfbb3 (patch) | |
tree | 65b0d0205a64cdd27db3da74fedb042fa993cbc5 /.travis.yml | |
parent | 755eb6dcfca680a23e1d7abab8d78ee0ed17f498 (diff) | |
download | SPIRV-Tools-de4a7c7f405c80d3b03cbd64ac9557bfc2ccfbb3.tar.gz SPIRV-Tools-de4a7c7f405c80d3b03cbd64ac9557bfc2ccfbb3.tar.bz2 SPIRV-Tools-de4a7c7f405c80d3b03cbd64ac9557bfc2ccfbb3.zip |
Travis CI: use Ubuntu 14.04 (Trusty) as the Linux environment.
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 31 |
1 files changed, 7 insertions, 24 deletions
diff --git a/.travis.yml b/.travis.yml index 67f04863..02b66a8e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,14 @@ # Linux Build Configuration for Travis -sudo: false # Use Travis docker infrastructure - language: cpp os: - linux +# Use Ubuntu 14.04 LTS (Trusty) as the Linux testing environment. +sudo: required +dist: trusty + env: matrix: # Each line is a set of environment variables set before a build. @@ -25,39 +27,20 @@ branches: only: - master -# Travis CI is powered with Ubuntu 12.04, whose toolchain is outdated. addons: apt: - # Travis white list of ppa. - # https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json - sources: - - ubuntu-toolchain-r-test # For gcc 4.9 - - kubuntu-backports # For cmake 2.8.12 - - llvm-toolchain-precise-3.7 # For clang 3.7 - # Travis whitelist of packages. - # https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise packages: - - cmake - - g++-4.9 - - clang-3.7 - ninja-build -install: - - if [ "$CC" = "gcc" ]; then export CC=gcc-4.9 CXX=g++-4.9; fi # Make sure that gcc-4.9 is selected. - - if [ "$CC" = "clang" ]; then export CC=clang-3.7 CXX=clang++-3.7; fi # Make sure that clang-3.7 is selected. - before_script: - git clone https://github.com/google/googletest.git external/googletest script: - mkdir build && cd build - cmake -GNinja -DCMAKE_BUILD_TYPE=${BUILD_TYPE} .. - # Sometimes g++-4.9 flakes with an ICE. This may be an OOM thing when - # expanding many templates. - # If we fail the build the first time, then try to continue in - # single-process mode. - - ninja || ninja -j 1 - - ./UnitSPIRV --gtest_break_on_failure + - ninja + # Be nice and only output if there are failures. + - ./UnitSPIRV --gtest_break_on_failure &> log || cat log notifications: |