2014-10-09 22:52:33 -06:00
|
|
|
language: cpp
|
2014-10-11 20:16:54 -06:00
|
|
|
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
|
|
|
|
compiler:
|
|
|
|
- gcc
|
|
|
|
- clang
|
|
|
|
|
2014-10-11 21:36:39 -06:00
|
|
|
before_install:
|
|
|
|
if [ ${TRAVIS_OS_NAME} = 'linux' ];
|
|
|
|
then
|
|
|
|
sudo add-apt-repository -y ppa:h-rayflood/llvm;
|
|
|
|
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test;
|
|
|
|
sudo apt-get update -qq;
|
|
|
|
fi
|
|
|
|
|
2014-10-11 20:46:27 -06:00
|
|
|
script: "
|
2014-10-11 20:50:32 -06:00
|
|
|
echo ${TRAVIS_OS_NAME};
|
|
|
|
echo ${TRAVIS_OS_NAME};
|
2014-10-11 20:46:27 -06:00
|
|
|
if [ ${TRAVIS_OS_NAME} = 'linux' ];
|
|
|
|
then
|
|
|
|
sudo apt-get -qq update;
|
|
|
|
sudo apt-get install python-software-properties;
|
|
|
|
sudo apt-get update;
|
|
|
|
sudo apt-get install gcc-4.8 g++-4.8;
|
|
|
|
sudo apt-get install cmake;
|
|
|
|
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 10;
|
2014-10-11 20:35:06 -06:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
2014-10-11 20:46:27 -06:00
|
|
|
if [ ${TRAVIS_OS_NAME} = 'linux' ];
|
|
|
|
then
|
|
|
|
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 10;
|
|
|
|
fi
|
2014-10-11 20:16:54 -06:00
|
|
|
|
2014-10-11 20:46:27 -06:00
|
|
|
if [ ${TRAVIS_OS_NAME} = 'osx' ];
|
|
|
|
then
|
|
|
|
brew update;
|
|
|
|
fi
|
2014-10-11 20:35:06 -06:00
|
|
|
|
2014-10-11 20:46:27 -06:00
|
|
|
if [ {$TRAVIS_OS_NAME} = 'osx' ] && [ '$CC' = 'gcc' ];
|
|
|
|
then
|
|
|
|
export CC=gcc-4.8;
|
|
|
|
export CXX=g++-4.8;
|
2014-10-11 20:50:32 -06:00
|
|
|
fi
|
2014-10-09 23:04:01 -06:00
|
|
|
|
2014-10-11 20:50:32 -06:00
|
|
|
./scripts/buildAndRunTests.sh"
|