SPIRV-Tools/.travis.yml
2016-06-24 17:16:00 -04:00

70 lines
1.3 KiB
YAML

# Linux Build Configuration for Travis
language: cpp
os:
- linux
- osx
# Use Ubuntu 14.04 LTS (Trusty) as the Linux testing environment.
sudo: required
dist: trusty
# Use OS X 10.11 with XCode 7.2
# https://docs.travis-ci.com/user/osx-ci-environment/#OS-X-Version
osx_image: xcode7.2
env:
# Each line is a set of environment variables set before a build.
# Thus each line represents a different build configuration.
- BUILD_TYPE=Release
- BUILD_TYPE=Debug
compiler:
- clang
- gcc
matrix:
exclude:
# Skip GCC builds on Mac OS X.
- os: osx
compiler: gcc
cache:
apt: true
branches:
only:
- master
addons:
apt:
packages:
- ninja-build
before_install:
# Install cmake & ninja on Mac OS X.
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew install cmake ninja; fi
before_script:
- git clone https://github.com/KhronosGroup/SPIRV-Headers.git external/spirv-headers
- git clone https://github.com/google/googletest.git external/googletest
script:
- mkdir build && cd build
- cmake -GNinja -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ..
- ninja
- ctest -j`nproc` --output_on_failure
notifications:
email:
recipients:
- antiagainst@google.com
- awoloszyn@google.com
- deki@google.com
- dneto@google.com
- qining@google.com
on_success: change
on_failure: always