Skip to content

Commit

Permalink
Travis CI: add configuration for testing on Mac OS X.
Browse files Browse the repository at this point in the history
  • Loading branch information
antiagainst committed Mar 17, 2016
1 parent 7eda6bf commit 27b5e3e
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ language: cpp

os:
- linux
- osx

# Use Ubuntu 14.04 LTS (Trusty) as the Linux testing environment.
sudo: required
Expand All @@ -20,6 +21,12 @@ compiler:
- clang
- gcc

matrix:
exclude:
# Skip GCC builds on Mac OS X.
- os: osx
compiler: gcc

cache:
apt: true

Expand All @@ -34,12 +41,19 @@ addons:
- ninja-build
- lcov

before_install:
# Install ninja on Mac OS X.
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew install ninja; fi

install:
- pip install --user nose
- pip install --user cpp-coveralls

- export PATH=$HOME/.local/bin:$PATH # Make sure we can find the above Python packages
- if [ "$CC" = "clang" ]; then export CC=clang-3.6 CXX=clang++-3.6; fi # Make sure that clang-3.6 is selected.
# Make sure that clang-3.6 is selected.
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$CC" == "clang" ]]; then
export CC=clang-3.6 CXX=clang++-3.6;
fi

before_script:
- git clone https://github.com/google/googletest.git third_party/googletest
Expand All @@ -55,7 +69,7 @@ script:
after_success:
# Collect coverage and push to coveralls.info.
# Ignore third party source code and tests.
- if [ "$CC" = "gcc" -a "$SHADERC_CODE_COVERAGE" = "ON" ]; then
- if [[ "$CC" == "gcc" && "$SHADERC_CODE_COVERAGE" == "ON" ]]; then
coveralls
--root ../
--build-root ./
Expand Down

0 comments on commit 27b5e3e

Please sign in to comment.