File tree Expand file tree Collapse file tree 1 file changed +58
-15
lines changed Expand file tree Collapse file tree 1 file changed +58
-15
lines changed Original file line number Diff line number Diff line change 1- language : cpp
2-
31matrix :
42 include :
5- - os : linux
3+ - language : cpp
4+ os : linux
65 addons :
76 apt :
87 packages :
98 - gfortran
109 - liblapack-dev
11- - os : linux
10+
11+ - language : cpp
12+ os : linux
1213 dist : bionic
1314 addons :
1415 apt :
1516 packages :
1617 - gfortran
1718 - liblapack-dev
18- - os : osx
19+
20+ - language : cpp
21+ os : osx
1922 osx_image : xcode11
2023 env : OSX=10.14 CC=gcc CXX=g++
2124 compiler : clang
22- - os : osx
25+ - language : cpp
26+ os : osx
2327 osx_image : xcode11
24- env : OSX=10.14
28+ env : OSX=10.14
2529 compiler : clang
26- - os : osx
30+ - language : cpp
31+ os : osx
2732 osx_image : xcode10
28- env : OSX=10.13
33+ env : OSX=10.13
2934 compiler : clang
3035
36+ - language : minimal
37+ dist : bionic
38+ env : DISTRO=alpine
39+ - language : minimal
40+ dist : bionic
41+ env : DISTRO=archlinux
42+ - language : minimal
43+ dist : bionic
44+ env : DISTRO=centos
45+ - language : minimal
46+ dist : bionic
47+ env : DISTRO=debian
48+ - language : minimal
49+ dist : bionic
50+ env : DISTRO=fedora
51+ - language : minimal
52+ dist : bionic
53+ env : DISTRO=opensuse
54+ - language : minimal
55+ dist : bionic
56+ env : DISTRO=ubuntu
57+
58+ allow_failures :
59+ - language : cpp
60+ os : osx
61+
62+ install : true
63+
3164before_script :
3265 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; brew install bash gcc; clang --version; gfortran --version; fi
3366 - if [[ "$TRAVIS_OS_NAME $CC" == "osx gcc" ]]; then export CC=gcc-9 ; export CXX=g++-9 ; $CC --version; $CXX --version; fi
34- - cd ..
35- - wget https://raw.githubusercontent.com/coin-or/coinbrew/master/coinbrew
36- - export PROJECT_URL=https://github.com/$TRAVIS_REPO_SLUG
37- - export PROJECT=`echo $TRAVIS_REPO_SLUG | cut -d "/" -f 2`
38- - bash ./coinbrew fetch $PROJECT_URL:$TRAVIS_BRANCH --no-prompt --skip-update > /dev/null
67+ - if [[ -z "$DISTRO" ]]; then cd ..; fi
68+ - if [[ -z "$DISTRO" ]]; then wget https://raw.githubusercontent.com/coin-or/coinbrew/master/coinbrew; fi
69+ - if [[ -z "$DISTRO" ]]; then export PROJECT_URL=https://github.com/$TRAVIS_REPO_SLUG; fi
70+ - if [[ -z "$DISTRO" ]]; then export PROJECT=`echo $TRAVIS_REPO_SLUG | cut -d "/" -f 2`; fi
71+ - if [[ -z "$DISTRO" ]]; then bash ./coinbrew fetch $PROJECT_URL:$TRAVIS_BRANCH --no-prompt --skip-update > /dev/null; fi
3972
4073script :
41- - bash ./coinbrew build $PROJECT --no-prompt --verbosity=2 --test
74+ - if [[ -z "$DISTRO" ]]; then bash ./coinbrew build $PROJECT --no-prompt --verbosity=2 --test; fi
75+
76+ - >
77+ if [[ ! -z "$DISTRO" ]]; then (
78+ cd .ci &&
79+ make env_${DISTRO} &&
80+ make devel_${DISTRO} &&
81+ make test_${DISTRO} &&
82+ make install_${DISTRO} &&
83+ make test_install_${DISTRO} ||
84+ travis_terminate 1 ); fi
You can’t perform that action at this time.
0 commit comments