source: trunk/.travis.yml @ 2566

Last change on this file since 2566 was 2561, checked in by tkr, 6 months ago

Updating .travis.yml and appveyor.yml to use coinbrew

File size: 2.2 KB
Line 
1language: cpp
2env:
3  global:
4    secure: FoPCwIlEKUUIwpSMGomm+Dfsv/Cp7ITqFVq5u++AAWp6WniX22NkkoPhCnbq3YxXrt0RQhK0P+pe6iJeQNgtm4seYWZO/pWj+frkW52kRWiEgMgKoAWx28vHVvcuqVr5lHAiezMoyrrKrmAJEznO0mTryDc1Ez3fzjSoIoY5r653TZEJNOJ5wU07oTVgGtTkKY9gsHM1s9fNu2ikmKrLQoe8VPJZpkSQPJp5YipghijYQUbeRyHnNMkxWZk34YCRTo2XIRiFBUKfC2efGLPvzGYjwAFYDHQUEKV4lVyg9S6e1BqoFH74vfgF2Vs6DADmWqImwC3RtrADh6wRpxSkADnCv+t3wc3mhuvYX74IDx6H0BFqYvWJwrkmXmnEQonBc/0db/mSiKfz6jp9i7vJl1XEtaYZ3Teic732ziOqUIbm4HjHCBDSqlC4mIlSDJnGAFvVjfZL1W1hbkUPaG1KpmEZ5hiE7mu2kf3DkFjiBdwBSTs5wlgmqmzHvvtAg1P6TdkR2uyIUCCkX4628sWzhfIfTV9XrophJw7jS+PD8dy5tdJclZvIXlw6JbiDPRpF7Vm6orDk/cY5sQ6Sv4+CZd0ml3AaSblR8JkXLCUu21/c2jxJwewYD7MFGNLcLueAK7pycZ9o3YII2zHlfuPRNAWEjS2AjgjCnk52+xhIDW4=
5matrix:
6  include:
7  - os: linux
8    addons:
9      apt:
10        packages:
11        - gfortran
12  - os: osx
13    osx_image: xcode10
14    env: OSX=10.13
15    compiler: clang
16  - os: osx
17    osx_image: xcode9.2
18    env: OSX=10.12
19    compiler: clang
20  - os: osx
21    osx_image: xcode8
22    env: OSX=10.11
23    compiler: clang
24  allow_failures:
25  - os: osx
26before_script:
27- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then  export PLATFORM=osx$OSX-x86_64-clang`clang
28  -dumpversion`; fi
29- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; brew install bash gcc; brew
30  link --overwrite gcc; gfortran --version; fi
31- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export PLATFORM=linux-x86_64-gcc`gcc
32  -dumpversion`; fi
33- cd ..
34- wget https://raw.githubusercontent.com/coin-or/coinbrew/master/coinbrew
35- export PROJECT=`echo $TRAVIS_REPO_SLUG | cut -d "/" -f 2`
36- bash ./coinbrew fetch $PROJECT --no-prompt --skip-update > /dev/null
37script:
38- bash ./coinbrew build $PROJECT --no-prompt --verbosity=2 --test
39after_script:
40- if [ $TRAVIS_BRANCH = "master" ]; then export VERSION=master; else export VERSION=`echo
41  $TRAVIS_BRANCH | cut -d "/" -f 2`; fi
42- export TGZ_FILE=$PROJECT-$VERSION-$PLATFORM.tgz
43- echo $TGZ_FILE
44- cp $PROJECT/README.md $PROJECT/LICENSE $PROJECT/$PROJECT/AUTHORS build
45- cd build
46- tar -czvf $TGZ_FILE lib/* bin/* include/* share/* README.md LICENSE AUTHORS
47- curl -T $TGZ_FILE -utkralphs:$BINTRAY_API -H "X-Bintray-Publish:1" -H "X-Bintray-Override:1"
48  https://api.bintray.com/content/coin-or/download/$PROJECT/$VERSION/$TGZ_FILE
Note: See TracBrowser for help on using the repository browser.