-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
59 lines (56 loc) · 2.8 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
49
50
51
52
53
54
55
56
57
58
59
language: cpp
env:
global:
- secure: "1hnmHpE5atRiHUlENwRwZT/cyL4HvkS0MtJefHAH1dQXlvYf7oj0/Bou5zKkELZgKPLTWtuSIlXYqU/ViBw+7r2zGJPdYoEa04+cwCP1LXQC0uO9Lutd9RUGBRkQDUu6376Xa6Bh7ZXigpGeX9J/nNPgjIFFO4aPTci0/lrhNvQvHCkrdaZVdBCCfJUBOnR2Hc9lv1Qk3CBh3UPqDljeYV8X0LgDjzJjlsNI4OGcH7nOKV8zEFtUogSDQB3po3qBwOB+100o9Ogs5p+Hn4lGXyVW/S9TaHQWOhQ9c+kx0Har8aKT8tY+iCjVoPC10l4Ug00bdsbnXeMGchweJdAEJ1lVq+5sDX1vUBUhM7/y6JExOfkMWzC2WgYPHZU5MXl3Ga+L+oLQLAWGsIik/olK/6X7BUFNTqpF3cSGtAtFsAYU84qgBHcr+fBAUFJSQsd16Fs4GuzE80QIAOfp8dC56oC0isPhtNSDempSt8CeD+FMdGNQPwaBVMaPLgjMglWqAFlTqKFriRj9TLb0u/LDOmQ48YKPaOqQZVyajZXq7omYF32COuyDHFpkBwCxUVdNdRZfz/5/IDs9Yxs6CjsAkEoKk8QoALmvvSy3PR/tGJmRQ7D47IKMDIWNHTvhPA7ESbuJ5aOdnxLwkt5x/ANPGlRTKAnzUtn/aQv1yKwL1PM="
matrix:
include:
- os: linux
addons:
apt:
packages:
- gfortran
- liblapack-dev
- os: linux
dist: bionic
addons:
apt:
packages:
- gfortran
- liblapack-dev
- os: osx
osx_image: xcode11
env: OSX=10.14 CC=gcc CXX=g++
compiler: clang
- os: osx
osx_image: xcode11
env: OSX=10.14
compiler: clang
- os: osx
osx_image: xcode10
env: OSX=10.13
compiler: clang
- os: osx
osx_image: xcode9.2
env: OSX=10.12
compiler: clang
before_script:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; brew install bash gcc; clang --version; gfortran --version; fi
- if [[ "$TRAVIS_OS_NAME $CC" == "osx gcc" ]]; then export CC=gcc-9 ; export CXX=g++-9 ; $CC --version; $CXX --version; fi
- if [[ "$TRAVIS_OS_NAME $CC" == "osx clang" ]]; then export PLATFORM=osx$OSX-x86_64-clang`clang -dumpversion`; fi
- if [[ "$TRAVIS_OS_NAME $CC" == "osx gcc-9" ]]; then export PLATFORM=osx$OSX-x86_64-gcc`gcc-9 -dumpversion`; 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_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
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/AUTHORS dist
- cd dist
- 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