source: trunk/appveyor.yml

Last change on this file was 3026, checked in by tkr, 6 months ago

Trying to fix appveyor

File size: 11.7 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 2019
14      ARCH: x86_64-w64-mingw32
15      HOST_ARCH_ARG: --host=x86_64-w64-mingw32 --enable-cbc-parallel
16      CXXFLAGS:
17      CFLAGS:
18      TESTS: main
19      ADD_PATH: /mingw64/bin
20    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
21      ARCH: x86_64-w64-mingw32-dbg
22      HOST_ARCH_ARG: --host=x86_64-w64-mingw32 --enable-cbc-parallel --enable-debug
23      CXXFLAGS:
24      CFLAGS:
25      TESTS: main
26      ADD_PATH: /mingw64/bin
27    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
28      ARCH: i686-w64-mingw32
29      HOST_ARCH_ARG: --host=i686-w64-mingw32 --enable-cbc-parallel
30      CXXFLAGS:
31      CFLAGS:
32      TESTS: main
33      ADD_PATH: /mingw32/bin
34    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
35      ARCH: i686-w64-mingw32-dbg
36      HOST_ARCH_ARG: --host=i686-w64-mingw32 --enable-cbc-parallel --enable-debug
37      CXXFLAGS:
38      CFLAGS:
39      TESTS: main
40      ADD_PATH: /mingw32/bin
41    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
42      ARCH: win64-msvc14-md
43      HOST_ARCH_ARG: --enable-msvc
44      CXXFLAGS:
45      CFLAGS:
46      TESTS: main
47      ADD_PATH: /mingw64/bin
48    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
49      ARCH: win64-msvc15-md
50      HOST_ARCH_ARG: --enable-msvc
51      CXXFLAGS:
52      CFLAGS:
53      TESTS: main
54      ADD_PATH: /mingw64/bin
55    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
56      ARCH: win64-msvc16-md
57      HOST_ARCH_ARG: --enable-msvc
58      CXXFLAGS:
59      CFLAGS:
60      TESTS: main
61      ADD_PATH: /mingw64/bin
62    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
63      ARCH: win64-msvc14-mt
64      HOST_ARCH_ARG: --enable-msvc --disable-shared
65      CXXFLAGS: -nologo -DNDEBUG -O2 -MT
66      CFLAGS: -nologo -DNDEBUG -O2 -MT
67      TESTS: main
68      ADD_PATH: /mingw64/bin
69    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
70      ARCH: win64-msvc15-mt
71      HOST_ARCH_ARG: --enable-msvc --disable-shared
72      CXXFLAGS: -nologo -DNDEBUG -O2 -MT
73      CFLAGS: -nologo -DNDEBUG -O2 -MT
74      TESTS: main
75      ADD_PATH: /mingw64/bin
76    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
77      ARCH: win64-msvc16-mt
78      HOST_ARCH_ARG: --enable-msvc --disable-shared
79      CXXFLAGS: -nologo -DNDEBUG -O2 -MT
80      CFLAGS: -nologo -DNDEBUG -O2 -MT
81      TESTS: main
82      ADD_PATH: /mingw64/bin
83    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
84      ARCH: win64-msvc14-mdd
85      HOST_ARCH_ARG: --enable-msvc --enable-debug
86      CXXFLAGS:
87      CFLAGS:
88      TESTS: none
89      ADD_PATH: /mingw64/bin
90    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
91      ARCH: win64-msvc15-mdd
92      HOST_ARCH_ARG: --enable-msvc --enable-debug
93      CXXFLAGS:
94      CFLAGS:
95      TESTS: none
96      ADD_PATH: /mingw64/bin
97    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
98      ARCH: win64-msvc16-mdd
99      HOST_ARCH_ARG: --enable-msvc --enable-debug
100      CXXFLAGS:
101      CFLAGS:
102      TESTS: none
103      ADD_PATH: /mingw64/bin
104    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
105      ARCH: win64-msvc14-mtd
106      HOST_ARCH_ARG: --enable-msvc --disable-shared
107      CXXFLAGS: -nologo -EHs -Z7 -MTd
108      CFLAGS: -nologo -EHs -Z7 -MTd
109      TESTS: none
110      ADD_PATH: /mingw64/bin
111    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
112      ARCH: win64-msvc15-mtd
113      HOST_ARCH_ARG: --enable-msvc --disable-shared
114      CXXFLAGS: -nologo -EHs -Z7 -MTd
115      CFLAGS: -nologo -EHs -Z7 -MTd
116      TESTS: none
117      ADD_PATH: /mingw64/bin
118    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
119      ARCH: win64-msvc16-mtd
120      HOST_ARCH_ARG: --enable-msvc --disable-shared
121      CXXFLAGS: -nologo -EHs -Z7 -MTd
122      CFLAGS: -nologo -EHs -Z7 -MTd
123      TESTS: none
124      ADD_PATH: /mingw64/bin
125
126install:
127  - 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
128  - IF %ARCH%==win64-msvc14-md (CALL C:\"Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64)
129  - IF %ARCH%==win64-msvc15-md (CALL C:\"Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat")
130  - IF %ARCH%==win64-msvc16-md (CALL C:\"Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat")
131  - IF %ARCH%==win64-msvc14-mdd (CALL C:\"Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64)
132  - IF %ARCH%==win64-msvc15-mdd (CALL C:\"Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat")
133  - IF %ARCH%==win64-msvc16-mdd (CALL C:\"Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat")
134  - IF %ARCH%==win64-msvc14-mt (CALL C:\"Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64)
135  - IF %ARCH%==win64-msvc15-mt (CALL C:\"Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat")
136  - IF %ARCH%==win64-msvc16-mt (CALL C:\"Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat")
137  - IF %ARCH%==win64-msvc14-mtd (CALL C:\"Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64)
138  - IF %ARCH%==win64-msvc15-mtd (CALL C:\"Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat")
139  - IF %ARCH%==win64-msvc16-mtd (CALL C:\"Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat")
140  - IF %ARCH%==x86_64-w64-mingw32 (CALL C:\msys64\usr\bin\bash -lc "pacman -S mingw-w64-x86_64-lapack mingw-w64-x86_64-winpthreads-git mingw-w64-x86_64-readline mingw-w64-x86_64-suitesparse mingw-w64-x86_64-metis --noconfirm")
141  - IF %ARCH%==i686-w64-mingw32 (CALL C:\msys64\usr\bin\bash -lc "pacman -S mingw-w64-i686-lapack mingw-w64-i686-winpthreads-git mingw-w64-i686-readline mingw-w64-i686-suitesparse mingw-w64-i686-metis --noconfirm") 
142  - C:\msys64\usr\bin\bash -lc ""
143
144build_script:
145  - 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"
146  - C:\msys64\usr\bin\bash -lc "cd C:\projects; ./coinbrew fetch https://github.com/%APPVEYOR_REPO_NAME%:%APPVEYOR_REPO_BRANCH% --no-prompt --skip='ThirdParty/Metis ThirdParty/Mumps' --skip-update"
147  - C:\msys64\usr\bin\bash -lc "cd C:\projects; export PATH=$ADD_PATH:$PATH; ./coinbrew build %APPVEYOR_PROJECT_NAME% --no-prompt --skip='ThirdParty/Metis ThirdParty/Mumps' --build=x86_64-w64-mingw32 $HOST_ARCH_ARG --verbosity 2 --tests $TESTS --enable-relocatable"
148
149after_build:
150  - IF %ARCH%==x86_64-w64-mingw32 (cp C:\msys64\mingw64\bin\libblas.dll C:\projects\dist\bin)
151  - IF %ARCH%==x86_64-w64-mingw32 (cp C:\msys64\mingw64\bin\libopenblas.dll C:\projects\dist\bin)
152  - IF %ARCH%==x86_64-w64-mingw32 (cp C:\msys64\mingw64\bin\liblapack.dll C:\projects\dist\bin)
153  - IF %ARCH%==x86_64-w64-mingw32 (cp C:\msys64\mingw64\bin\libmetis.dll C:\projects\dist\bin)
154  - IF %ARCH%==x86_64-w64-mingw32 (cp C:\msys64\mingw64\bin\libgfortran-5.dll C:\projects\dist\bin)
155  - IF %ARCH%==x86_64-w64-mingw32 (cp C:\msys64\mingw64\bin\libgcc_s_seh-1.dll C:\projects\dist\bin)
156  - IF %ARCH%==x86_64-w64-mingw32 (cp C:\msys64\mingw64\bin\libbz2-1.dll C:\projects\dist\bin)
157  - IF %ARCH%==x86_64-w64-mingw32 (cp C:\msys64\mingw64\bin\libwinpthread-1.dll C:\projects\dist\bin)
158  - IF %ARCH%==x86_64-w64-mingw32 (cp C:\msys64\mingw64\bin\libstdc++-6.dll C:\projects\dist\bin)
159  - IF %ARCH%==x86_64-w64-mingw32 (cp C:\msys64\mingw64\bin\libquadmath-0.dll C:\projects\dist\bin)
160  - IF %ARCH%==x86_64-w64-mingw32 (cp C:\msys64\mingw64\bin\libreadline8.dll C:\projects\dist\bin)
161  - IF %ARCH%==x86_64-w64-mingw32 (cp C:\msys64\mingw64\bin\libtermcap-0.dll C:\projects\dist\bin)
162  - IF %ARCH%==x86_64-w64-mingw32 (cp C:\msys64\mingw64\bin\zlib1.dll C:\projects\dist\bin)
163  - IF %ARCH%==x86_64-w64-mingw32 (cp C:\msys64\mingw64\bin\libcholmod.dll C:\projects\dist\bin)
164  - IF %ARCH%==x86_64-w64-mingw32 (cp C:\msys64\mingw64\bin\libcolamd.dll C:\projects\dist\bin)
165  - IF %ARCH%==x86_64-w64-mingw32 (cp C:\msys64\mingw64\bin\libccolamd.dll C:\projects\dist\bin)
166  - IF %ARCH%==x86_64-w64-mingw32 (cp C:\msys64\mingw64\bin\libamd.dll C:\projects\dist\bin)
167  - IF %ARCH%==x86_64-w64-mingw32 (cp C:\msys64\mingw64\bin\libcamd.dll C:\projects\dist\bin)
168  - IF %ARCH%==x86_64-w64-mingw32 (cp C:\msys64\mingw64\bin\libmetis.dll C:\projects\dist\bin)
169  - IF %ARCH%==x86_64-w64-mingw32 (cp C:\msys64\mingw64\bin\libgomp-1.dll C:\projects\dist\bin)
170  - IF %ARCH%==x86_64-w64-mingw32 (cp C:\msys64\mingw64\bin\libsuitesparseconfig.dll C:\projects\dist\bin)
171
172  - IF %ARCH%==i686-w64-mingw32 (cp C:\msys64\mingw32\bin\libblas.dll C:\projects\dist\bin)
173  - IF %ARCH%==i686-w64-mingw32 (cp C:\msys64\mingw32\bin\liblapack.dll C:\projects\dist\bin)
174  - IF %ARCH%==i686-w64-mingw32 (cp C:\msys64\mingw32\bin\libmetis.dll C:\projects\dist\bin)
175  - IF %ARCH%==i686-w64-mingw32 (cp C:\msys64\mingw32\bin\libgfortran-5.dll C:\projects\dist\bin)
176  - IF %ARCH%==i686-w64-mingw32 (cp C:\msys64\mingw32\bin\libgcc_s_dw2-1.dll C:\projects\dist\bin)
177  - IF %ARCH%==i686-w64-mingw32 (cp C:\msys64\mingw32\bin\libbz2-1.dll C:\projects\dist\bin)
178  - IF %ARCH%==i686-w64-mingw32 (cp C:\msys64\mingw32\bin\libwinpthread-1.dll C:\projects\dist\bin)
179  - IF %ARCH%==i686-w64-mingw32 (cp C:\msys64\mingw32\bin\libstdc++-6.dll C:\projects\dist\bin)
180  - IF %ARCH%==i686-w64-mingw32 (cp C:\msys64\mingw32\bin\libquadmath-0.dll C:\projects\dist\bin)
181  - IF %ARCH%==i686-w64-mingw32 (cp C:\msys64\mingw32\bin\libreadline8.dll C:\projects\dist\bin)
182  - IF %ARCH%==i686-w64-mingw32 (cp C:\msys64\mingw32\bin\libtermcap-0.dll C:\projects\dist\bin)
183  - IF %ARCH%==i686-w64-mingw32 (cp C:\msys64\mingw32\bin\zlib1.dll C:\projects\dist\bin)
184  - IF %ARCH%==i686-w64-mingw32 (cp C:\msys64\mingw32\bin\libcholmod.dll C:\projects\dist\bin)
185  - IF %ARCH%==i686-w64-mingw32 (cp C:\msys64\mingw32\bin\libcolamd.dll C:\projects\dist\bin)
186  - IF %ARCH%==i686-w64-mingw32 (cp C:\msys64\mingw32\bin\libccolamd.dll C:\projects\dist\bin)
187  - IF %ARCH%==i686-w64-mingw32 (cp C:\msys64\mingw32\bin\libamd.dll C:\projects\dist\bin)
188  - IF %ARCH%==i686-w64-mingw32 (cp C:\msys64\mingw32\bin\libcamd.dll C:\projects\dist\bin)
189  - IF %ARCH%==i686-w64-mingw32 (cp C:\msys64\mingw32\bin\libmetis.dll C:\projects\dist\bin)
190  - IF %ARCH%==i686-w64-mingw32 (cp C:\msys64\mingw32\bin\libgomp-1.dll C:\projects\dist\bin)
191  - IF %ARCH%==i686-w64-mingw32 (cp C:\msys64\mingw32\bin\libsuitesparseconfig.dll C:\projects\dist\bin)
192  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip C:\projects\dist\bin
193  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip C:\projects\dist\include
194  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip C:\projects\dist\lib
195  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip C:\projects\dist\share
196  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip C:\projects\%APPVEYOR_PROJECT_NAME%\README.md
197  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip C:\projects\%APPVEYOR_PROJECT_NAME%\LICENSE
198  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip C:\projects\%APPVEYOR_PROJECT_NAME%\AUTHORS
199  - 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
200  - C:\msys64\usr\bin\bash C:\projects\%APPVEYOR_PROJECT_NAME%\.ci\bintray.sh
201
202#on_finish:
203#  - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
204
Note: See TracBrowser for help on using the repository browser.