Travis CI: use Ubuntu 14.04 (Trusty) as the Linux environment.
[platform/upstream/SPIRV-Tools.git] / .travis.yml
1 # Linux Build Configuration for Travis
2
3 language: cpp
4
5 os:
6   - linux
7
8 # Use Ubuntu 14.04 LTS (Trusty) as the Linux testing environment.
9 sudo: required
10 dist: trusty
11
12 env:
13   matrix:
14     # Each line is a set of environment variables set before a build.
15     # Thus each line represents a different build configuration.
16     - BUILD_TYPE=Release
17     - BUILD_TYPE=Debug
18
19 compiler:
20   - clang
21   - gcc
22
23 cache:
24   apt: true
25
26 branches:
27   only:
28     - master
29
30 addons:
31   apt:
32     packages:
33       - ninja-build
34
35 before_script:
36   - git clone https://github.com/google/googletest.git external/googletest
37
38 script:
39   - mkdir build && cd build
40   - cmake -GNinja -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ..
41   - ninja
42     # Be nice and only output if there are failures.
43   - ./UnitSPIRV --gtest_break_on_failure &> log || cat log
44
45
46 notifications:
47   email:
48     recipients:
49       - antiagainst@google.com
50       - awoloszyn@google.com
51       - deki@google.com
52       - dneto@google.com
53       - qining@google.com
54     on_success: change
55     on_failure: always