Use SPIR-V headers from the KhronosGroup/SPIRV-Headers repo.
[platform/upstream/SPIRV-Tools.git] / .travis.yml
1 # Linux Build Configuration for Travis
2
3 language: cpp
4
5 os:
6   - linux
7   - osx
8
9 # Use Ubuntu 14.04 LTS (Trusty) as the Linux testing environment.
10 sudo: required
11 dist: trusty
12
13 env:
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 matrix:
24   exclude:
25     # Skip GCC builds on Mac OS X.
26     - os: osx
27       compiler: gcc
28
29 cache:
30   apt: true
31
32 branches:
33   only:
34     - master
35
36 addons:
37   apt:
38     packages:
39       - ninja-build
40
41 before_install:
42   # Install ninja on Mac OS X.
43   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew install ninja; fi
44
45 before_script:
46   - git clone https://github.com/KhronosGroup/SPIRV-Headers.git external/spirv-headers
47   - git clone https://github.com/google/googletest.git external/googletest
48
49 script:
50   - mkdir build && cd build
51   - cmake -GNinja -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ..
52   - ninja
53   - ctest -j`nproc` --output_on_failure
54
55
56 notifications:
57   email:
58     recipients:
59       - antiagainst@google.com
60       - awoloszyn@google.com
61       - deki@google.com
62       - dneto@google.com
63       - qining@google.com
64     on_success: change
65     on_failure: always