-
Notifications
You must be signed in to change notification settings - Fork 64
/
appveyor.yml
71 lines (54 loc) · 1.82 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
version: 0.15-{build}-{branch}
image: Visual Studio 2017
environment:
SDK_INSTALL_PREFIX: C:\
matrix:
- BITS: 32
QTDIR: C:\Qt\5.9.5\msvc2015
ARCH: x86
- BITS: 64
QTDIR: C:\Qt\5.9.5\msvc2017_64
ARCH: x64
# Uncomment to enable RDP
#init:
#- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
install:
- ps: |
# Setup precompiled SDK
$source = "http://trueta.udg.edu/apt/windows/devel/0.15/starviewer-sdk-win$env:BITS-0.15-4.7z"
$destination = "c:\starviewer-sdk-win$env:BITS-0.15-4.7z"
Invoke-WebRequest $source -OutFile $destination
7z x $destination -oc:\ > 7z-output.txt
$env:PATH = "$env:QTDIR\bin;c:\vtk\8.1.1\bin;c:\gdcm\2.8.6\bin;c:\ThreadWeaver\5.46.0\bin;$env:PATH"
# Setup jom
$source = "http://ftp.fau.de/qtproject/official_releases/jom/jom_1_1_2.zip"
$destination = "c:\jom.zip"
Invoke-WebRequest $source -OutFile $destination
7z x $destination -oc:\jom\
$env:PATH = "$env:PATH;c:\jom"
build_script:
- cmd: |
call "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %ARCH%
cd starviewer
qmake
jom -j2
test_script:
- ps: |
cd tests\auto
.\autotests -saveOutputToDir results -xunitxml
cd results
$wc = New-Object 'System.Net.WebClient'
ls | % {
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path $_.Name))
$content = cat $_
if ($content -Match 'result="fail"') {
echo $content "------------"
}
}
if ($LASTEXITCODE -ne 0) {
Add-AppveyorMessage "$LASTEXITCODE test(s) failed" -Category Error
throw "$LASTEXITCODE test(s) failed"
}
else {
Add-AppveyorMessage "All tests OK"
}