forked from coin-or/Clp.old
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (40 loc) · 1.69 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
\language: cpp
env:
global:
- secure: "DlFscEcRlvw4CQsk0zyJxsvW0QQ1MBobX+/ucMPkHy6JLCg2n608pdKF5L04BrwOQoTg/4xcyrIAfPPVld7LeVc/2MTmdb/Hn6jnyfEP0LdeEDQi1yuN7tUk/Rkid/CWFng4j+5I+GNQqAvoCqWwNCt8VtMO8DJWI20/ZNVDuaU="
matrix:
include:
- os: linux
addons:
apt:
packages:
- gfortran
- os: osx
osx_image: xcode8.2
env: OSX=10.12
compiler: clang
- os: osx
osx_image: xcode8
env: OSX=10.11
compiler: clang
- os: osx
osx_image: xcode6.4
env: OSX=10.10
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
- git clone https://github.com/coin-or-tools/BuildTools
- bash BuildTools/get.dependencies.sh fetch > /dev/null
script:
- bash BuildTools/get.dependencies.sh build --verbosity=2 --test
after_script:
- if [ $TRAVIS_BRANCH = "master" ]; then export VERSION=trunk; else export VERSION=`echo $TRAVIS_BRANCH | cut -d "/" -f 2`; fi
- export PROJECT=`echo $TRAVIS_REPO_SLUG | cut -d "/" -f 2`
- export TGZ_FILE=$PROJECT-$VERSION-$PLATFORM.tgz
- echo $TGZ_FILE
- tar -czvf $TGZ_FILE build/lib/* build/bin/* build/include/* build/share/* README.md INSTALL LICENSE Clp/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