source: trunk/appveyor.yml @ 2282

Last change on this file since 2282 was 2282, checked in by tkr, 4 years ago

Changingname of Bintray repo

File size: 2.2 KB
RevLine 
[2247]1platform:
2  - x64
[2253]3
[2247]4environment:
5  global:
[2281]6    BINTRAY_API:
7      secure: a9n4jf90wlFCdaYa6fOmYxsF97ur2dnK8Ys3gn5R90JBzTDq6cD2GlEwmmts75mq
8    BINTRAY_USERNAME: tkralphs
[2247]9  matrix:
[2281]10    - ARCH: win32-msvc9
11      HOST_ARCH_ARG: --enable-msvc=MD
[2253]12      ADD_PATH: /mingw64/bin
[2281]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
[2253]24      ADD_PATH: /mingw32/bin
25
[2247]26install:
[2281]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")
[2256]32  - C:\msys64\usr\bin\bash -lc ""
[2247]33
34build_script:
[2257]35  - C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER; git clone --branch=stable/0.8 https://github.com/coin-or-tools/BuildTools"
36  - C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER; BuildTools/get.dependencies.sh fetch --no-third-party"
[2281]37  - C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER; export PATH=$ADD_PATH:$PATH; BuildTools/get.dependencies.sh build --monolithic --build=x86_64-w64-mingw32 $HOST_ARCH_ARG --test"
[2247]38
[2281]39after_build:
40  - 7z a -r %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\bin
41  - 7z a -r %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\include
42  - 7z a -r %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\lib
43  - 7z a -r %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\share
[2282]44  - 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
[2281]45
Note: See TracBrowser for help on using the repository browser.