Migrate to container based travis
This commit is contained in:
parent
d2762e6a1a
commit
0efb41ce42
32
.travis.yml
32
.travis.yml
|
@ -1,30 +1,36 @@
|
||||||
language: cpp
|
language: cpp
|
||||||
|
|
||||||
|
sudo: false
|
||||||
|
|
||||||
os:
|
os:
|
||||||
- linux
|
- linux
|
||||||
- osx
|
- osx
|
||||||
|
|
||||||
compiler:
|
compiler:
|
||||||
- clang
|
- clang
|
||||||
- gcc
|
- gcc
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- if [ $TRAVIS_OS_NAME = linux ]; then
|
- if [ $TRAVIS_OS_NAME = osx ]; then
|
||||||
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y;
|
|
||||||
sudo add-apt-repository ppa:boost-latest/ppa -y;
|
|
||||||
sudo apt-get update -qq;
|
|
||||||
elif [ $TRAVIS_OS_NAME = osx ]; then
|
|
||||||
brew update;
|
brew update;
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- if [ $TRAVIS_OS_NAME = linux ]; then
|
- if [ $TRAVIS_OS_NAME = linux -a "$CXX" = "g++" ]; 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;
|
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
|
elif [ $TRAVIS_OS_NAME = osx ]; then
|
||||||
brew outdated boost || brew upgrade boost;
|
brew outdated boost || brew upgrade boost;
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
sources:
|
||||||
|
- boost-latest
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
packages:
|
||||||
|
- libstdc++-4.8-dev
|
||||||
|
- g++-4.8
|
||||||
|
- libncursesw5-dev
|
||||||
|
- libboost-regex-dev
|
||||||
|
|
||||||
script: cd src && make && make test
|
script: cd src && make && make test
|
||||||
|
|
Loading…
Reference in New Issue
Block a user