forked from d1vanov/quentier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
323 lines (312 loc) · 22.2 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
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
version: '0.4.0-{build}'
branches:
only:
- master
- development
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/
skip_commits:
files:
- '*.md'
- COPYING
environment:
auth_token:
secure: rLuHhO0prerqoGCYmfOoyxqcwwamCXtuZtl4Jzqeu3aGgflk0mnX1fogLq68YcRW
matrix:
- prepare_mode: YES
name: win32-prepare
platform: amd64_x86
qt: msvc2015
- prepare_mode: NO
name: win32
platform: amd64_x86
qt: msvc2015
- prepare_mode: NO
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
name: win64
platform: amd64
qt: msvc2017_64
- prepare_mode: NO
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
name: win32
platform: mingw
qt: mingw492_32
clone_folder: c:\dev\quentier
init:
- if not %platform%==mingw set PATH=C:\Qt\5.10\%qt%\bin;%PATH%
- if %platform%==mingw set PATH=C:\Qt\5.5\%qt%\bin;%PATH%
- set ORIGPATH=%PATH%
- if %platform%==amd64 set tool=VS2017_x64
- if %platform%==amd64_x86 set tool=VS2015_x86
- if %platform%==mingw set tool=MinGW_x86
- if %platform%==mingw set DEPLOYMENT_TARGET=Quentier-0.4.0-windows-portable-qt55-%tool%.zip
- if not %platform%==mingw set DEPLOYMENT_TARGET=Quentier-0.4.0-windows-portable-qt510-%tool%.zip
- if %platform%==amd64 call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
- if %platform%==amd64_x86 call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %platform%
- if not %platform%==mingw (set makefiles="NMake Makefiles") else (set makefiles="MinGW Makefiles")
- if %platform%==mingw (set use_webkit=1) else (set use_webkit=0)
- if %platform%==mingw set PATH=C:\MinGW\bin;C:\Program Files (x86)\CMake\bin;%PATH%
- if %qt%==msvc2017_64 set PATH="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin";%PATH%
- if %qt%==msvc2015 set PATH="C:\Program Files (x86)\MSBuild\14.0\Bin";%PATH%
install:
- echo "Downloading ciuploadtool"
- md c:\dev\ciuploadtool
- cd c:\dev\ciuploadtool
- curl -fsSL https://github.com/d1vanov/ciuploadtool/releases/download/continuous-master/ciuploadtool_windows_x86.zip -o ciuploadtool_windows_x86.zip
- 7z x ciuploadtool_windows_x86.zip
- if %prepare_mode%==YES c:\dev\ciuploadtool\ciuploadtool.exe -preponly -suffix="%APPVEYOR_REPO_BRANCH%"
- ps: if ($env:prepare_mode -eq "YES") { throw "Failing in order to stop the current build matrix job early" }
# libiconv
- echo "Downloading libiconv"
- md c:\dev\libiconv
- cd c:\dev\libiconv
- if %qt%==msvc2015 curl -fsSL https://github.com/d1vanov/quentier-dependencies-windows/releases/download/continuous/libiconv-1.15-msvc2015_x86.zip -o libiconv-1.15-msvc2015_x86.zip
- if %qt%==msvc2015 7z x libiconv-1.15-msvc2015_x86.zip
- if %qt%==msvc2017_64 curl -fsSL https://github.com/d1vanov/quentier-dependencies-windows/releases/download/continuous/libiconv-1.15-msvc2017_x64.zip -o libiconv-1.15-msvc2017_x64.zip
- if %qt%==msvc2017_64 7z x libiconv-1.15-msvc2017_x64.zip
- if %qt%==mingw492_32 curl -fsSL https://github.com/d1vanov/quentier-dependencies-windows/releases/download/continuous/libiconv-1.15-mingw530_x86.zip -o libiconv-1.15-mingw530_x86.zip
- if %qt%==mingw492_32 7z x libiconv-1.15-mingw530_x86.zip
- set PATH=%cd%\bin;%PATH%
- set LIB=%cd%\lib;%LIB%
- set INCLUDE=%cd%\include;%INCLUDE%
# zlib
- echo "Downloading zlib"
- md c:\dev\zlib
- cd c:\dev\zlib
- if %qt%==msvc2015 curl -fsSL https://github.com/d1vanov/quentier-dependencies-windows/releases/download/continuous/zlib-1.2.11-msvc2015_x86.zip -o zlib-1.2.11-msvc2015_x86.zip
- if %qt%==msvc2015 7z x zlib-1.2.11-msvc2015_x86.zip
- if %qt%==msvc2017_64 curl -fsSL https://github.com/d1vanov/quentier-dependencies-windows/releases/download/continuous/zlib-1.2.11-msvc2017_x64.zip -o zlib-1.2.11-msvc2017_x64.zip
- if %qt%==msvc2017_64 7z x zlib-1.2.11-msvc2017_x64.zip
- if %qt%==mingw492_32 curl -fsSL https://github.com/d1vanov/quentier-dependencies-windows/releases/download/continuous/zlib-1.2.11-mingw530_x86.zip -o zlib-1.2.11-mingw530_x86.zip
- if %qt%==mingw492_32 7z x zlib-1.2.11-mingw530_x86.zip
- set PATH=%cd%\bin;%PATH%
- set LIB=%cd%\lib;%LIB%
- set INCLUDE=%cd%\include;%INCLUDE%
- set ZLIB_INCLUDE_DIRS=%cd%\include
- if not %qt%==mingw492_32 set ZLIB_LIBRARIES=%cd%\lib\libz.lib
- if %qt%==mingw492_32 set ZLIB_LIBRARIES=%cd%\lib\libz.dll.a
# libxml2
- echo "Downloading libxml2"
- md c:\dev\libxml2
- cd c:\dev\libxml2
- if %qt%==msvc2015 curl -fsSL https://github.com/d1vanov/quentier-dependencies-windows/releases/download/continuous/libxml2-2.9.7-msvc2015_x86.zip -o libxml2-2.9.7-msvc2015_x86.zip
- if %qt%==msvc2015 7z x libxml2-2.9.7-msvc2015_x86.zip
- if %qt%==msvc2017_64 curl -fsSL https://github.com/d1vanov/quentier-dependencies-windows/releases/download/continuous/libxml2-2.9.7-msvc2017_x64.zip -o libxml2-2.9.7-msvc2017_x64.zip
- if %qt%==msvc2017_64 7z x libxml2-2.9.7-msvc2017_x64.zip
- if %qt%==mingw492_32 curl -fsSL https://github.com/d1vanov/quentier-dependencies-windows/releases/download/continuous/libxml2-2.9.7-mingw530_x86.zip -o libxml2-2.9.7-mingw530_x86.zip
- if %qt%==mingw492_32 7z x libxml2-2.9.7-mingw530_x86.zip
- set PATH=%cd%\bin;%PATH%
- set LIB=%cd%\lib;%LIB%
- set INCLUDE=%cd%\include;%INCLUDE%
# libhunspell
- echo "Downloading libhunspell"
- md c:\dev\libhunspell
- cd c:\dev\libhunspell
- if %qt%==msvc2015 curl -fsSL https://github.com/d1vanov/quentier-dependencies-windows/releases/download/continuous/libhunspell-1.7.0-msvc2015_x86.zip -o libhunspell-1.7.0-msvc2015_x86.zip
- if %qt%==msvc2015 7z x libhunspell-1.7.0-msvc2015_x86.zip
- if %qt%==msvc2017_64 curl -fsSL https://github.com/d1vanov/quentier-dependencies-windows/releases/download/continuous/libhunspell-1.7.0-msvc2017_x64.zip -o libhunspell-1.7.0-msvc2017_x64.zip
- if %qt%==msvc2017_64 7z x libhunspell-1.7.0-msvc2017_x64.zip
- if %qt%==mingw492_32 curl -fsSL https://github.com/d1vanov/quentier-dependencies-windows/releases/download/continuous/libhunspell-1.6.2-mingw530_x86.zip -o libhunspell-1.6.2-mingw530_x86.zip
- if %qt%==mingw492_32 7z x libhunspell-1.6.2-mingw530_x86.zip
- set PATH=%cd%\bin;%PATH%
- set LIB=%cd%\lib;%LIB%
- set INCLUDE=%cd%\include;%INCLUDE%
# tidy-html5
- echo "Downloading tidy-html5"
- md c:\dev\tidy-html5
- cd c:\dev\tidy-html5
- if %qt%==msvc2015 curl -fsSL https://github.com/d1vanov/quentier-dependencies-windows/releases/download/continuous/tidy-html5-5.6.0-msvc2015_x86.zip -o tidy-html5-5.6.0-msvc2015_x86.zip
- if %qt%==msvc2015 7z x tidy-html5-5.6.0-msvc2015_x86.zip
- if %qt%==msvc2017_64 curl -fsSL https://github.com/d1vanov/quentier-dependencies-windows/releases/download/continuous/tidy-html5-5.6.0-msvc2017_x64.zip -o tidy-html5-5.6.0-msvc2017_x64.zip
- if %qt%==msvc2017_64 7z x tidy-html5-5.6.0-msvc2017_x64.zip
- if %qt%==mingw492_32 curl -fsSL https://github.com/d1vanov/quentier-dependencies-windows/releases/download/continuous/tidy-html5-5.6.0-mingw530_x86.zip -o tidy-html5-5.6.0-mingw530_x86.zip
- if %qt%==mingw492_32 7z x tidy-html5-5.6.0-mingw530_x86.zip
- set PATH=%cd%\bin;%PATH%
- set LIB=%cd%\lib;%LIB%
- set INCLUDE=%cd%\include;%INCLUDE%
# Boost
- echo "Downloading boost"
- md c:\dev\boost
- cd c:\dev\boost
- if %qt%==msvc2015 curl -fsSL https://github.com/d1vanov/quentier-dependencies-windows/releases/download/continuous/boost-1_65_0-msvc2015_x86.zip -o boost-1_65_0-msvc2015_x86.zip
- if %qt%==msvc2015 7z x boost-1_65_0-msvc2015_x86.zip
- if %qt%==msvc2017_64 curl -fsSL https://github.com/d1vanov/quentier-dependencies-windows/releases/download/continuous/boost-1_65_0-msvc2017_x64.zip -o boost-1_65_0-msvc2017_x64.zip
- if %qt%==msvc2017_64 7z x boost-1_65_0-msvc2017_x64.zip
- if %qt%==mingw492_32 curl -fsSL https://github.com/d1vanov/quentier-dependencies-windows/releases/download/continuous/boost-1_65_0-mingw530_x86.zip -o boost-1_65_0-mingw530_x86.zip
- if %qt%==mingw492_32 7z x boost-1_65_0-mingw530_x86.zip
- set PATH=%cd%\bin;%PATH%
- set LIB=%cd%\lib;%LIB%
- set INCLUDE=%cd%\include;%INCLUDE%
- set BOOST_ROOT=%cd%
# OpenSSL
- echo "Downloading OpenSSL"
- md c:\dev\openssl
- cd c:\dev\openssl
- if %qt%==msvc2015 curl -fsSL https://github.com/d1vanov/quentier-dependencies-windows/releases/download/continuous/openssl-1_0_2r-msvc2015_x86.zip -o openssl-1_0_2r-msvc2015_x86.zip
- if %qt%==msvc2015 7z x openssl-1_0_2r-msvc2015_x86.zip
- if %qt%==msvc2017_64 curl -fsSL https://github.com/d1vanov/quentier-dependencies-windows/releases/download/continuous/openssl-1_0_2r-msvc2017_x64.zip -o openssl-1_0_2r-msvc2017_x64.zip
- if %qt%==msvc2017_64 7z x openssl-1_0_2r-msvc2017_x64.zip
- if %qt%==mingw492_32 curl -fsSL https://github.com/d1vanov/quentier-dependencies-windows/releases/download/continuous/openssl-1_0_2r-mingw530_x86.zip -o openssl-1_0_2r-mingw530_x86.zip
- if %qt%==mingw492_32 7z x openssl-1_0_2r-mingw530_x86.zip
- set PATH=%cd%\bin;%PATH%
- set LIB=%cd%\lib;%LIB%
- set INCLUDE=%cd%\include;%INCLUDE%
- set OPENSSL_ROOT_DIR=%cd%
# Qtkeychain
- echo "Downloading qtkeychain"
- md c:\dev\qtkeychain
- cd c:\dev\qtkeychain
- if %qt%==msvc2015 curl -fsSL https://github.com/d1vanov/quentier-dependencies-windows/releases/download/continuous/qtkeychain-0.9.1-msvc2015_x86.zip -o qtkeychain-0.9.1-msvc2015_x86.zip
- if %qt%==msvc2015 7z x qtkeychain-0.9.1-msvc2015_x86.zip
- if %qt%==msvc2017_64 curl -fsSL https://github.com/d1vanov/quentier-dependencies-windows/releases/download/continuous/qtkeychain-0.9.1-msvc2017_x64.zip -o qtkeychain-0.9.1-msvc2017_x64.zip
- if %qt%==msvc2017_64 7z x qtkeychain-0.9.1-msvc2017_x64.zip
- if %qt%==mingw492_32 curl -fsSL https://github.com/d1vanov/quentier-dependencies-windows/releases/download/continuous/qtkeychain-0.9.1-mingw530_x86.zip -o qtkeychain-0.9.1-mingw530_x86.zip
- if %qt%==mingw492_32 7z x qtkeychain-0.9.1-mingw530_x86.zip
- set PATH=%cd%\bin;%PATH%
- set LIB=%cd%\lib;%LIB%
- set INCLUDE=%cd%\include;%INCLUDE%
# Google breakpad
- if not %qt%==mingw492_32 echo "Downloading breakpad"
- if not %qt%==mingw492_32 md c:\dev\breakpad
- if not %qt%==mingw492_32 cd c:\dev\breakpad
- if %qt%==msvc2015 curl -fsSL https://github.com/d1vanov/quentier-dependencies-windows/releases/download/continuous/breakpad-msvc2015_x86.zip -o breakpad-msvc2015_x86.zip
- if %qt%==msvc2015 7z x breakpad-msvc2015_x86.zip
- if %qt%==msvc2017_64 curl -fsSL https://github.com/d1vanov/quentier-dependencies-windows/releases/download/continuous/breakpad-msvc2017_x64.zip -o breakpad-msvc2017_x64.zip
- if %qt%==msvc2017_64 7z x breakpad-msvc2017_x64.zip
- if not %qt%==mingw492_32 set PATH=%cd%\bin;%PATH%
- if not %qt%==mingw492_32 set LIB=%cd%\lib;%LIB%
- if not %qt%==mingw492_32 set INCLUDE=%cd%\include;%INCLUDE%
# QEverCloud
- echo "Downloading QEverCloud"
- md c:\dev\qevercloud
- cd c:\dev\qevercloud
# First try to download the prebuilt binary to save the precious time as well as CPU cycles
- md build\installdir
- cd build\installdir
- set QEVERCLOUD_DOWNLOADED=0
- if %qt%==msvc2015 if "%APPVEYOR_REPO_BRANCH%" == "development" curl -fsSL https://github.com/d1vanov/QEverCloud/releases/download/continuous-development/qevercloud-windows-qt510-VS2015_x86.zip -o qevercloud-windows-qt510-VS2015_x86.zip & set errorlevel=0
- if %qt%==msvc2015 if not "%APPVEYOR_REPO_BRANCH%" == "development" curl -fsSL https://github.com/d1vanov/QEverCloud/releases/download/continuous-master/qevercloud-windows-qt510-VS2015_x86.zip -o qevercloud-windows-qt510-VS2015_x86.zip & set errorlevel=0
- if %qt%==msvc2017_64 if "%APPVEYOR_REPO_BRANCH%" == "development" curl -fsSL https://github.com/d1vanov/QEverCloud/releases/download/continuous-development/qevercloud-windows-qt510-VS2017_x64.zip -o qevercloud-windows-qt510-VS2017_x64.zip & set errorlevel=0
- if %qt%==msvc2017_64 if not "%APPVEYOR_REPO_BRANCH%" == "development" curl -fsSL https://github.com/d1vanov/QEverCloud/releases/download/continuous-master/qevercloud-windows-qt510-VS2017_x64.zip -o qevercloud-windows-qt510-VS2017_x64.zip & set errorlevel=0
- if %qt%==mingw492_32 if "%APPVEYOR_REPO_BRANCH%" == "development" curl -fsSL https://github.com/d1vanov/QEverCloud/releases/download/continuous-development/qevercloud-windows-qt55-MinGW_x86.zip -o qevercloud-windows-qt55-MinGW_x86.zip & set errorlevel=0
- if %qt%==mingw492_32 if not "%APPVEYOR_REPO_BRANCH%" == "development" curl -fsSL https://github.com/d1vanov/QEverCloud/releases/download/continuous-master/qevercloud-windows-qt55-MinGW_x86.zip -o qevercloud-windows-qt55-MinGW_x86.zip & set errorlevel=0
- if %qt%==msvc2015 if exist qevercloud-windows-qt510-VS2015_x86.zip set QEVERCLOUD_DOWNLOADED=1
- if %qt%==msvc2017_64 if exist qevercloud-windows-qt510-VS2017_x64.zip set QEVERCLOUD_DOWNLOADED=1
- if %qt%==mingw492_32 if exist qevercloud-windows-qt55-MinGW_x86.zip set QEVERCLOUD_DOWNLOADED=1
- if %qt%==msvc2015 if %QEVERCLOUD_DOWNLOADED%==1 7z x qevercloud-windows-qt510-VS2015_x86.zip
- if %qt%==msvc2017_64 if %QEVERCLOUD_DOWNLOADED%==1 7z x qevercloud-windows-qt510-VS2017_x64.zip
- if %qt%==mingw492_32 if %QEVERCLOUD_DOWNLOADED%==1 7z x qevercloud-windows-qt55-MinGW_x86.zip
- if %QEVERCLOUD_DOWNLOADED%==1 set PATH=%cd%\bin;%PATH%
- if %QEVERCLOUD_DOWNLOADED%==1 set LIB=%cd%\lib;%LIB%
- if %QEVERCLOUD_DOWNLOADED%==1 set INCLUDE=%cd%\lib;%INCLUDE%
# In case of failure clone the QEverCloud repo and build the library from sources
- if not %QEVERCLOUD_DOWNLOADED%==1 cd c:\dev
- if not %QEVERCLOUD_DOWNLOADED%==1 rd /s /q qevercloud
- if not %QEVERCLOUD_DOWNLOADED%==1 git clone https://github.com/d1vanov/QEverCloud.git qevercloud
- if not %QEVERCLOUD_DOWNLOADED%==1 cd c:\dev\qevercloud
- if not %QEVERCLOUD_DOWNLOADED%==1 echo "Building QEverCloud"
- if not %QEVERCLOUD_DOWNLOADED%==1 if %APPVEYOR_REPO_BRANCH%=="development" git checkout development
- if not %QEVERCLOUD_DOWNLOADED%==1 md build
- if not %QEVERCLOUD_DOWNLOADED%==1 cd build
- if not %QEVERCLOUD_DOWNLOADED%==1 if %qt%==mingw492_32 set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
- if not %QEVERCLOUD_DOWNLOADED%==1 if %qt%==mingw492_32 set PATH=C:\MinGW\bin;C:\Qt\5.5\%qt%\bin;%PATH%
- if not %QEVERCLOUD_DOWNLOADED%==1 if not %qt%==mingw492_32 cmake .. -G %makefiles% -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX="c:\dev\qevercloud\build\installdir" -DUSE_QT5=1 -DCMAKE_PREFIX_PATH="C:/Qt/5.10/%qt%
- if not %QEVERCLOUD_DOWNLOADED%==1 if %qt%==mingw492_32 cmake .. -G %makefiles% -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX="c:\dev\qevercloud\build\installdir" -DUSE_QT5=1 -DUSE_QT5_WEBKIT=1 -DCMAKE_PREFIX_PATH="C:/Qt/5.5/%qt%
- if not %QEVERCLOUD_DOWNLOADED%==1 cmake --build . --target all
- if not %QEVERCLOUD_DOWNLOADED%==1 if NOT ERRORLEVEL 0 exit 1
- if not %QEVERCLOUD_DOWNLOADED%==1 cmake --build . --target check
- if not %QEVERCLOUD_DOWNLOADED%==1 if NOT ERRORLEVEL 0 exit 1
- if not %QEVERCLOUD_DOWNLOADED%==1 cmake --build . --target install
- if not %QEVERCLOUD_DOWNLOADED%==1 if NOT ERRORLEVEL 0 exit 1
- if not %QEVERCLOUD_DOWNLOADED%==1 if %qt%==mingw492_32 set PATH=%PATH%;C:\Program Files\Git\usr\bin
- if not %QEVERCLOUD_DOWNLOADED%==1 set PATH=%PATH%;%cd%\installdir\bin
- if not %QEVERCLOUD_DOWNLOADED%==1 set LIB=%LIB%;%cd%\installdir\lib
- if not %QEVERCLOUD_DOWNLOADED%==1 set INCLUDE=%INCLUDE%;%cd%\installdir\include
# Libquentier
- echo "Downloading libquentier"
- md c:\dev\libquentier
- cd c:\dev\libquentier
- set LIBQUENTIER_DOWNLOADED=0
# First try to download the prebuilt binary to save the precious time as well as CPU cycles
- md build\installdir
- cd build\installdir
- if %qt%==msvc2015 if "%APPVEYOR_REPO_BRANCH%" == "development" curl -fsSL https://github.com/d1vanov/libquentier/releases/download/continuous-development/libquentier-windows-qt510-VS2015_x86.zip -o libquentier-windows-qt510-VS2015_x86.zip & set errorlevel=0
- if %qt%==msvc2015 if not "%APPVEYOR_REPO_BRANCH%" == "development" curl -fsSL https://github.com/d1vanov/libquentier/releases/download/continuous-master/libquentier-windows-qt510-VS2015_x86.zip -o libquentier-windows-qt510-VS2015_x86.zip & set errorlevel=0
- if %qt%==msvc2017_64 if "%APPVEYOR_REPO_BRANCH%" == "development" curl -fsSL https://github.com/d1vanov/libquentier/releases/download/continuous-development/libquentier-windows-qt510-VS2017_x64.zip -o libquentier-windows-qt510-VS2017_x64.zip & set errorlevel=0
- if %qt%==msvc2017_64 if not "%APPVEYOR_REPO_BRANCH%" == "development" curl -fsSL https://github.com/d1vanov/libquentier/releases/download/continuous-master/libquentier-windows-qt510-VS2017_x64.zip -o libquentier-windows-qt510-VS2017_x64.zip & set errorlevel=0
- if %qt%==mingw492_32 if "%APPVEYOR_REPO_BRANCH%" == "development" curl -fsSL https://github.com/d1vanov/libquentier/releases/download/continuous-development/libquentier-windows-qt55-MinGW_x86.zip -o libquentier-windows-qt55-MinGW_x86.zip & set errorlevel=0
- if %qt%==mingw492_32 if not "%APPVEYOR_REPO_BRANCH%" == "development" curl -fsSL https://github.com/d1vanov/libquentier/releases/download/continuous-master/libquentier-windows-qt55-MinGW_x86.zip -o libquentier-windows-qt55-MinGW_x86.zip & set errorlevel=0
- if %qt%==msvc2015 if exist libquentier-windows-qt510-VS2015_x86.zip set LIBQUENTIER_DOWNLOADED=1
- if %qt%==msvc2017_64 if exist libquentier-windows-qt510-VS2017_x64.zip set LIBQUENTIER_DOWNLOADED=1
- if %qt%==mingw492_32 if exist libquentier-windows-qt55-MinGW_x86.zip set LIBQUENTIER_DOWNLOADED=1
- if %qt%==msvc2015 if %LIBQUENTIER_DOWNLOADED%==1 7z x libquentier-windows-qt510-VS2015_x86.zip
- if %qt%==msvc2017_64 if %LIBQUENTIER_DOWNLOADED%==1 7z x libquentier-windows-qt510-VS2017_x64.zip
- if %qt%==mingw492_32 if %LIBQUENTIER_DOWNLOADED%==1 7z x libquentier-windows-qt55-MinGW_x86.zip
- if %LIBQUENTIER_DOWNLOADED%==1 set PATH=%cd%\bin;%PATH%
- if %LIBQUENTIER_DOWNLOADED%==1 set LIB=%cd%\lib;%LIB%
- if %LIBQUENTIER_DOWNLOADED%==1 set INCLUDE=%cd%\lib;%INCLUDE%
# In case of failure clone the libquentier repo and build the library from sources
- if not %LIBQUENTIER_DOWNLOADED%==1 cd c:\dev
- if not %LIBQUENTIER_DOWNLOADED%==1 rd /s /q libquentier
- if not %LIBQUENTIER_DOWNLOADED%==1 git clone https://github.com/d1vanov/libquentier.git libquentier
- if not %LIBQUENTIER_DOWNLOADED%==1 cd libquentier
- if not %LIBQUENTIER_DOWNLOADED%==1 echo "Building libquentier"
- if not %LIBQUENTIER_DOWNLOADED%==1 if %APPVEYOR_REPO_BRANCH%=="development" git checkout development
- if not %LIBQUENTIER_DOWNLOADED%==1 md build
- if not %LIBQUENTIER_DOWNLOADED%==1 cd build
- if not %LIBQUENTIER_DOWNLOADED%==1 if %qt%==mingw492_32 set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
- if not %LIBQUENTIER_DOWNLOADED%==1 if %qt%==mingw492_32 set PATH=C:\MinGW\bin;C:\Qt\5.5\%qt%\bin;%PATH%
- if not %LIBQUENTIER_DOWNLOADED%==1 if not %qt%==mingw492_32 cmake .. -G %makefiles% -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX="c:\dev\libquentier\build\installdir" -DUSE_QT5=1 -DCMAKE_PREFIX_PATH="C:/Qt/5.10/%qt%"
- if not %LIBQUENTIER_DOWNLOADED%==1 if %qt%==mingw492_32 cmake .. -G %makefiles% -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX="c:\dev\libquentier\build\installdir" -DUSE_QT5=1 -DUSE_QT5_WEBKIT=1 -DCMAKE_PREFIX_PATH="C:/Qt/5.5/%qt%
- if not %LIBQUENTIER_DOWNLOADED%==1 cmake --build . --target all
- if not %LIBQUENTIER_DOWNLOADED%==1 if NOT ERRORLEVEL 0 exit 1
- if not %LIBQUENTIER_DOWNLOADED%==1 cmake --build . --target check
- if not %LIBQUENTIER_DOWNLOADED%==1 if NOT ERRORLEVEL 0 exit 1
- if not %LIBQUENTIER_DOWNLOADED%==1 cmake --build . --target lupdate
- if not %LIBQUENTIER_DOWNLOADED%==1 if NOT ERRORLEVEL 0 exit 1
- if not %LIBQUENTIER_DOWNLOADED%==1 cmake --build . --target lrelease
- if not %LIBQUENTIER_DOWNLOADED%==1 if NOT ERRORLEVEL 0 exit 1
- if not %LIBQUENTIER_DOWNLOADED%==1 cmake --build . --target install
- if not %LIBQUENTIER_DOWNLOADED%==1 if NOT ERRORLEVEL 0 exit 1
- if not %LIBQUENTIER_DOWNLOADED%==1 if %qt%==mingw492_32 set PATH=%PATH%;C:\Program Files\Git\usr\bin
- if not %LIBQUENTIER_DOWNLOADED%==1 set PATH=%PATH%;%cd%\installdir\bin
- if not %LIBQUENTIER_DOWNLOADED%==1 set LIB=%LIB%;%cd%\installdir\lib
- if not %LIBQUENTIER_DOWNLOADED%==1 set INCLUDE=%INCLUDE%;%cd%\installdir\include
before_build:
- cd c:\dev\quentier
- md build
- if not %qt%==mingw492_32 copy c:\dev\breakpad\bin\common.pdb c:\dev\quentier\build\common.pdb
- if not %qt%==mingw492_32 copy c:\dev\breakpad\bin\crash_generation_client.pdb c:\dev\quentier\build\crash_generation_client.pdb
- if not %qt%==mingw492_32 copy c:\dev\breakpad\bin\exception_handler.pdb c:\dev\quentier\build\exception_handler.pdb
build_script:
- cd c:\dev\quentier\build
- if %qt%==mingw492_32 set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
- if %qt%==mingw492_32 set PATH=C:\MinGW\bin;C:\Qt\5.5\%qt%\bin;%PATH%
- if %qt%==mingw492_32 cmake .. -G %makefiles% -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX="c:/dev/install" -DUSE_QT5=1 -DCMAKE_PREFIX_PATH="C:/Qt/5.5/%qt%" -DZLIB_LIBRARY="C:/dev/zlib/lib/libz.dll.a" -DNSIS_MAKE="c:/Program Files (x86)/NSIS/makensis.exe" -DOPENSSL_ROOT_DIR="c:/dev/openssl" -DBOOST_ROOT="c:/dev/boost"
- if not %qt%==mingw492_32 cmake .. -G %makefiles% -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX="c:/dev/install" -DUSE_QT5=1 -DCMAKE_PREFIX_PATH="C:/Qt/5.10/%qt%" -DZLIB_LIBRARY="C:/dev/zlib/lib/libz.lib" -DBREAKPAD_ROOT="C:/dev/breakpad" -DNSIS_MAKE="c:/Program Files (x86)/NSIS/makensis.exe" -DOPENSSL_ROOT_DIR="c:/dev/openssl" -DBOOST_ROOT="c:/dev/boost"
- cmake --build . --target all
- if NOT ERRORLEVEL 0 exit 1
- cmake --build . --target check
- if NOT ERRORLEVEL 0 exit 1
- cmake --build . --target lupdate
- if NOT ERRORLEVEL 0 exit 1
- cmake --build . --target lrelease
- if NOT ERRORLEVEL 0 exit 1
- cmake --build . --target install
- if NOT ERRORLEVEL 0 exit 1
- move Setup*.exe %APPVEYOR_BUILD_FOLDER%
- if %qt%==mingw492_32 set PATH=%ORIGPATH%
after_build:
- cd c:\dev\install
- 7z a -tzip -mx=9 -mfb=128 -mpass=10 %DEPLOYMENT_TARGET% c:\dev\install\*
- move %DEPLOYMENT_TARGET% %APPVEYOR_BUILD_FOLDER%
- cd %APPVEYOR_BUILD_FOLDER%
- c:\dev\ciuploadtool\ciuploadtool.exe -suffix="%APPVEYOR_REPO_BRANCH%" Setup*.exe Quentier-*.zip
artifacts:
- path: '*.zip'
name: archive
- path: 'Setup*.exe'
name: installer
matrix:
allow_failures:
- prepare_mode: YES
fast_finish: true