source: trunk/appveyor.yml @ 2409

Last change on this file since 2409 was 2409, checked in by tkr, 2 years ago

Another fix to appveyor.yml

File size: 3.1 KB
RevLine 
[2369]1#init:
2#  - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
[2368]3
[2247]4platform:
5  - x64
[2253]6
[2247]7environment:
8  global:
[2281]9    BINTRAY_API:
10      secure: a9n4jf90wlFCdaYa6fOmYxsF97ur2dnK8Ys3gn5R90JBzTDq6cD2GlEwmmts75mq
11    BINTRAY_USERNAME: tkralphs
[2247]12  matrix:
[2405]13    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
14      ARCH: win32-msvc9
[2281]15      HOST_ARCH_ARG: --enable-msvc=MD
[2253]16      ADD_PATH: /mingw64/bin
[2405]17    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
18      ARCH: win32-msvc14
[2281]19      HOST_ARCH_ARG: --enable-msvc
20      ADD_PATH: /mingw64/bin
[2405]21    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
22      ARCH: win32-msvc15
[2281]23      HOST_ARCH_ARG: --enable-msvc
24      ADD_PATH: /mingw64/bin
[2405]25    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
26      ARCH: x86_64-w64-mingw32
[2281]27      HOST_ARCH_ARG: --host=x86_64-w64-mingw32
28      ADD_PATH: /mingw64/bin
[2405]29    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
30      ARCH: i686-w64-mingw32
[2281]31      HOST_ARCH_ARG: --host=i686-w64-mingw32
[2253]32      ADD_PATH: /mingw32/bin
33
[2247]34install:
[2281]35  - IF %ARCH%==win32-msvc9 (CALL C:\"Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat")
36  - IF %ARCH%==win32-msvc14 (CALL C:\"Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat")
[2405]37  - IF %ARCH%==win32-msvc15 (CALL C:\"Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64 8.1)
[2256]38  - C:\msys64\usr\bin\bash -lc ""
[2247]39
40build_script:
[2405]41  - C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER; git clone https://github.com/coin-or/COIN-OR-OptimizationSuite COIN"
42  - 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"
[2408]43  - 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"
[2247]44
[2281]45after_build:
[2409]46  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\COIN\build\bin
47  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\COIN\build\include
48  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\COIN\build\lib
49  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\COIN\build\share
50  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\COIN\README.md
51  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\COIN\LICENSE
52  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\COIN\INSTALL
53  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\COIN\%APPVEYOR_PROJECT_NAME%\AUTHORS
[2282]54  - 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]55
[2369]56#on_finish:
57#  - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
Note: See TracBrowser for help on using the repository browser.