-
Notifications
You must be signed in to change notification settings - Fork 22
/
.travis.yml
52 lines (49 loc) · 1.84 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
language: cpp
matrix:
include:
- os: linux
dist: xenial
addons:
apt:
packages:
- gfortran
- libgfortran-5-dev
- liblapack-dev
- libmetis-dev
- libnauty2-dev
- os: linux
dist: bionic
addons:
apt:
packages:
- gfortran
- liblapack-dev
- libmetis-dev
- libnauty2-dev
- os: osx
osx_image: xcode11
env: OSX=10.14 CC=gcc CXX=g++
compiler: clang
- os: osx
osx_image: xcode11
env: OSX=10.14
compiler: clang
- os: osx
osx_image: xcode10
env: OSX=10.13
compiler: clang
before_script:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then if [ x`brew list | fgrep bash` != x'bash' ]; then brew install bash; fi; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then if [ x`brew list | fgrep gcc` != x'gcc' ]; then brew install gcc; fi; fi
- if [[ "$TRAVIS_OS_NAME $CC" == "osx gcc" ]]; then export CC=gcc-9 ; export CXX=g++-9 ; $CC --version; $CXX --version; gfortran --version; fi
- if [[ "$TRAVIS_OS_NAME $CC" == "osx clang" ]]; then export PLATFORM=osx$OSX-x86_64-clang$(clang -dumpversion); fi
- if [[ "$TRAVIS_OS_NAME $CC" == "osx gcc-9" ]]; then export PLATFORM=osx$OSX-x86_64-gcc$(gcc-9 -dumpversion); fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export PLATFORM=linux-x86_64-gcc$(gcc -dumpversion); fi
- cd ..
- wget https://raw.githubusercontent.com/coin-or/coinbrew/master/coinbrew
- export PROJECT_URL=https://github.com/$TRAVIS_REPO_SLUG
- export PROJECT=$(echo $TRAVIS_REPO_SLUG | cut -d "/" -f 2)
- bash ./coinbrew fetch $PROJECT_URL@$TRAVIS_BRANCH --no-prompt --skip-update
script:
- bash ./coinbrew build $PROJECT --no-prompt --verbosity 2 --tests main