source: trunk/.travis.yml @ 2471

Last change on this file since 2471 was 2407, checked in by tkr, 13 months ago

Updating Travis and Appveyor to new build script new build images

File size: 1.8 KB
RevLine 
[2375]1language: cpp
[2281]2env:
3  global:
[2283]4    - secure: "WEPiGQTAVh02Fc5Qxvj2VBZoWBgNjjB6w5MdNwg6NtzFKhbhxB1OqfaVE7EJV1Cw9mf1k5Qcg2fSy9bQEJllWNclRpbRGfEcC+Crx3CyjFOebSr6e6T7lAjIspIVSRf9+y6oPEY2zR8yXoX/HAEYyw3IQzJtKCHIbSJrrZsPomc="
[2281]5   
[2236]6matrix:
7  include:
[2281]8    - os: linux
9      addons:
10        apt:
11          packages:
12            - gfortran
[2316]13    - os: osx
[2405]14      osx_image: xcode10
15      env: OSX=10.13
16      compiler: clang
17    - os: osx
18      osx_image: xcode9.2
[2318]19      env: OSX=10.12
20      compiler: clang
[2236]21    - os: osx
[2318]22      osx_image: xcode8
23      env: OSX=10.11
24      compiler: clang
[2241]25  allow_failures:
26    - os: osx
[2236]27
[2243]28before_script:
[2281]29  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then  export PLATFORM=osx$OSX-x86_64-clang`clang -dumpversion`; fi
[2319]30  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; brew install bash gcc; brew link --overwrite gcc; gfortran --version; fi
[2281]31  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export PLATFORM=linux-x86_64-gcc`gcc -dumpversion`; fi
[2405]32  - git clone https://github.com/coin-or/COIN-OR-OptimizationSuite COIN
33  - cd COIN
34  - export PROJECT=`echo $TRAVIS_REPO_SLUG | cut -d "/" -f 2`
[2407]35  - bash ./coin.install.sh fetch --no-prompt --main-proj=$PROJECT > /dev/null
[2236]36
[2281]37script:
[2407]38  - bash ./coin.install.sh build --no-prompt --main-proj=$PROJECT --verbosity=2 --test
[2281]39
40after_script:
41  - if [ $TRAVIS_BRANCH = "master" ]; then export VERSION=trunk; else export VERSION=`echo $TRAVIS_BRANCH | cut -d "/" -f 2`; fi
42  - export TGZ_FILE=$PROJECT-$VERSION-$PLATFORM.tgz
43  - echo $TGZ_FILE
[2405]44  - tar -czvf $TGZ_FILE build/lib/* build/bin/* build/include/* build/share/* $PROJECT/README.md $PROJECT/INSTALL $PROJECT/LICENSE $PROJECT/$PROJECT/AUTHORS
[2282]45  - 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.