-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
52 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,74 @@ | ||
language: cpp | ||
|
||
matrix: | ||
include: | ||
- os: linux | ||
- language: cpp | ||
os: linux | ||
addons: | ||
apt: | ||
packages: | ||
- gfortran | ||
- os: osx | ||
|
||
- language: cpp | ||
os: osx | ||
osx_image: xcode10 | ||
env: OSX=10.13 | ||
compiler: clang | ||
- os: osx | ||
- language: cpp | ||
os: osx | ||
osx_image: xcode9.2 | ||
env: OSX=10.12 | ||
compiler: clang | ||
- os: osx | ||
- language: cpp | ||
os: osx | ||
osx_image: xcode8 | ||
env: OSX=10.11 | ||
compiler: clang | ||
|
||
- language: minimal | ||
dist: bionic | ||
env: DISTRO=alpine | ||
- language: minimal | ||
dist: bionic | ||
env: DISTRO=archlinux | ||
- language: minimal | ||
dist: bionic | ||
env: DISTRO=centos | ||
- language: minimal | ||
dist: bionic | ||
env: DISTRO=debian | ||
- language: minimal | ||
dist: bionic | ||
env: DISTRO=fedora | ||
- language: minimal | ||
dist: bionic | ||
env: DISTRO=opensuse | ||
- language: minimal | ||
dist: bionic | ||
env: DISTRO=ubuntu | ||
|
||
allow_failures: | ||
- os: osx | ||
- language: cpp | ||
os: osx | ||
|
||
install: true | ||
|
||
before_script: | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; brew install bash gcc; brew link --overwrite gcc; gfortran --version; fi | ||
- cd .. | ||
- wget https://raw.githubusercontent.com/coin-or/coinbrew/master/coinbrew | ||
- export PROJECT_URL=https://github.com/$TRAVIS_REPO_SLUG | ||
- export PROJECT=`echo $TRAVIS_REPO_SLUG | cut -d "/" -f 2` | ||
- bash ./coinbrew fetch $PROJECT_URL:$TRAVIS_BRANCH --no-prompt --skip-update > /dev/null | ||
- if [[ -z "$DISTRO" ]]; then cd ..; fi | ||
- if [[ -z "$DISTRO" ]]; then wget https://raw.githubusercontent.com/coin-or/coinbrew/master/coinbrew; fi | ||
- if [[ -z "$DISTRO" ]]; then export PROJECT_URL=https://github.com/$TRAVIS_REPO_SLUG; fi | ||
- if [[ -z "$DISTRO" ]]; then export PROJECT=`echo $TRAVIS_REPO_SLUG | cut -d "/" -f 2`; fi | ||
- if [[ -z "$DISTRO" ]]; then bash ./coinbrew fetch $PROJECT_URL:$TRAVIS_BRANCH --no-prompt --skip-update > /dev/null; fi | ||
|
||
script: | ||
- bash ./coinbrew build $PROJECT --no-prompt --verbosity=2 --test | ||
- if [[ -z "$DISTRO" ]]; then bash ./coinbrew build $PROJECT --no-prompt --verbosity=2 --test; fi | ||
|
||
- > | ||
if [[ ! -z "$DISTRO" ]]; then ( | ||
cd .ci && | ||
make env_${DISTRO} && | ||
make devel_${DISTRO} && | ||
make test_${DISTRO} && | ||
make install_${DISTRO} && | ||
make test_install_${DISTRO} || | ||
travis_terminate 1 ); fi |