Skip to content

Commit b4e8bcc

Browse files
committed
Update travis.yml
1 parent 39896be commit b4e8bcc

File tree

1 file changed

+76
-12
lines changed

1 file changed

+76
-12
lines changed

.travis.yml

Lines changed: 76 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,97 @@
1-
language: cpp
2-
31
matrix:
42
include:
5-
- os: linux
3+
- language: cpp
4+
os: linux
65
addons:
76
apt:
87
packages:
98
- gfortran
10-
- os: osx
9+
10+
- language: cpp
11+
os: osx
1112
osx_image: xcode10
1213
env: OSX=10.13
1314
compiler: clang
14-
- os: osx
15+
- language: cpp
16+
os: osx
1517
osx_image: xcode9.2
1618
env: OSX=10.12
1719
compiler: clang
18-
- os: osx
20+
- language: cpp
21+
os: osx
1922
osx_image: xcode8
2023
env: OSX=10.11
2124
compiler: clang
25+
26+
- language: minimal
27+
dist: xenial
28+
env: DISTRO=alpine
29+
- language: minimal
30+
dist: xenial
31+
env: DISTRO=archlinux
32+
- language: minimal
33+
dist: xenial
34+
env: DISTRO=centos
35+
- language: minimal
36+
dist: xenial
37+
env: DISTRO=fedora
38+
- language: minimal
39+
dist: xenial
40+
env: DISTRO=debian
41+
- language: minimal
42+
dist: xenial
43+
env: DISTRO=ubuntu
44+
- language: minimal
45+
dist: xenial
46+
env: DISTRO=xenial
47+
- language: minimal
48+
dist: xenial
49+
env: DISTRO=opensuse
50+
2251
allow_failures:
23-
- os: osx
52+
- language: cpp
53+
os: osx
54+
55+
install: true
2456

2557
before_script:
2658
- 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
59+
- if [[ -z "$DISTRO" ]]; then git clone https://github.com/coin-or/COIN-OR-OptimizationSuite COIN; fi
60+
- if [[ -z "$DISTRO" ]]; then cd COIN; fi
61+
- if [[ -z "$DISTRO" ]]; then export PROJECT=`echo $TRAVIS_REPO_SLUG | cut -d "/" -f 2`; fi
62+
- if [[ -z "$DISTRO" ]]; then bash ./coin.install.sh fetch --no-prompt --main-proj=$PROJECT > /dev/null; fi
3163

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

0 commit comments

Comments
 (0)