source: trunk/appveyor.yml @ 2306

Last change on this file since 2306 was 2306, checked in by tkr, 15 months ago

Figuring out vcvarsall for MSVC 2017

File size: 2.8 KB
Line 
1platform:
2  - x64
3
4environment:
5  global:
6    BINTRAY_API:
7      secure: a9n4jf90wlFCdaYa6fOmYxsF97ur2dnK8Ys3gn5R90JBzTDq6cD2GlEwmmts75mq
8    BINTRAY_USERNAME: tkralphs
9  matrix:
10    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
11      ARCH: win32-msvc9
12      HOST_ARCH_ARG: --enable-msvc=MD
13      ADD_PATH: /mingw64/bin
14    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
15      ARCH: win32-msvc14
16      HOST_ARCH_ARG: --enable-msvc
17      ADD_PATH: /mingw64/bin
18    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
19      ARCH: win32-msvc15
20      HOST_ARCH_ARG: --enable-msvc
21      ADD_PATH: /mingw64/bin
22    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
23      ARCH: x86_64-w64-mingw32
24      HOST_ARCH_ARG: --host=x86_64-w64-mingw32
25      ADD_PATH: /mingw64/bin
26    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
27      ARCH: i686-w64-mingw32
28      HOST_ARCH_ARG: --host=i686-w64-mingw32
29      ADD_PATH: /mingw32/bin
30
31install:
32  - 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
33  - echo %VERSION%
34  - IF %ARCH%==win32-msvc9 (CALL C:\"Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat")
35  - IF %ARCH%==win32-msvc14 (CALL C:\"Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat")
36  - IF %ARCH%==win32-msvc15 (CALL C:\"Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x86 8.1)
37  - C:\msys64\usr\bin\bash -lc ""
38
39build_script:
40  - C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER; git clone https://github.com/coin-or-tools/BuildTools"
41  - C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER; BuildTools/get.dependencies.sh fetch --no-third-party"
42  - 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"
43
44after_build:
45  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\build\bin
46  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\build\include
47  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\build\lib
48  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\build\share
49  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\LICENSE
50  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\INSTALL
51  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\Clp\AUTHORS
52  - 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
53
Note: See TracBrowser for help on using the repository browser.