forked from coin-or/CoinUtils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
112 lines (105 loc) · 2.85 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
language: cpp
matrix:
include:
- 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}