forked from fpoussin/QtUsb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
71 lines (60 loc) · 1.73 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
branches:
only:
- master
- appveyor
matrix:
fast_finish: false
environment:
matrix:
- arch: x64
qt: 5.14
msvc: 2019
mode: dynamic
QTDIR: C:\Qt\%qt%\msvc2017_64
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
- arch: x64
qt: 5.14
msvc: 2019
mode: static
QTDIR: C:\Qt\%qt%\msvc2017_64
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
- arch: x86
qt: 5.14
msvc: 2019
mode: dynamic
QTDIR: C:\Qt\%qt%\msvc2017
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
- arch: x86
qt: 5.14
msvc: 2019
mode: static
QTDIR: C:\Qt\%qt%\msvc2017
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
build_script:
- cd %APPVEYOR_BUILD_FOLDER%
- build_msvc.bat %msvc% %arch% %mode% %QTDIR% C:\projects\qtusb-build \projects\qtusb-install
after_build:
- mkdir %APPVEYOR_BUILD_FOLDER%\artifacts
- cd %APPVEYOR_BUILD_FOLDER%\artifacts
- if %APPVEYOR_REPO_TAG%==true (
7z a %APPVEYOR_REPO_TAG_NAME%-qt%qt%-usb-msvc-%mode%-%arch%.7z C:\projects\qtusb-install\*
) else (
7z a %APPVEYOR_REPO_COMMIT%-qt%qt%-usb-msvc-%mode%-%arch%.7z C:\projects\qtusb-install\*
)
artifacts:
- path: artifacts\*.7z
name: QtUsb install files
deploy:
- provider: GitHub
auth_token:
secure: FUMVTjWuerUmKlLiPtjpxjmizC+wsDanxGBFWF/T6sicn7ctP/Aleh9+hZKKskXJ
artifact: QtUsb install files
force_update: true
on:
branch: master
APPVEYOR_REPO_TAG: true
test: off
on_success:
- ps: |
$wc = New-Object 'System.Net.WebClient'
Get-ChildItem -Path C:\projects\qtusb-build\tests -Recurse -Filter "xunit.xml" | ForEach-Object { Write-Host $wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", $_.FullName) }