Changeset 2239


Ignore:
Timestamp:
Jan 5, 2017 7:54:30 AM (2 years ago)
Author:
tkr
Message:

Updating appveyor.yl and .travis.yml to upload binaries to binatray and use new build script

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/.travis.yml

    r2214 r2239  
    1 language: cpp
    2 
     1\language: cpp
     2env:
     3  global:
     4    - secure: "WEPiGQTAVh02Fc5Qxvj2VBZoWBgNjjB6w5MdNwg6NtzFKhbhxB1OqfaVE7EJV1Cw9mf1k5Qcg2fSy9bQEJllWNclRpbRGfEcC+Crx3CyjFOebSr6e6T7lAjIspIVSRf9+y6oPEY2zR8yXoX/HAEYyw3IQzJtKCHIbSJrrZsPomc="
     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
    28   - git clone --branch=stable/0.8 https://github.com/coin-or-tools/BuildTools
     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
    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 --verbosity=2 --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/Clp/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
  • trunk/appveyor.yml

    r2204 r2239  
    44environment:
    55  global:
    6     MSYS2_BASEVER: 20150512
    7     MSYS2_ARCH: x86_64
     6    BINTRAY_API:
     7      secure: a9n4jf90wlFCdaYa6fOmYxsF97ur2dnK8Ys3gn5R90JBzTDq6cD2GlEwmmts75mq
     8    BINTRAY_USERNAME: tkralphs
    89  matrix:
    9     - HOST_ARCH_ARG: --host=x86_64-w64-mingw32
     10    - ARCH: win32-msvc9
     11      HOST_ARCH_ARG: --enable-msvc=MD
    1012      ADD_PATH: /mingw64/bin
    11     - HOST_ARCH_ARG: --host=i686-w64-mingw32
     13    - ARCH: win32-msvc12
     14      HOST_ARCH_ARG: --enable-msvc
     15      ADD_PATH: /mingw64/bin
     16    - ARCH: win32-msvc14
     17      HOST_ARCH_ARG: --enable-msvc
     18      ADD_PATH: /mingw64/bin
     19    - ARCH: x86_64-w64-mingw32
     20      HOST_ARCH_ARG: --host=x86_64-w64-mingw32
     21      ADD_PATH: /mingw64/bin
     22    - ARCH: i686-w64-mingw32
     23      HOST_ARCH_ARG: --host=i686-w64-mingw32
    1224      ADD_PATH: /mingw32/bin
    13     - HOST_ARCH_ARG: --enable-msvc
    14       ADD_PATH: /mingw64/bin
    1525
    1626install:
    17   - C:\"Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat"
     27  - 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
     28  - echo %VERSION%
     29  - IF %ARCH%==win32-msvc9 (CALL C:\"Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat")
     30  - IF %ARCH%==win32-msvc12 (CALL C:\"Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat")
     31  - IF %ARCH%==win32-msvc14 (CALL C:\"Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat")
    1832  - C:\msys64\usr\bin\bash -lc ""
    19   - C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S make wget tar patch dos2unix diffutils ca-certificates mingw-w64-i686-ca-certificates mingw-w64-x86_64-ca-certificates mingw-w64-i686-gcc mingw-w64-i686-gcc-fortran mingw-w64-x86_64-gcc mingw-w64-x86_64-gcc-fortran"
    2033
    2134build_script:
    22   - C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER; git clone --branch=stable/0.8 https://github.com/coin-or-tools/BuildTools"
     35  - C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER; git clone https://github.com/coin-or-tools/BuildTools"
    2336  - C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER; BuildTools/get.dependencies.sh fetch --no-third-party"
    24   - C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER; export PATH=$PATH:$ADD_PATH; BuildTools/get.dependencies.sh build --monolithic --build=x86_64-w64-mingw32 $HOST_ARCH_ARG --test"
     37  - C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER; export PATH=$ADD_PATH:$PATH; BuildTools/get.dependencies.sh build --build=x86_64-w64-mingw32 $HOST_ARCH_ARG --verbosity=2 --test"
    2538
    26 test: off
     39after_build:
     40  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\build\bin
     41  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\build\include
     42  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\build\lib
     43  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\build\share
     44  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\README.md
     45  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\LICENSE
     46  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\INSTALL
     47  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\Clp\AUTHORS
     48  - 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
     49
Note: See TracChangeset for help on using the changeset viewer.