os:
- linux
+ - osx
# Use Ubuntu 14.04 LTS (Trusty) as the Linux testing environment.
sudo: required
dist: trusty
env:
- matrix:
- # 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
+ # 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
packages:
- ninja-build
+before_install:
+ # Install ninja on Mac OS X.
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew install ninja; fi
+
before_script:
- git clone https://github.com/google/googletest.git external/googletest