forked from coin-or/Cbc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
193 lines (185 loc) · 6.25 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
language: cpp
env:
global:
secure: FoPCwIlEKUUIwpSMGomm+Dfsv/Cp7ITqFVq5u++AAWp6WniX22NkkoPhCnbq3YxXrt0RQhK0P+pe6iJeQNgtm4seYWZO/pWj+frkW52kRWiEgMgKoAWx28vHVvcuqVr5lHAiezMoyrrKrmAJEznO0mTryDc1Ez3fzjSoIoY5r653TZEJNOJ5wU07oTVgGtTkKY9gsHM1s9fNu2ikmKrLQoe8VPJZpkSQPJp5YipghijYQUbeRyHnNMkxWZk34YCRTo2XIRiFBUKfC2efGLPvzGYjwAFYDHQUEKV4lVyg9S6e1BqoFH74vfgF2Vs6DADmWqImwC3RtrADh6wRpxSkADnCv+t3wc3mhuvYX74IDx6H0BFqYvWJwrkmXmnEQonBc/0db/mSiKfz6jp9i7vJl1XEtaYZ3Teic732ziOqUIbm4HjHCBDSqlC4mIlSDJnGAFvVjfZL1W1hbkUPaG1KpmEZ5hiE7mu2kf3DkFjiBdwBSTs5wlgmqmzHvvtAg1P6TdkR2uyIUCCkX4628sWzhfIfTV9XrophJw7jS+PD8dy5tdJclZvIXlw6JbiDPRpF7Vm6orDk/cY5sQ6Sv4+CZd0ml3AaSblR8JkXLCUu21/c2jxJwewYD7MFGNLcLueAK7pycZ9o3YII2zHlfuPRNAWEjS2AjgjCnk52+xhIDW4=
matrix:
include:
- os: linux
dist: precise
env: BUILD_STATIC=false DEBUG=false ASAN=false ADD_CXXFLAGS=-fvisibility=hidden
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
packages:
- gcc-8
- g++-8
- gfortran-8
- libgfortran-8-dev
- liblapack-dev
- libamd2.2.0
- libcholmod1.7.1
- libsuitesparse-dev
- chrpath
install:
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 90
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 90
- sudo update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-8 90
- sudo update-alternatives --install /usr/bin/cpp cpp /usr/bin/cpp-8 90
- os: linux
dist: precise
env: BUILD_STATIC=false DEBUG=false ASAN=false ADD_CXXFLAGS=-fvisibility=hidden
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
packages:
- gcc-9
- g++-9
- gfortran-9
- libgfortran-9-dev
- liblapack-dev
- libamd2.2.0
- libcholmod1.7.1
- libmetis-edf-dev
- libsuitesparse-dev
- chrpath
install:
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 90
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 90
- sudo update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-9 90
- sudo update-alternatives --install /usr/bin/cpp cpp /usr/bin/cpp-9 90
- os: linux
dist: precise
env: BUILD_STATIC=false DEBUG=true ASAN=false
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
packages:
- gcc-9
- g++-9
- gfortran-9
- libgfortran-9-dev
- liblapack-dev
- libamd2.2.0
- libcholmod1.7.1
- libmetis-edf-dev
- libsuitesparse-dev
- chrpath
install:
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 90
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 90
- sudo update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-9 90
- sudo update-alternatives --install /usr/bin/cpp cpp /usr/bin/cpp-9 90
- os: linux
dist: bionic
env: BUILD_STATIC=true DEBUG=false ASAN=false ADD_CXXFLAGS=-fvisibility=hidden
addons:
apt:
packages:
- gfortran
- liblapack-dev
- libmetis-dev
- libnauty2-dev
- os: linux
dist: bionic
env: BUILD_STATIC=false DEBUG=false ASAN=false ADD_CXXFLAGS=-fvisibility=hidden
addons:
apt:
packages:
- gfortran
- liblapack-dev
- libmetis-dev
- libnauty2-dev
- os: linux
dist: xenial
env: BUILD_STATIC=true DEBUG=false ASAN=false ADD_CXXFLAGS=-fvisibility=hidden
addons:
apt:
packages:
- gfortran
- libgfortran-5-dev
- liblapack-dev
- libmetis-dev
- libnauty2-dev
- os: osx
osx_image: xcode12
env: OSX=10.15 BUILD_STATIC=false DEBUG=false ASAN=false
addons:
homebrew:
packages:
- bash
- metis
compiler: clang
- os: osx
osx_image: xcode11
env: OSX=10.15 BUILD_STATIC=false DEBUG=false ASAN=false CC=gcc-9 CXX=g++-9
addons:
homebrew:
packages:
- bash
- gcc@9
- metis
compiler: gcc-9
- os: osx
osx_image: xcode11
env: OSX=10.14 BUILD_STATIC=false DEBUG=false ASAN=false
addons:
homebrew:
packages:
- bash
- metis
compiler: clang
- os: windows
cache:
directories:
- $HOME/AppData/Local/Temp/chocolatey
- /C/tools/msys64
allow_failures:
- os: windows
before_install:
- |-
############## Installing Additional Packages #################
export PROJECT=$(basename $PWD)
cd ..
git clone https://github.com/coin-or/coinbrew
bash coinbrew/.ci/install_packages.sh
case $TRAVIS_OS_NAME in
windows)
BASH=bash
alias make=mingw32-make # so that Autotools can find it
;;
osx)
BASH=/usr/local/bin/bash
;;
linux)
BASH=bash
;;
esac
export BASH
before_script:
- |-
############# Fetching Dependencies ##############
$BASH coinbrew/coinbrew fetch $PROJECT --no-prompt --skip-update --skip='ThirdParty/Metis ThirdParty/Mumps ThirdParty/Blas ThirdParty/Lapack'
before_cache:
- |-
case $TRAVIS_OS_NAME in
windows)
$BASH pacman --sync --clean --noconfirm
;;
esac
script:
- |-
############### Building Project ####################
source coinbrew/.ci/setup_environment.sh
$BASH coinbrew/coinbrew build $PROJECT --skip='ThirdParty/Metis ThirdParty/Mumps ThirdParty/Blas ThirdParty/Lapack' "${COMMON_ARGS[@]}" "${ADD_ARGS[@]}" "${DBG_ARGS[@]}" ADD_CXXFLAGS="${ADD_CXXFLAGS}" CC=${CC} CXX=${CXX}
after_script:
- |-
############## Uploading Binaries ##################
case $TRAVIS_OS_NAME in
linux|osx)
source coinbrew/.ci/setup_environment.sh
$BASH coinbrew/.ci/upload_binaries.sh
;;
esac