-
Notifications
You must be signed in to change notification settings - Fork 27
/
.travis.yml
48 lines (48 loc) · 2.21 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
language: cpp
env:
global:
secure: FoPCwIlEKUUIwpSMGomm+Dfsv/Cp7ITqFVq5u++AAWp6WniX22NkkoPhCnbq3YxXrt0RQhK0P+pe6iJeQNgtm4seYWZO/pWj+frkW52kRWiEgMgKoAWx28vHVvcuqVr5lHAiezMoyrrKrmAJEznO0mTryDc1Ez3fzjSoIoY5r653TZEJNOJ5wU07oTVgGtTkKY9gsHM1s9fNu2ikmKrLQoe8VPJZpkSQPJp5YipghijYQUbeRyHnNMkxWZk34YCRTo2XIRiFBUKfC2efGLPvzGYjwAFYDHQUEKV4lVyg9S6e1BqoFH74vfgF2Vs6DADmWqImwC3RtrADh6wRpxSkADnCv+t3wc3mhuvYX74IDx6H0BFqYvWJwrkmXmnEQonBc/0db/mSiKfz6jp9i7vJl1XEtaYZ3Teic732ziOqUIbm4HjHCBDSqlC4mIlSDJnGAFvVjfZL1W1hbkUPaG1KpmEZ5hiE7mu2kf3DkFjiBdwBSTs5wlgmqmzHvvtAg1P6TdkR2uyIUCCkX4628sWzhfIfTV9XrophJw7jS+PD8dy5tdJclZvIXlw6JbiDPRpF7Vm6orDk/cY5sQ6Sv4+CZd0ml3AaSblR8JkXLCUu21/c2jxJwewYD7MFGNLcLueAK7pycZ9o3YII2zHlfuPRNAWEjS2AjgjCnk52+xhIDW4=
matrix:
include:
- os: linux
addons:
apt:
packages:
- gfortran
- os: osx
osx_image: xcode10
env: OSX=10.13
compiler: clang
- os: osx
osx_image: xcode9.2
env: OSX=10.12
compiler: clang
- os: osx
osx_image: xcode8
env: OSX=10.11
compiler: clang
allow_failures:
- os: osx
before_script:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PLATFORM=osx$OSX-x86_64-clang`clang
-dumpversion`; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; brew install bash gcc; brew
link --overwrite gcc; gfortran --version; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export PLATFORM=linux-x86_64-gcc`gcc
-dumpversion`; fi
- cd ..
- wget https://raw.githubusercontent.com/coin-or/coinbrew/master/coinbrew
- export PROJECT=`echo $TRAVIS_REPO_SLUG | cut -d "/" -f 2`
- bash ./coinbrew fetch $PROJECT --no-prompt --skip-update > /dev/null
script:
- bash ./coinbrew build $PROJECT --no-prompt --verbosity=2 --test
after_script:
- if [ $TRAVIS_BRANCH = "master" ]; then export VERSION=master; else export VERSION=`echo
$TRAVIS_BRANCH | cut -d "/" -f 2`; fi
- export TGZ_FILE=$PROJECT-$VERSION-$PLATFORM.tgz
- echo $TGZ_FILE
- cp $PROJECT/README.md $PROJECT/LICENSE $PROJECT/$PROJECT/AUTHORS build
- cd build
- tar -czvf $TGZ_FILE lib/* bin/* include/* share/* README.md LICENSE AUTHORS
- curl -T $TGZ_FILE -utkralphs:$BINTRAY_API -H "X-Bintray-Publish:1" -H "X-Bintray-Override:1"
https://api.bintray.com/content/coin-or/download/$PROJECT/$VERSION/$TGZ_FILE