Skip to content

Commit

Permalink
Update .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizux committed Apr 3, 2019
1 parent ff9e630 commit a89cb6a
Showing 1 changed file with 76 additions and 11 deletions.
87 changes: 76 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,98 @@
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: xenial
env: DISTRO=alpine
- language: minimal
dist: xenial
env: DISTRO=archlinux
- language: minimal
dist: xenial
env: DISTRO=centos
- language: minimal
dist: xenial
env: DISTRO=fedora
- language: minimal
dist: xenial
env: DISTRO=debian
- language: minimal
dist: xenial
env: DISTRO=ubuntu
- language: minimal
dist: xenial
env: DISTRO=xenial
- language: minimal
dist: xenial
env: DISTRO=opensuse

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

script:
- bash ./coin.install.sh build --no-prompt --main-proj=$PROJECT --verbosity=2 --test
- if [[ -z "$DISTRO" ]]; then bash ./coin.install.sh build --no-prompt --main-proj=$PROJECT --verbosity=2 --test; fi

- if [[ ! -z "$DISTRO" ]]; then cd ci; fi
- >
if [[ ! -z "$DISTRO" ]]; then ( echo 'travis_fold:start:docker' &&
make docker_${DISTRO} &&
echo 'travis_fold:end:docker' ||
travis_terminate 1 ); fi
- >
if [[ ! -z "$DISTRO" ]]; then ( echo 'travis_fold:start:configure' &&
make configure_${DISTRO} &&
echo 'travis_fold:end:configure' ||
travis_terminate 1 ); fi
- >
if [[ ! -z "$DISTRO" ]]; then ( echo 'travis_fold:start:build' &&
make build_${DISTRO} &&
echo 'travis_fold:end:build' ||
travis_terminate 1 ); fi
- >
if [[ ! -z "$DISTRO" ]]; then ( echo 'travis_fold:start:test_build' &&
make test_${DISTRO} &&
echo 'travis_fold:end:test_build' ||
travis_terminate 1 ); fi
- >
if [[ ! -z "$DISTRO" ]]; then ( echo 'travis_fold:start:install' &&
make install_${DISTRO} &&
echo 'travis_fold:end:install' ||
travis_terminate 1 ); fi
- >
if [[ ! -z "$DISTRO" ]]; then ( echo 'travis_fold:start:test_install' &&
make test_install_${DISTRO} &&
echo 'travis_fold:end:test_install' ||
travis_terminate 1 ); fi

0 comments on commit a89cb6a

Please sign in to comment.