Skip to content

Commit 871bab4

Browse files
committed
Update Travis-CI
1 parent a0f8e9c commit 871bab4

File tree

1 file changed

+76
-11
lines changed

1 file changed

+76
-11
lines changed

.travis.yml

+76-11
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,98 @@
1-
language: cpp
21

32
matrix:
43
include:
5-
- os: linux
4+
- language: cpp
5+
os: linux
66
addons:
77
apt:
88
packages:
99
- gfortran
10-
- os: osx
10+
11+
- language: cpp
12+
os: osx
1113
osx_image: xcode10
1214
env: OSX=10.13
1315
compiler: clang
14-
- os: osx
16+
- language: cpp
17+
os: osx
1518
osx_image: xcode9.2
1619
env: OSX=10.12
1720
compiler: clang
18-
- os: osx
21+
- language: cpp
22+
os: osx
1923
osx_image: xcode8
2024
env: OSX=10.11
2125
compiler: clang
26+
27+
- language: minimal
28+
dist: xenial
29+
env: DISTRO=alpine
30+
- language: minimal
31+
dist: xenial
32+
env: DISTRO=archlinux
33+
- language: minimal
34+
dist: xenial
35+
env: DISTRO=centos
36+
- language: minimal
37+
dist: xenial
38+
env: DISTRO=fedora
39+
- language: minimal
40+
dist: xenial
41+
env: DISTRO=debian
42+
- language: minimal
43+
dist: xenial
44+
env: DISTRO=ubuntu
45+
- language: minimal
46+
dist: xenial
47+
env: DISTRO=xenial
48+
- language: minimal
49+
dist: xenial
50+
env: DISTRO=opensuse
51+
2252
allow_failures:
23-
- os: osx
53+
- language: cpp
54+
os: osx
55+
56+
install: true
2457

2558
before_script:
2659
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; brew install bash gcc; brew link --overwrite gcc; gfortran --version; fi
27-
- git clone https://github.com/coin-or/COIN-OR-OptimizationSuite COIN
28-
- cd COIN
29-
- export PROJECT=`echo $TRAVIS_REPO_SLUG | cut -d "/" -f 2`
30-
- bash ./coin.install.sh fetch --no-prompt --main-proj=$PROJECT > /dev/null
60+
- if [[ -z "$DISTRO" ]]; then git clone https://github.com/coin-or/COIN-OR-OptimizationSuite COIN; fi
61+
- if [[ -z "$DISTRO" ]]; then cd COIN; fi
62+
- if [[ -z "$DISTRO" ]]; then export PROJECT=`echo $TRAVIS_REPO_SLUG | cut -d "/" -f 2`; fi
63+
- if [[ -z "$DISTRO" ]]; then bash ./coin.install.sh fetch --no-prompt --main-proj=$PROJECT > /dev/null; fi
3164

3265
script:
33-
- bash ./coin.install.sh build --no-prompt --main-proj=$PROJECT --verbosity=2 --test
66+
- if [[ -z "$DISTRO" ]]; then bash ./coin.install.sh build --no-prompt --main-proj=$PROJECT --verbosity=2 --test; fi
67+
68+
- if [[ ! -z "$DISTRO" ]]; then cd ci; fi
69+
- >
70+
if [[ ! -z "$DISTRO" ]]; then ( echo 'travis_fold:start:docker' &&
71+
make docker_${DISTRO} &&
72+
echo 'travis_fold:end:docker' ||
73+
travis_terminate 1 ); fi
74+
- >
75+
if [[ ! -z "$DISTRO" ]]; then ( echo 'travis_fold:start:configure' &&
76+
make configure_${DISTRO} &&
77+
echo 'travis_fold:end:configure' ||
78+
travis_terminate 1 ); fi
79+
- >
80+
if [[ ! -z "$DISTRO" ]]; then ( echo 'travis_fold:start:build' &&
81+
make build_${DISTRO} &&
82+
echo 'travis_fold:end:build' ||
83+
travis_terminate 1 ); fi
84+
- >
85+
if [[ ! -z "$DISTRO" ]]; then ( echo 'travis_fold:start:test_build' &&
86+
make test_${DISTRO} &&
87+
echo 'travis_fold:end:test_build' ||
88+
travis_terminate 1 ); fi
89+
- >
90+
if [[ ! -z "$DISTRO" ]]; then ( echo 'travis_fold:start:install' &&
91+
make install_${DISTRO} &&
92+
echo 'travis_fold:end:install' ||
93+
travis_terminate 1 ); fi
94+
- >
95+
if [[ ! -z "$DISTRO" ]]; then ( echo 'travis_fold:start:test_install' &&
96+
make test_install_${DISTRO} &&
97+
echo 'travis_fold:end:test_install' ||
98+
travis_terminate 1 ); fi

0 commit comments

Comments
 (0)