-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
100 lines (97 loc) · 2.35 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
language: cpp
matrix:
include:
- os: linux
addons:
apt:
packages:
- gfortran
env: PROJECT="Osi"
FETCH_ARGS="--no-prompt"
FETCH=true
- os: linux
addons:
apt:
packages:
- gfortran
env: PROJECT="Osi@master"
BUILD_ARGS="--enable-relocatable"
FETCH=true
- os: linux
addons:
apt:
packages:
- gfortran
env: PROJECT="https://github.com/tkralphs/Osi@stable/0.108"
BUILD_ARGS="--enable-relocatable"
FETCH=true
UPDATE=true
- os: linux
addons:
apt:
packages:
- gfortran
env: PROJECT="https://github.com/tkralphs/Osi@master"
BUILD_ARGS="--enable-debug"
- os: linux
addons:
apt:
packages:
- gfortran
env: PROJECT="Osi"
BUILD_ARGS="--no-prompt ADD_CXXFLAGS=-DFOO"
INSTALL=true
- os: linux
addons:
apt:
packages:
- gfortran
env: PROJECT="Cbc@master"
BUILD_ARGS="--skip='ThirdParty/Metis ThirdParty/Mumps'"
INSTALL=true
- os: linux
addons:
apt:
packages:
- gfortran
env: PROJECT="Osi@0.108"
BUILD_ARGS="--latest-release"
- os: linux
addons:
apt:
packages:
- gfortran
env: PROJECT="SYMPHONY@stable/5.6"
- os: osx
osx_image: xcode12
env: OSX=10.15
CC=gcc
CXX=g++
PROJECT="Osi --no-prompt"
BUILD_ARGS="ADD_CXXFLAGS=-DFOO"
- os: osx
osx_image: xcode12
env: OSX=10.15
PROJECT="Osi --no-prompt"
compiler: clang
before_script:
- |-
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
if [ "$(brew list | fgrep bash)" != "bash" ]; then
brew install bash;
fi;
brew update;
fi
script:
- |-
if [ "${FETCH:-}" = "true" ]; then
bash ./coinbrew fetch $PROJECT $FETCH_ARGS;
fi
bash ./coinbrew build $PROJECT $BUILD_ARGS
if [ "${INSTALL:-}" = "true" ]; then
bash ./coinbrew uninstall $PROJECT
bash ./coinbrew install $PROJECT
fi
if [ "${UPDATE:-}" = "true" ]; then
./coinbrew fetch Osi --latest-release
fi