2016-04-08 00:05:11 +01:00
|
|
|
language: cpp
|
|
|
|
|
2016-04-11 20:04:14 +01:00
|
|
|
notifications:
|
|
|
|
email: false
|
|
|
|
slack: ukqcd:mQLXCtz8D2cg89xT8j1a4wku
|
|
|
|
|
2016-04-08 00:42:11 +01:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- ci-scripts/local
|
2016-06-14 17:31:47 +01:00
|
|
|
- ci-scripts/clang
|
2016-04-08 00:05:11 +01:00
|
|
|
|
2016-04-08 00:42:11 +01:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: osx
|
|
|
|
osx_image: xcode7.2
|
|
|
|
compiler: clang
|
|
|
|
- os: osx
|
|
|
|
osx_image: xcode7.2
|
|
|
|
compiler: gcc
|
|
|
|
env: VERSION=-5
|
|
|
|
- compiler: gcc
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- g++-4.9
|
|
|
|
- libgsl0-dev
|
|
|
|
- flex
|
|
|
|
- bison
|
|
|
|
env: VERSION=-4.9
|
|
|
|
- compiler: gcc
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- g++-5
|
|
|
|
- libgsl0-dev
|
|
|
|
- flex
|
|
|
|
- bison
|
|
|
|
env: VERSION=-5
|
|
|
|
- compiler: clang
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- libgsl0-dev
|
|
|
|
- flex
|
|
|
|
- bison
|
2016-06-14 17:31:47 +01:00
|
|
|
env: CLANG_LINK=http://llvm.org/releases/3.6.0/clang+llvm-3.6.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz
|
2016-04-08 00:42:11 +01:00
|
|
|
- compiler: clang
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- libgsl0-dev
|
|
|
|
- flex
|
|
|
|
- bison
|
2016-06-14 17:31:47 +01:00
|
|
|
env: CLANG_LINK=http://llvm.org/releases/3.7.0/clang+llvm-3.7.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz
|
2016-04-08 00:42:11 +01:00
|
|
|
|
|
|
|
before_install:
|
2016-06-14 17:39:45 +01:00
|
|
|
- cd ci-scripts
|
2016-06-14 17:58:24 +01:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$CC" == "clang" ]] && [ ! -e clang/bin ]; then wget $CLANG_LINK; tar -xf `basename $CLANG_LINK`; mv clang+* clang; fi
|
2016-06-14 17:39:45 +01:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$CC" == "clang" ]]; then export PATH="`pwd`/clang/bin:${PATH}"; fi
|
2016-04-08 00:42:11 +01:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install gsl; fi
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install bison flex; export PATH="/usr/local/opt/flex/bin:/usr/local/opt/bison/bin:$PATH"; fi
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$CC" == "gcc" ]]; then brew install gcc5; fi
|
|
|
|
|
|
|
|
install:
|
|
|
|
- export LATDIR=`pwd`
|
|
|
|
- export CC=$CC$VERSION
|
|
|
|
- export CXX=$CXX$VERSION
|
2016-04-11 19:16:38 +01:00
|
|
|
- ./install-deps.sh `pwd`/local
|
2016-04-08 00:42:11 +01:00
|
|
|
- cd ..
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export LD_LIBRARY_PATH=${LATDIR}/ci-scripts/local/lib:$LD_LIBRARY_PATH; fi
|
|
|
|
|
|
|
|
script:
|
|
|
|
- cd ci-scripts
|
|
|
|
- ./install-latan.sh `pwd`/local $TRAVIS_OS_NAME
|