Add OSX travis-ci support
This commit is contained in:
parent
0a57fa0766
commit
1d721bcd6c
32
.travis.yml
32
.travis.yml
|
@ -1,14 +1,30 @@
|
||||||
language: cpp
|
language: cpp
|
||||||
|
os:
|
||||||
|
- linux
|
||||||
|
- osx
|
||||||
compiler:
|
compiler:
|
||||||
- clang
|
- clang
|
||||||
- gcc
|
- gcc
|
||||||
before_install:
|
before_install:
|
||||||
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
|
- if [ $TRAVIS_OS_NAME = linux ]; then
|
||||||
- sudo add-apt-repository ppa:boost-latest/ppa -y
|
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y;
|
||||||
- sudo apt-get update -qq
|
sudo add-apt-repository ppa:boost-latest/ppa -y;
|
||||||
- if [ "$CXX" = "clang++" ]; then sudo apt-get install -y libstdc++-4.8-dev; fi
|
sudo apt-get update -qq;
|
||||||
- if [ "$CXX" = "g++" ]; then sudo apt-get install -y g++-4.8; fi
|
elif [ $TRAVIS_OS_NAME = osx ]; then
|
||||||
- if [ "$CXX" = "g++" ]; then export CXX=g++-4.8; fi
|
brew update;
|
||||||
- sudo apt-get install -y libncursesw5-dev
|
fi;
|
||||||
- sudo apt-get install -y libboost-regex1.54-dev
|
install:
|
||||||
|
- if [ $TRAVIS_OS_NAME = linux ]; then
|
||||||
|
if [ "$CXX" = "clang++" ]; then
|
||||||
|
sudo apt-get install -y libstdc++-4.8-dev;
|
||||||
|
elif [ "$CXX" = "g++" ]; then
|
||||||
|
sudo apt-get install -y g++-4.8;
|
||||||
|
export CXX=g++-4.8;
|
||||||
|
fi;
|
||||||
|
sudo apt-get install -y libncursesw5-dev;
|
||||||
|
sudo apt-get install -y libboost-regex1.54-dev;
|
||||||
|
elif [ $TRAVIS_OS_NAME = osx ]; then
|
||||||
|
brew outdated boost || brew upgrade boost;
|
||||||
|
fi;
|
||||||
|
|
||||||
script: cd src && make && make test
|
script: cd src && make && make test
|
||||||
|
|
Loading…
Reference in New Issue
Block a user