forked from dbzhang800/QtXlsxWriter
-
Notifications
You must be signed in to change notification settings - Fork 73
/
Copy path.appveyor.yml
46 lines (40 loc) · 1.34 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
version: '0.3.0.{build}'
image: Visual Studio 2015
clone_depth: 1
environment:
global:
# Appveyor doesn't have Qt 12 yet
LatestLTSQtVersion: 5.9
matrix:
- QT5: C:\Qt\%LatestLTSQtVersion%\mingw53_32
COMPILER: C:\Qt\Tools\mingw530_32
targetPlatform: x86
use_mingw: "true"
use_cmake: "false"
- QT5: C:\Qt\%LatestLTSQtVersion%\msvc2015_64
COMPILER: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC
targetPlatform: amd64
use_mingw: "false"
use_cmake: "false"
matrix:
fast_finish: true
before_build:
- set PATH=%COMPILER%\bin;%QT5%\bin;%PATH%
- set originalWD=%CD%
- call "%QT5%\bin\qtenv2.bat"
- cd %originalWD%
- if %use_mingw%==false call "%COMPILER%\vcvarsall.bat" %targetPlatform%
- if %use_mingw%==true (set MAKEENGINE=mingw32-make) else (set MAKEENGINE=nmake)
- if %use_mingw%==true set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
build_script:
- qmake "DEFINES += XLSX_TEST"
- '%MAKEENGINE%'
- '%MAKEENGINE% install'
- cd tests
- qmake
- '%MAKEENGINE%'
- '%MAKEENGINE% check TESTARGS="-o testResults.xml,xml"'
after_build:
- if %use_mingw%==true set PATH=C:\Program Files\Git\usr\bin;%PATH%
on_finish:
- ps: if (Test-Path ".\tests\testResults.xml") {(new-object net.webclient).UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\tests\testResults.xml));}