-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
263 lines (253 loc) · 11.8 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
version: 1.0.{build}
branches:
only:
- master
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
platform: win32
ARCH: win32-msvc15
configuration: Release
CMAKE_GENERATOR: "Visual Studio 15 2017"
MSVCVERSION: v141
MSVCYEAR: "vs2017"
MSVCABR: "15"
VC_VER: 15.0
PYTHONPATH: c:\Python35\
PYTHONPATHOMNI: "/cygdrive/c/Python35/python"
BOOST_ROOT: C:\Libraries\boost_1_63_0
ZMQ_BASE: C:\projects\libzmq
IDL_BASE: C:\projects\tangoidl
IDL_BIN: C:\Program Files\tangoidl
OMNI_BASE: C:\projects\omniORB-4.2.1
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
platform: x64
ARCH: x64-msvc15
configuration: Release
CMAKE_GENERATOR: "Visual Studio 15 2017 Win64"
MSVCVERSION: v141
MSVCYEAR: "vs2017"
MSVCABR: "15"
VC_VER: 15.0
PYTHONPATH: c:\Python35-x64\
PYTHONPATHOMNI: "/cygdrive/c/Python35-x64/python"
BOOST_ROOT: C:\Libraries\boost_1_63_0
ZMQ_BASE: C:\projects\libzmq
IDL_BASE: C:\projects\tangoidl
IDL_BIN: C:\Program Files\tangoidl
OMNI_BASE: C:\projects\omniORB-4.2.1
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
platform: win32
ARCH: win32-msvc9
configuration: Release
CMAKE_GENERATOR: "Visual Studio 9 2008"
MSVCVERSION: v90
MSVCYEAR: "vs2008"
MSVCABR: "9"
VC_VER: 9.0
PYTHONPATHOMNI: "/cygdrive/c/Python27/python"
BOOST_ROOT: C:\Libraries\boost_1_63_0
ZMQ_BASE: C:\projects\libzmq
IDL_BASE: C:\projects\tangoidl
IDL_BIN: C:\Program Files (x86)\tangoidl
OMNI_BASE: C:\projects\omniORB-4.2.1
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
platform: x64
ARCH: x64-msvc9
configuration: Release
CMAKE_GENERATOR: "Visual Studio 9 2008 Win64"
MSVCVERSION: v90
MSVCYEAR: "vs2008"
MSVCABR: "9"
VC_VER: 9.0
PYTHONPATHOMNI: "/cygdrive/c/Python27/python"
BOOST_ROOT: C:\Libraries\boost_1_63_0
ZMQ_BASE: C:\projects\libzmq
IDL_BASE: C:\projects\tangoidl
IDL_BIN: C:\Program Files\tangoidl
OMNI_BASE: C:\projects\omniORB-4.2.1
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
platform: win32
ARCH: win32-msvc10
configuration: Release
CMAKE_GENERATOR: "Visual Studio 10 2010"
MSVCVERSION: v100
MSVCYEAR: "vs2010"
MSVCABR: "10"
VC_VER: 10.0
PYTHONPATH: c:\Python33\
PYTHONPATHOMNI: "/cygdrive/c/Python33/python"
BOOST_ROOT: C:\Libraries\boost_1_63_0
ZMQ_BASE: C:\projects\libzmq
IDL_BASE: C:\projects\tangoidl
IDL_BIN: C:\Program Files (x86)\tangoidl
OMNI_BASE: C:\projects\omniORB-4.2.1
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
platform: x64
ARCH: x64-msvc10
configuration: Release
CMAKE_GENERATOR: "Visual Studio 10 2010 Win64"
MSVCVERSION: v100
MSVCYEAR: "vs2010"
MSVCABR: "10"
VC_VER: 10.0
PYTHONPATH: c:\Python33-x64\
PYTHONPATHOMNI: "/cygdrive/c/Python33-x64/python"
BOOST_ROOT: C:\Libraries\boost_1_63_0
ZMQ_BASE: C:\projects\libzmq
IDL_BASE: C:\projects\tangoidl
IDL_BIN: C:\Program Files\tangoidl
OMNI_BASE: C:\projects\omniORB-4.2.1
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
platform: win32
ARCH: win32-msvc12
configuration: Release
CMAKE_GENERATOR: "Visual Studio 12 2013"
MSVCVERSION: v120
MSVCYEAR: "vs2013"
MSVCABR: "13"
VC_VER: 13.0
PYTHONPATHOMNI: "/cygdrive/c/Python33/python"
BOOST_ROOT: C:\Libraries\boost_1_63_0
ZMQ_BASE: C:\projects\libzmq
IDL_BASE: C:\projects\tangoidl
IDL_BIN: C:\Program Files\tangoidl
OMNI_BASE: C:\projects\omniORB-4.2.1
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
platform: x64
ARCH: x64-msvc12
configuration: Release
CMAKE_GENERATOR: "Visual Studio 12 2013 Win64"
MSVCVERSION: v120
MSVCYEAR: "vs2013"
MSVCABR: "13"
VC_VER: 13.0
PYTHONPATHOMNI: "/cygdrive/c/Python33-x64/python"
BOOST_ROOT: C:\Libraries\boost_1_63_0
ZMQ_BASE: C:\projects\libzmq
IDL_BASE: C:\projects\tangoidl
IDL_BIN: C:\Program Files\tangoidl
OMNI_BASE: C:\projects\omniORB-4.2.1
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
platform: win32
ARCH: win32-msvc14
configuration: Release
CMAKE_GENERATOR: "Visual Studio 14 2015"
MSVCVERSION: v140
MSVCYEAR: "vs2015"
MSVCABR: "14"
VC_VER: 14.0
PYTHONPATH: c:\Python35\
PYTHONPATHOMNI: "/cygdrive/c/Python35/python"
BOOST_ROOT: C:\Libraries\boost_1_63_0
ZMQ_BASE: C:\projects\libzmq
IDL_BASE: C:\projects\tangoidl
IDL_BIN: C:\Program Files\tangoidl
OMNI_BASE: C:\projects\omniORB-4.2.1
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
platform: x64
ARCH: x64-msvc14
configuration: Release
CMAKE_GENERATOR: "Visual Studio 14 2015 Win64"
MSVCVERSION: v140
MSVCYEAR: "vs2015"
MSVCABR: "14"
VC_VER: 14.0
PYTHONPATH: c:\Python35-x64\
PYTHONPATHOMNI: "/cygdrive/c/Python35-x64/python"
BOOST_ROOT: C:\Libraries\boost_1_63_0
ZMQ_BASE: C:\projects\libzmq
IDL_BASE: C:\projects\tangoidl
IDL_BIN: C:\Program Files\tangoidl
OMNI_BASE: C:\projects\omniORB-4.2.1
init:
# go to hell Xamarin (see http://help.appveyor.com/discussions/problems/4569)
- cmd: if "%APPVEYOR_BUILD_WORKER_IMAGE%" NEQ "Visual Studio 2017" del "C:\Program Files (x86)\MSBuild\4.0\Microsoft.Common.Targets\ImportAfter\Xamarin.Common.targets"
- cmd: if "%APPVEYOR_BUILD_WORKER_IMAGE%" NEQ "Visual Studio 2017" del "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets"
- cmd: if "%APPVEYOR_BUILD_WORKER_IMAGE%" NEQ "Visual Studio 2017" del "C:\Program Files (x86)\MSBuild\12.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets"
#RDP from start
#- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
#Pthread-Win32
- cmd: cd "C:\projects\"
- cmd: md pthreads-win32-src
- cmd: cd "C:\projects\"
- appveyor DownloadFile "http://www.mirrorservice.org/sites/sources.redhat.com/pub/pthreads-win32/pthreads-w32-2-9-1-release.zip"
- cmd: 7z -y x pthreads-w32-2-9-1-release.zip -oC:\projects\pthreads-win32-src\
#VS2008 patch
- cmd: cd "C:\projects\"
- cmd: if "%APPVEYOR_BUILD_WORKER_IMAGE%" NEQ "Visual Studio 2017" appveyor DownloadFile https://github.com/menpo/condaci/raw/master/vs2008_patch.zip
- cmd: if "%APPVEYOR_BUILD_WORKER_IMAGE%" NEQ "Visual Studio 2017" 7z -y x vs2008_patch.zip -oC:\projects\vs2008_patch\
- cmd: if %ARCH%==x64-msvc9 call C:\projects\vs2008_patch\setup_x64.bat
- cmd: if %ARCH%==x32-msvc9 call C:\projects\vs2008_patch\setup_x86.bat
- cmd: if "%APPVEYOR_BUILD_WORKER_IMAGE%" NEQ "Visual Studio 2017" copy "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars64.bat" "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64\vcvarsamd64.bat"
- cmd: cd "C:\projects\Pthread_WIN32"
install:
- cmd: cd "C:\projects\Pthread_WIN32"
- cmd: md bin
- cmd: md lib
- cmd: md include
- cmd: dir
- cmd: cd "C:\projects\"
# Setting Visual Compiler
- cmd: if %ARCH%==win32-msvc9 call "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"
- cmd: if %ARCH%==win32-msvc9 set path=C:\Windows\Microsoft.NET\Framework\v4.0.30319;%path%
- cmd: if %ARCH%==x64-msvc9 call "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars64.bat"
- cmd: if %ARCH%==win32-msvc10 call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
- cmd: if %ARCH%==win32-msvc10 set path=C:\Windows\Microsoft.NET\Framework\v4.0.30319;%path%
- cmd: if %ARCH%==x64-msvc10 call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64
- cmd: if %ARCH%==win32-msvc12 call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat"
- cmd: if %ARCH%==x64-msvc12 call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x64
- cmd: if %ARCH%==win32-msvc14 call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
- cmd: if %ARCH%==x64-msvc14 call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64
- cmd: if %ARCH%==win32-msvc15 call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars32.bat"
- cmd: if %ARCH%==x64-msvc15 call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
- cmd: echo "Generator='%CMAKE_GENERATOR%'"
- cmd: echo "Platform='%Platform%'"
- cmd: set PYTHONPATH=%PYTHONPATH%
- cmd: set ARCH=%ARCH%
clone_folder: C:\projects\Pthread_WIN32
build:
parallel: true
verbosity: minimal
build_script:
- cmd: set ARCH=%ARCH%
- cmd: if %ARCH%==win32-msvc14 move /Y C:\projects\Pthread_WIN32\Makefile C:\projects\pthreads-win32-src\pthreads.2\Makefile
- cmd: if %ARCH%==x64-msvc14 move /Y C:\projects\Pthread_WIN32\Makefile C:\projects\pthreads-win32-src\pthreads.2\Makefile
- cmd: if %ARCH%==x64-msvc15 move /Y C:\projects\Pthread_WIN32\Makefile C:\projects\pthreads-win32-src\pthreads.2\Makefile
- cmd: if %ARCH%==win32-msvc15 move /Y C:\projects\Pthread_WIN32\Makefile C:\projects\pthreads-win32-src\pthreads.2\Makefile
- cmd: type "C:\projects\pthreads-win32-src\pthreads.2\Makefile"
- cmd: cd C:/projects/pthreads-win32-src/pthreads.2
- cmd: nmake VC-static
- cmd: dir
- cmd: move C:\projects\pthreads-win32-src\pthreads.2\pthreadVC2.lib C:\projects\Pthread_WIN32\lib\pthreadVC2-s.lib
- cmd: nmake VC-static-debug
- cmd: dir
- cmd: move C:\projects\pthreads-win32-src\pthreads.2\pthreadVC2d.lib C:\projects\Pthread_WIN32\lib\pthreadVC2-sd.lib
- cmd: nmake VC
- cmd: dir
- cmd: move C:\projects\pthreads-win32-src\pthreads.2\pthreadVC2.dll C:\projects\Pthread_WIN32\bin\pthreadVC2.dll
#- cmd: move C:\projects\pthreads-win32-src\pthreads.2\pthreadVC2.dll.manifest C:\projects\Pthread_WIN32\bin\pthreadVC2.dll.manifest
- cmd: move C:\projects\pthreads-win32-src\pthreads.2\pthreadVC2.exp C:\projects\Pthread_WIN32\bin\pthreadVC2.exp
- cmd: move C:\projects\pthreads-win32-src\pthreads.2\pthreadVC2.ilk C:\projects\Pthread_WIN32\bin\pthreadVC2.ilk
- cmd: move C:\projects\pthreads-win32-src\pthreads.2\pthreadVC2.lib C:\projects\Pthread_WIN32\lib\pthreadVC2.lib
- cmd: move C:\projects\pthreads-win32-src\pthreads.2\pthreadVC2.pdb C:\projects\Pthread_WIN32\bin\pthreadVC2.pdb
- cmd: nmake VC-debug
- cmd: dir
- cmd: move C:\projects\pthreads-win32-src\pthreads.2\pthreadVC2d.dll C:\projects\Pthread_WIN32\bin\pthreadVC2d.dll
#- cmd: move C:\projects\pthreads-win32-src\pthreads.2\pthreadVC2d.dll.manifest C:\projects\Pthread_WIN32\bin\pthreadVC2d.dll.manifest
- cmd: move C:\projects\pthreads-win32-src\pthreads.2\pthreadVC2d.exp C:\projects\Pthread_WIN32\bin\pthreadVC2d.exp
- cmd: move C:\projects\pthreads-win32-src\pthreads.2\pthreadVC2d.ilk C:\projects\Pthread_WIN32\bin\pthreadVC2d.ilk
- cmd: move C:\projects\pthreads-win32-src\pthreads.2\pthreadVC2d.lib C:\projects\Pthread_WIN32\lib\pthreadVC2d.lib
- cmd: move C:\projects\pthreads-win32-src\pthreads.2\pthreadVC2d.pdb C:\projects\Pthread_WIN32\bin\pthreadVC2d.pdb
- cmd: move C:\projects\pthreads-win32-src\Pre-built.2\include\*.* C:\projects\Pthread_WIN32\include
after_build:
- cmd: cd "C:/projects/Pthread_WIN32"
# Generating zip
- cmd: 7z a pthreads-win32-2.9.1_%ARCH%.zip C:/projects/Pthread_WIN32\bin\
- cmd: 7z a pthreads-win32-2.9.1_%ARCH%.zip C:/projects/Pthread_WIN32\lib\
- cmd: 7z a pthreads-win32-2.9.1_%ARCH%.zip C:/projects/Pthread_WIN32\include\
on_finish:
#RDP for finish
#- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
artifacts:
- path: ./*.zip