-
Notifications
You must be signed in to change notification settings - Fork 39
/
appveyor.yml
71 lines (64 loc) · 2.07 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
environment:
matrix:
- QT5: C:\Qt\5.4\mingw491_32
MINGW: C:\Qt\Tools\mingw491_32
DEPLOY: 0
- QT5: C:\Qt\5.5\mingw492_32
MINGW: C:\Qt\Tools\mingw492_32
DEPLOY: 0
- QT5: C:\Qt\5.6\mingw49_32
MINGW: C:\Qt\Tools\mingw492_32
DEPLOY: 0
- QT5: C:\Qt\5.7\mingw53_32
MINGW: C:\Qt\Tools\mingw530_32
DEPLOY: 0
- QT5: C:\Qt\5.8\mingw53_32
MINGW: C:\Qt\Tools\mingw530_32
DEPLOY: 0
- QT5: C:\Qt\5.9\mingw53_32
MINGW: C:\Qt\Tools\mingw530_32
DEPLOY: 0
- QT5: C:\Qt\5.10.1\mingw53_32
MINGW: C:\Qt\Tools\mingw530_32
DEPLOY: 1
matrix:
fast_finish: true
install:
- appveyor-retry cinst nsis -y -version 2.51
- appveyor-retry cinst 7zip.commandline -y -x86
- 7z e -o"C:\Program Files (x86)\NSIS\Include" deps\ns-process\NsProcess.zip Include\*.nsh
- 7z e -o"C:\Program Files (x86)\NSIS\Plugins" deps\ns-process\NsProcess.zip Plugin\*.dll
- git submodule update --init --recursive
before_build:
- set NSIS="C:\Program Files (x86)\NSIS"
- set PATH=%MINGW%\bin;%QT5%\bin;%NSIS%;%PATH%
build_script:
- qmake -v
- qmake qnapi.pro
- mingw32-make -j4
- mingw32-make install
after_build:
- test %DEPLOY% -eq 1 && makensis win32\QNapi-setup.nsi || true
- test %DEPLOY% -eq 1 && scripts\version.bat > ver.txt || true
- test %DEPLOY% -eq 1 && set /p VERSION=<ver.txt || true
- test %DEPLOY% -eq 1 && del ver.txt || true
- test %DEPLOY% -eq 1 && cd win32 || true
- test %DEPLOY% -eq 1 && rename out QNapi || true
- test %DEPLOY% -eq 1 && cd QNapi || true
- test %DEPLOY% -eq 1 && copy /y nul qnapi.ini || true
- test %DEPLOY% -eq 1 && cd .. || true
- test %DEPLOY% -eq 1 && 7z a -tzip QNapi-%VERSION%-portable.zip QNapi || true
- test %DEPLOY% -eq 1 && cd .. || true
artifacts:
- path: win32\QNapi*zip
- path: win32\QNapi*exe
deploy:
provider: GitHub
description: This is latest snapshot release. Be careful - it may not be stable!
auth_token:
secure: W8Vjs744iJ2Tb6DWml0XY8LAOyj3FXlvA9ZhAlaIxCAYhjAL3e7yolizmaoLSlhy
artifact: /QNapi.*/
force_update: true
prerelease: true
on:
appveyor_repo_tag: true