1 # Linux Build Configuration for Travis
3 sudo: false # Use Travis docker infrastructure
12 # Each line is a set of environment variables set before a build.
13 # Thus each line represents a different build configuration.
28 # Travis CI is powered with Ubuntu 12.04, whose toolchain is outdated.
31 # Travis white list of ppa.
32 # https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json
34 - ubuntu-toolchain-r-test # For gcc 4.9
35 - kubuntu-backports # For cmake 2.8.12
36 - llvm-toolchain-precise-3.7 # For clang 3.7
37 # Travis whitelist of packages.
38 # https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise
46 - if [ "$CC" = "gcc" ]; then export CC=gcc-4.9 CXX=g++-4.9; fi # Make sure that gcc-4.9 is selected.
47 - if [ "$CC" = "clang" ]; then export CC=clang-3.7 CXX=clang++-3.7; fi # Make sure that clang-3.7 is selected.
50 - git clone https://github.com/google/googletest.git external/googletest
53 - mkdir build && cd build
54 - cmake -GNinja -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ..
55 # Sometimes g++-4.9 flakes with an ICE. This may be an OOM thing when
56 # expanding many templates.
57 # If we fail the build the first time, then try to continue in
58 # single-process mode.
60 - ./UnitSPIRV --gtest_break_on_failure
66 - antiagainst@google.com
67 - awoloszyn@google.com