Add osx to travis config.

This commit is contained in:
Jesse Beder 2016-04-01 18:11:37 -05:00
parent 0535811c18
commit 2176fd994e

View File

@ -1,12 +1,20 @@
language: c++ language: c++
os:
- linux
- osx
compiler: compiler:
- clang - clang
- gcc - gcc
before_install: before_install:
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y - |
- sudo apt-get update -qq if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
- if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.7; fi sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.7" CC="gcc-4.7"; fi && sudo apt-get update -qq
if [ "$CXX" = "g++" ]; then
sudo apt-get install -qq g++-4.7
&& export CXX="g++-4.7" CC="gcc-4.7"
fi
fi
before_script: before_script:
- mkdir build - mkdir build
- cd build - cd build