Changeset 2281 for trunk/.travis.yml


Ignore:
Timestamp:
Aug 5, 2016 4:06:02 PM (3 years ago)
Author:
tkr
Message:

Updating Travis and Appveyor builds to deploy binaries to BinTray?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.travis.yml

    r2264 r2281  
    11language: cpp
    2 
     2env:
     3  global:
     4    - secure: "KXrNrSs66/J5fb8pRYTUhIjEiXizlZ7p0xVROPla+GWfwyLJIAiswbwYOBpR1kSTn51E+j6j14UWL36GC31TK5WXRJoWoyVXi1RH+zZfvESAwqI6OmhzTWQd84fyXJ+vx5Yg0qEhPGH0HFGaNrpAvsBtr8lmsoLgocEaMikqxQ8="
     5   
    36matrix:
    47  include:
     8    - os: linux
     9      addons:
     10        apt:
     11          packages:
     12            - gfortran
    513    - os: osx
    614      osx_image: osx10.11
     
    1523      env: OSX=10.9
    1624      compiler: clang
    17     - os: linux
    18       addons:
    19         apt:
    20           packages:
    21           - gfortran
    2225  allow_failures:
    2326    - os: osx
    2427
    2528before_script:
    26   - if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$OSX" != "10.9" ]]; then brew update; fi
    27   - if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$OSX" != "10.9" ]]; then brew install gcc; fi
     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" ]]; 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
    2832  - git clone --branch=stable/0.8 https://github.com/coin-or-tools/BuildTools
    2933  - bash BuildTools/get.dependencies.sh fetch > /dev/null
    3034
    31 script: bash BuildTools/get.dependencies.sh build --quiet --test
     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/*
     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/generic/$PROJECT/$VERSION/$TGZ_FILE
Note: See TracChangeset for help on using the changeset viewer.