2016-01-07 04:55:16 +00:00
|
|
|
# Linux Build Configuration for Travis
|
|
|
|
|
|
|
|
language: cpp
|
|
|
|
|
|
|
|
os:
|
|
|
|
- linux
|
2016-03-16 18:05:37 +00:00
|
|
|
- osx
|
2016-01-07 04:55:16 +00:00
|
|
|
|
2016-03-16 18:54:47 +00:00
|
|
|
# Use Ubuntu 14.04 LTS (Trusty) as the Linux testing environment.
|
|
|
|
sudo: required
|
|
|
|
dist: trusty
|
|
|
|
|
2016-01-07 04:55:16 +00:00
|
|
|
env:
|
2016-03-16 18:05:37 +00:00
|
|
|
# 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
|
2016-01-07 04:55:16 +00:00
|
|
|
|
|
|
|
compiler:
|
|
|
|
- clang
|
|
|
|
- gcc
|
|
|
|
|
2016-03-16 18:05:37 +00:00
|
|
|
matrix:
|
|
|
|
exclude:
|
|
|
|
# Skip GCC builds on Mac OS X.
|
|
|
|
- os: osx
|
|
|
|
compiler: gcc
|
|
|
|
|
2016-01-07 04:55:16 +00:00
|
|
|
cache:
|
|
|
|
apt: true
|
|
|
|
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- ninja-build
|
|
|
|
|
2016-03-16 18:05:37 +00:00
|
|
|
before_install:
|
|
|
|
# Install ninja on Mac OS X.
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew install ninja; fi
|
|
|
|
|
2016-01-07 04:55:16 +00:00
|
|
|
before_script:
|
|
|
|
- git clone https://github.com/google/googletest.git external/googletest
|
|
|
|
|
|
|
|
script:
|
|
|
|
- mkdir build && cd build
|
|
|
|
- cmake -GNinja -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ..
|
2016-03-16 18:54:47 +00:00
|
|
|
- ninja
|
|
|
|
# Be nice and only output if there are failures.
|
2016-03-17 19:20:22 +00:00
|
|
|
- ./test/UnitSPIRV --gtest_break_on_failure &> log || (cat log; false)
|
2016-01-07 04:55:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
recipients:
|
|
|
|
- antiagainst@google.com
|
|
|
|
- awoloszyn@google.com
|
|
|
|
- deki@google.com
|
|
|
|
- dneto@google.com
|
|
|
|
- qining@google.com
|
|
|
|
on_success: change
|
|
|
|
on_failure: always
|