2014-11-21 14:23:46 +01:00
|
|
|
language: cpp
|
2014-12-09 20:23:21 +01:00
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
2014-11-21 14:35:56 +01:00
|
|
|
compiler:
|
|
|
|
- clang
|
|
|
|
- gcc
|
2014-11-21 14:23:46 +01:00
|
|
|
before_install:
|
2014-12-09 20:23:21 +01:00
|
|
|
- if [ $TRAVIS_OS_NAME = linux ]; then
|
|
|
|
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y;
|
|
|
|
sudo add-apt-repository ppa:boost-latest/ppa -y;
|
2015-05-21 14:33:40 +02:00
|
|
|
if [ "$CXX" = "clang++" ]; then
|
|
|
|
sudo add-apt-repository ppa:h-rayflood/llvm-upper -y;
|
|
|
|
fi;
|
2014-12-09 20:23:21 +01:00
|
|
|
sudo apt-get update -qq;
|
|
|
|
elif [ $TRAVIS_OS_NAME = osx ]; then
|
|
|
|
brew update;
|
|
|
|
fi;
|
|
|
|
install:
|
|
|
|
- if [ $TRAVIS_OS_NAME = linux ]; then
|
|
|
|
if [ "$CXX" = "clang++" ]; then
|
2015-05-20 14:36:01 +02:00
|
|
|
sudo apt-get install -y libstdc++-4.9-dev;
|
2015-05-21 14:33:40 +02:00
|
|
|
sudo apt-get install -y clang-3.5;
|
|
|
|
export CXX=clang++-3.5;
|
2014-12-09 20:23:21 +01:00
|
|
|
elif [ "$CXX" = "g++" ]; then
|
2015-05-20 14:36:01 +02:00
|
|
|
sudo apt-get install -y g++-4.9;
|
|
|
|
export CXX=g++-4.9;
|
2014-12-09 20:23:21 +01:00
|
|
|
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;
|
|
|
|
|
2014-11-21 14:23:46 +01:00
|
|
|
script: cd src && make && make test
|