source: trunk/.travis.yml @ 2299

Last change on this file since 2299 was 2299, checked in by tkr, 3 years ago

Now we need to install gcc on OS X 10.11?

File size: 1.8 KB
Line 
1language: cpp
2env:
3  global:
4    - secure: "WEPiGQTAVh02Fc5Qxvj2VBZoWBgNjjB6w5MdNwg6NtzFKhbhxB1OqfaVE7EJV1Cw9mf1k5Qcg2fSy9bQEJllWNclRpbRGfEcC+Crx3CyjFOebSr6e6T7lAjIspIVSRf9+y6oPEY2zR8yXoX/HAEYyw3IQzJtKCHIbSJrrZsPomc="
5   
6matrix:
7  include:
8    - os: linux
9      addons:
10        apt:
11          packages:
12            - gfortran
13    - os: osx
14      osx_image: osx10.11
15      env: OSX=10.11
16      compiler: clang
17    - os: osx
18      osx_image: xcode7
19      env: OSX=10.10
20      compiler: clang
21    - os: osx
22      osx_image: beta-xcode6.2
23      env: OSX=10.9
24      compiler: clang
25  allow_failures:
26    - os: osx
27
28before_script:
29  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then  export PLATFORM=osx$OSX-x86_64-clang`clang -dumpversion`; fi
30  - if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$OSX" == "10.10" || "$OSX" == "10.11" ]]; then brew update; brew install gcc; export PLATFORM=osx10.10-x86_64-clang`clang -dumpversion`; fi
31  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export PLATFORM=linux-x86_64-gcc`gcc -dumpversion`; fi
32  - git clone https://github.com/coin-or-tools/BuildTools
33  - bash BuildTools/get.dependencies.sh fetch > /dev/null
34
35script:
36  - bash BuildTools/get.dependencies.sh build --quiet --test
37
38after_script:
39  - if [ $TRAVIS_BRANCH = "master" ]; then export VERSION=trunk; else export VERSION=`echo $TRAVIS_BRANCH | cut -d "/" -f 2`; fi
40  - export PROJECT=`echo $TRAVIS_REPO_SLUG | cut -d "/" -f 2`
41  - export TGZ_FILE=$PROJECT-$VERSION-$PLATFORM.tgz
42  - echo $TGZ_FILE
43  - tar -czvf $TGZ_FILE build/lib/* build/bin/* build/include/* build/share/* build/README.md build/INSTALL build/LICENSE build/Cbc/AUTHORS
44  - 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
Note: See TracBrowser for help on using the repository browser.