1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2024-11-10 00:45:36 +00:00
LatAnalyze/.travis.yml

64 lines
2.0 KiB
YAML
Raw Normal View History

2016-04-08 00:05:11 +01:00
language: cpp
cache:
directories:
- ci-scripts/local
2016-06-14 17:31:47 +01:00
- ci-scripts/clang
2016-04-08 00:05:11 +01:00
matrix:
include:
- os: osx
2019-02-06 11:27:23 +00:00
osx_image: xcode10.1
compiler: clang
- os: osx
2019-02-06 11:27:23 +00:00
osx_image: xcode10.1
compiler: gcc
2019-02-06 15:04:40 +00:00
env: VERSION=-7
- compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
2019-02-06 11:27:23 +00:00
- g++-7
- flex
- bison
2019-02-06 15:04:40 +00:00
env: VERSION=-7
- compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
2019-02-06 11:27:23 +00:00
- g++-7
- flex
- bison
2019-02-06 14:56:09 +00:00
env: CLANG_LINK=http://releases.llvm.org/7.0.1/clang+llvm-7.0.1-x86_64-linux-gnu-ubuntu-14.04.tar.xz
before_install:
2016-06-14 18:03:17 +01:00
- export LATDIR=`pwd`
2016-06-14 17:39:45 +01:00
- cd ci-scripts
2016-06-14 18:28:51 +01:00
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$CC" == "clang" ]] && [ ! -e clang/bin ]; then wget $CLANG_LINK; tar -xf `basename $CLANG_LINK`; mkdir clang; mv clang+*/* clang/; fi
2016-06-14 18:03:17 +01:00
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$CC" == "clang" ]]; then export PATH="${LATDIR}/ci-scripts/clang/bin:${PATH}"; fi
2016-06-14 18:28:51 +01:00
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$CC" == "clang" ]]; then export LD_LIBRARY_PATH="${LATDIR}/ci-scripts/clang/lib:${LD_LIBRARY_PATH}"; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; 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
2019-02-06 17:15:49 +00:00
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$CC" == "gcc" ]]; then brew install gcc@${VERSION#-}; fi
install:
2019-02-06 15:04:40 +00:00
- export CC=$CC$VERSION
- export CXX=$CXX$VERSION
2016-06-14 18:03:17 +01:00
- echo $PATH
- which $CC
- $CC --version
- which $CXX
- $CXX --version
2016-04-11 19:16:38 +01:00
- ./install-deps.sh `pwd`/local
- cd ..
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export LD_LIBRARY_PATH=${LATDIR}/ci-scripts/local/lib:$LD_LIBRARY_PATH; fi
2019-02-07 21:09:53 +00:00
- if [[ "$CC" == "gcc-7" ]]; then export CXXFLAGS='-Wno-int-in-bool-context'; fi
script:
- cd ci-scripts
2019-04-26 17:36:44 +01:00
- ./install-latan.sh `pwd`/local