forked from coin-or/Osi
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
85 lines (76 loc) · 2.2 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
matrix:
include:
- language: cpp
os: linux
addons:
apt:
packages:
- gfortran
- liblapack-dev
- language: cpp
os: linux
dist: bionic
addons:
apt:
packages:
- gfortran
- liblapack-dev
- language: cpp
os: osx
osx_image: xcode11
env: OSX=10.14 CC=gcc CXX=g++
compiler: clang
- language: cpp
os: osx
osx_image: xcode11
env: OSX=10.14
compiler: clang
- language: cpp
os: osx
osx_image: xcode10
env: OSX=10.13
compiler: clang
- language: minimal
dist: bionic
env: DISTRO=alpine
- language: minimal
dist: bionic
env: DISTRO=archlinux
- language: minimal
dist: bionic
env: DISTRO=centos
- language: minimal
dist: bionic
env: DISTRO=debian
- language: minimal
dist: bionic
env: DISTRO=fedora
- language: minimal
dist: bionic
env: DISTRO=opensuse
- language: minimal
dist: bionic
env: DISTRO=ubuntu
allow_failures:
- language: cpp
os: osx
install: true
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
- if [[ -z "$DISTRO" ]]; then cd ..; fi
- if [[ -z "$DISTRO" ]]; then wget https://raw.githubusercontent.com/coin-or/coinbrew/master/coinbrew; fi
- if [[ -z "$DISTRO" ]]; then export PROJECT_URL=https://github.com/$TRAVIS_REPO_SLUG; fi
- if [[ -z "$DISTRO" ]]; then export PROJECT=`echo $TRAVIS_REPO_SLUG | cut -d "/" -f 2`; fi
- if [[ -z "$DISTRO" ]]; then bash ./coinbrew fetch $PROJECT_URL:$TRAVIS_BRANCH --no-prompt --skip-update > /dev/null; fi
script:
- if [[ -z "$DISTRO" ]]; then bash ./coinbrew build $PROJECT --no-prompt --verbosity=2 --test; fi
- >
if [[ ! -z "$DISTRO" ]]; then (
cd .ci &&
make env_${DISTRO} &&
make devel_${DISTRO} &&
make test_${DISTRO} &&
make install_${DISTRO} &&
make test_install_${DISTRO} ||
travis_terminate 1 ); fi