Changeset 2461


Ignore:
Timestamp:
Apr 28, 2019 10:12:22 PM (3 weeks ago)
Author:
tkr
Message:

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

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/.travis.yml

    r2365 r2461  
    1 \language: cpp
     1"\\language": cpp
    22env:
    3   global:
    4     - secure: "DlFscEcRlvw4CQsk0zyJxsvW0QQ1MBobX+/ucMPkHy6JLCg2n608pdKF5L04BrwOQoTg/4xcyrIAfPPVld7LeVc/2MTmdb/Hn6jnyfEP0LdeEDQi1yuN7tUk/Rkid/CWFng4j+5I+GNQqAvoCqWwNCt8VtMO8DJWI20/ZNVDuaU="
    5    
     3  global:
     4  - secure: dNf+ddgmbhuzrGHsO6eWuEQ9rTZbIQjdBX47TDnGulwWpOS8LyEoZNFz3IAvf9HJBY2L/pM3F6BvSfXpumX+qX2BVZLUETX54lk07i8PnGWgq0O0ylW5sB3xM0bNGPALiH3sBJEHeimEoRIAkbg+bXafLWo4cDFtQ7IT4mg6fQxq+MGNyr5GnSBkTRK7TdXef1dOylF0R2OV/xXVTr0xEkCb4ONB32ljZ1YZrYw0RzeDWX+rp674S1DnqhC3cYuOjK0Yl3h0uDHEI/rdvJmTahii9C5AILA8eB8Lc4jBlQmXlXYHy7Rr10KIwK7qYNFal6WyS4SbyBLZ6t3bNFrXe3ayMnhllVs0RsreMgMaJ78nGuHmpdQ8FJWlOIEWOYEFO6j/WnQwN7d6U4cgmB0mWmQJoO59qGuw1FsRTMssTJNeOd5t8WVi3AyNSV+GE4n+ZE1Bh4KIhmmhWno+w5iHKIHpr0SocxhPB5jQ2mEm1GhG8ZvM+wAollabkXCfeF9brGCh5IbTib10UpAkDkoeLYSpHO4Blshu5Tkpu0OXe1zcTwfUewbrZ1NZIS6LWdau6ISiPLQSnL+BwgZcIMJ/ZqUEmCtaBE79gQ/h730/Ekxkmdfr9KuvqnF+UTqXtRJeru/uZ0n2LTj7xrjpct2eFHZzGJlp2sAfQWfLK7EWg5A=
    65matrix:
    76  include:
    8     - os: linux
    9       addons:
    10         apt:
    11           packages:
    12             - gfortran
    13     - os: osx
    14       osx_image: xcode10
    15       env: OSX=10.13
    16       compiler: clang
    17     - os: osx
    18       osx_image: xcode9.2
    19       env: OSX=10.12
    20       compiler: clang
    21     - os: osx
    22       osx_image: xcode8
    23       env: OSX=10.11
    24       compiler: clang
     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
    2524  allow_failures:
    26     - os: osx
    27 
     25  - os: osx
    2826before_script:
    29   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then  export PLATFORM=osx$OSX-x86_64-clang`clang -dumpversion`; fi
    30   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; brew install bash gcc; brew link --overwrite gcc; gfortran --version; 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/COIN-OR-OptimizationSuite COIN
    33   - cd COIN
    34   - export PROJECT=`echo $TRAVIS_REPO_SLUG | cut -d "/" -f 2`
    35   - bash ./coin.install.sh fetch --no-prompt --main-proj=$PROJECT > /dev/null
    36 
     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- git clone https://github.com/coin-or/coinbrew COIN
     34- cd COIN
     35- export PROJECT=`echo $TRAVIS_REPO_SLUG | cut -d "/" -f 2`
     36- bash ./coinbrew fetch --no-prompt $PROJECT > /dev/null
    3737script:
    38   - bash ./coin.install.sh build --no-prompt --main-proj=$PROJECT --verbosity=2 --test
    39 
     38- bash ./coinbrew build --no-prompt $PROJECT --enable-static --disable-shared --verbosity 2 --test
    4039after_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
    44   - tar -czvf $TGZ_FILE build/lib/* build/bin/* build/include/* build/share/* $PROJECT/README $PROJECT/INSTALL $PROJECT/LICENSE $PROJECT/$PROJECT/AUTHORS
    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
    46 
     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
  • trunk/appveyor.yml

    r2365 r2461  
    3333
    3434install:
    35   - for /f "delims=" %%i in ('C:\msys64\usr\bin\bash -lc "if [ $APPVEYOR_REPO_BRANCH = 'master' ]; then echo 'trunk'; else echo $APPVEYOR_REPO_BRANCH | cut -d "/" -f 2; fi"') do set VERSION=%%i
     35  - for /f "delims=" %%i in ('C:\msys64\usr\bin\bash -lc "if [ $APPVEYOR_REPO_BRANCH = 'master' ]; then echo 'master'; else echo $APPVEYOR_REPO_BRANCH | cut -d "/" -f 2; fi"') do set VERSION=%%i
    3636  - IF %ARCH%==win32-msvc9 (CALL C:\"Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat")
    3737  - IF %ARCH%==win32-msvc14 (CALL C:\"Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat")
     
    4040
    4141build_script:
    42   - C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER; git clone https://github.com/coin-or/COIN-OR-OptimizationSuite COIN"
    43   - C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER/COIN; ./coin.install.sh fetch --no-prompt --main-proj=%APPVEYOR_PROJECT_NAME% --no-third-party"
    44   - C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER/COIN; export PATH=$ADD_PATH:$PATH; ./coin.install.sh build --no-prompt --main-proj=%APPVEYOR_PROJECT_NAME% --no-third-party --build=x86_64-w64-mingw32 $HOST_ARCH_ARG --verbosity=2 --test"
     42  - C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER; wget https://raw.githubusercontent.com/coin-or/coinbrew/master/coinbrew"
     43  - C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER; ./coinbrew fetch %APPVEYOR_PROJECT_NAME% --no-prompt --skip-update --no-third-party"
     44  - C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER; export PATH=$ADD_PATH:$PATH; ./coinbrew build %APPVEYOR_PROJECT_NAME% --no-prompt --no-third-party --build=x86_64-w64-mingw32 $HOST_ARCH_ARG --verbosity=2 --test"
    4545
    4646after_build:
    47   - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\COIN\build\bin
    48   - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\COIN\build\include
    49   - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\COIN\build\lib
    50   - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\COIN\build\share
    51   - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\COIN\%APPVEYOR_PROJECT_NAME%\README
    52   - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\COIN\%APPVEYOR_PROJECT_NAME%\LICENSE
    53   - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\COIN\%APPVEYOR_PROJECT_NAME%\INSTALL
    54   - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\COIN\%APPVEYOR_PROJECT_NAME%\%APPVEYOR_PROJECT_NAME%\AUTHORS
     47  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\build\bin
     48  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\build\include
     49  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\build\lib
     50  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\build\share
     51  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\%APPVEYOR_PROJECT_NAME%\README.md
     52  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\%APPVEYOR_PROJECT_NAME%\LICENSE
     53  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\%APPVEYOR_PROJECT_NAME%\%APPVEYOR_PROJECT_NAME%\AUTHORS
    5554  - curl -T %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip -utkralphs:%BINTRAY_API% -H "X-Bintray-Publish:1" -H "X-Bintray-Override:1" https://api.bintray.com/content/coin-or/download/%APPVEYOR_PROJECT_NAME%/%VERSION%/%APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip
    5655
    57 #on_finish:
    5856#  - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
Note: See TracChangeset for help on using the changeset viewer.