Travis CI: bump OS X and XCode version.
[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 # Use OS X 10.11 with XCode 7.2
14 # https://docs.travis-ci.com/user/osx-ci-environment/#OS-X-Version
15 osx_image: xcode7.2
16
17 env:
18   # Each line is a set of environment variables set before a build.
19   # Thus each line represents a different build configuration.
20   - BUILD_TYPE=Release
21   - BUILD_TYPE=Debug
22
23 compiler:
24   - clang
25   - gcc
26
27 matrix:
28   exclude:
29     # Skip GCC builds on Mac OS X.
30     - os: osx
31       compiler: gcc
32
33 cache:
34   apt: true
35
36 branches:
37   only:
38     - master
39
40 addons:
41   apt:
42     packages:
43       - ninja-build
44
45 before_install:
46   # Install cmake & ninja on Mac OS X.
47   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew install cmake ninja; fi
48
49 before_script:
50   - git clone https://github.com/KhronosGroup/SPIRV-Headers.git external/spirv-headers
51   - git clone https://github.com/google/googletest.git external/googletest
52
53 script:
54   - mkdir build && cd build
55   - cmake -GNinja -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ..
56   - ninja
57   - ctest -j`nproc` --output_on_failure
58
59
60 notifications:
61   email:
62     recipients:
63       - antiagainst@google.com
64       - awoloszyn@google.com
65       - deki@google.com
66       - dneto@google.com
67       - qining@google.com
68     on_success: change
69     on_failure: always