-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
37 lines (34 loc) · 1.08 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
language: cpp
matrix:
include:
- os: linux
addons:
apt:
packages:
- gfortran
- liblapack-dev
- os: linux
dist: bionic
addons:
apt:
packages:
- gfortran
- liblapack-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
before_script:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; brew install bash gcc; clang --version; gfortran --version; fi
- if [[ "$TRAVIS_OS_NAME $CC" == "osx gcc" ]]; then export CC=gcc-9 ; export CXX=g++-9 ; $CC --version; $CXX --version; 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 --verbosity 4
script:
- bash ./coinbrew build $PROJECT --no-prompt --verbosity 4 --test