1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2025-04-11 03:20:46 +01:00

Travis: fix for Linux clang builds

This commit is contained in:
Antonin Portelli 2016-06-14 17:31:47 +01:00
parent 2976f6f347
commit 05ac1cc3ad

View File

@ -7,6 +7,7 @@ notifications:
cache: cache:
directories: directories:
- ci-scripts/local - ci-scripts/local
- ci-scripts/clang
matrix: matrix:
include: include:
@ -44,27 +45,24 @@ matrix:
apt: apt:
sources: sources:
- ubuntu-toolchain-r-test - ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.6
packages: packages:
- clang-3.6
- libgsl0-dev - libgsl0-dev
- flex - flex
- bison - bison
env: VERSION=-3.6 env: CLANG_LINK=http://llvm.org/releases/3.6.0/clang+llvm-3.6.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz
- compiler: clang - compiler: clang
addons: addons:
apt: apt:
sources: sources:
- ubuntu-toolchain-r-test - ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.7
packages: packages:
- clang-3.7
- libgsl0-dev - libgsl0-dev
- flex - flex
- bison - bison
env: VERSION=-3.7 env: CLANG_LINK=http://llvm.org/releases/3.7.0/clang+llvm-3.7.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz
before_install: before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$CC" == "clang" ]] && [ ! -e clang ]; then wget $CLANG_LINK; tar -xf `basename $CLANG_LINK`; mv clang* clang; cd clang; export PATH="`pwd`/bin:${PATH}"; cd -; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi - 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 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" ]]; then brew install bison flex; export PATH="/usr/local/opt/flex/bin:/usr/local/opt/bison/bin:$PATH"; fi