source: trunk/appveyor.yml

Last change on this file was 2695, checked in by tkr, 3 weeks ago

Changing settings to ensure 64 bit and renaming architecture to win64

File size: 5.1 KB
Line 
1#init:
2#  - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
3
4platform:
5  - x64
6
7environment:
8  global:
9    BINTRAY_API:
10      secure: a9n4jf90wlFCdaYa6fOmYxsF97ur2dnK8Ys3gn5R90JBzTDq6cD2GlEwmmts75mq
11    BINTRAY_USERNAME: tkralphs
12  matrix:
13    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
14      ARCH: win64-msvc14-md
15      HOST_ARCH_ARG: --enable-msvc=MD
16      ADD_PATH: /mingw64/bin
17    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
18      ARCH: win64-msvc15-md
19      HOST_ARCH_ARG: --enable-msvc=MD
20      ADD_PATH: /mingw64/bin
21    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
22      ARCH: win64-msvc16-md
23      HOST_ARCH_ARG: --enable-msvc=MD
24      ADD_PATH: /mingw64/bin
25    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
26      ARCH: win64-msvc14-mt
27      HOST_ARCH_ARG: --enable-msvc
28      ADD_PATH: /mingw64/bin
29    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
30      ARCH: win64-msvc15-mt
31      HOST_ARCH_ARG: --enable-msvc
32      ADD_PATH: /mingw64/bin
33    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
34      ARCH: win64-msvc16-mt
35      HOST_ARCH_ARG: --enable-msvc
36      ADD_PATH: /mingw64/bin
37    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
38      ARCH: win64-msvc14-mdd
39      HOST_ARCH_ARG: --enable-msvc=MD --enable-debug
40      ADD_PATH: /mingw64/bin
41    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
42      ARCH: win64-msvc15-mdd
43      HOST_ARCH_ARG: --enable-msvc=MD --enable-debug
44      ADD_PATH: /mingw64/bin
45    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
46      ARCH: win64-msvc16-mdd
47      HOST_ARCH_ARG: --enable-msvc=MD --enable-debug
48      ADD_PATH: /mingw64/bin
49    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
50      ARCH: win64-msvc14-mtd
51      HOST_ARCH_ARG: --enable-msvc --enable-debug
52      ADD_PATH: /mingw64/bin
53    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
54      ARCH: win64-msvc15-mtd
55      HOST_ARCH_ARG: --enable-msvc --enable-debug
56      ADD_PATH: /mingw64/bin
57    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
58      ARCH: win64-msvc16-mtd
59      HOST_ARCH_ARG: --enable-msvc --enable-debug
60      ADD_PATH: /mingw64/bin
61    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
62      ARCH: x86_64-w64-mingw32
63      HOST_ARCH_ARG: --host=x86_64-w64-mingw32
64      ADD_PATH: /mingw64/bin
65    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
66      ARCH: i686-w64-mingw32
67      HOST_ARCH_ARG: --host=i686-w64-mingw32
68      ADD_PATH: /mingw32/bin
69
70install:
71  - 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
72  - IF %ARCH%==win64-msvc14 (CALL "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64)
73  - IF %ARCH%==win64-msvc14 (CALL C:\"Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64)
74  - IF %ARCH%==win64-msvc15 (CALL C:\"Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat")
75  - IF %ARCH%==win64-msvc16 (CALL C:\"Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat")
76  - IF %ARCH%==x86_64-w64-mingw32 (CALL C:\msys64\usr\bin\bash -lc "pacman -S mingw-w64-x86_64-lapack --noconfirm")
77  - IF %ARCH%==i686-w64-mingw32 (CALL C:\msys64\usr\bin\bash -lc "pacman -S mingw-w64-i686-lapack --noconfirm") 
78  - C:\msys64\usr\bin\bash -lc ""
79
80build_script:
81  - C:\msys64\usr\bin\bash -lc "cd C:\projects; ln -s %APPVEYOR_PROJECT_SLUG% %APPVEYOR_PROJECT_NAME%; wget https://raw.githubusercontent.com/coin-or/coinbrew/master/coinbrew"
82  - C:\msys64\usr\bin\bash -lc "cd C:\projects; ./coinbrew fetch https://github.com/%APPVEYOR_REPO_NAME%:%APPVEYOR_REPO_BRANCH% --no-prompt --skip="ThirdParty/Blas ThirdParty/Lapack" --skip-update"
83  - C:\msys64\usr\bin\bash -lc "cd C:\projects; 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"
84after_build:
85  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip C:\projects\dist\bin
86  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip C:\projects\dist\include
87  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip C:\projects\dist\lib
88  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip C:\projects\dist\share
89  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip C:\projects\%APPVEYOR_PROJECT_NAME%\README.md
90  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip C:\projects\%APPVEYOR_PROJECT_NAME%\LICENSE
91  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip C:\projects\%APPVEYOR_PROJECT_NAME%\INSTALL
92  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip C:\projects\%APPVEYOR_PROJECT_NAME%\%APPVEYOR_PROJECT_NAME%\AUTHORS
93  - 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
94
95#on_finish:
96#  - 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.