Skip to content

Commit 07b84d3

Browse files
committed
Added Appveyor project
1 parent 5ede82c commit 07b84d3

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.appveyor.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
version: '0.3.0.{build}'
2+
branches:
3+
only:
4+
- master
5+
6+
image: Visual Studio 2015
7+
clone_depth: 1
8+
environment:
9+
global:
10+
# Appveyor doesn't have Qt 12 yet
11+
LatestLTSQtVersion: 5.9
12+
matrix:
13+
- QT5: C:\Qt\%LatestLTSQtVersion%\mingw53_32
14+
COMPILER: C:\Qt\Tools\mingw530_32
15+
targetPlatform: x86
16+
use_mingw: "true"
17+
use_cmake: "false"
18+
- QT5: C:\Qt\%LatestLTSQtVersion%\msvc2015_64
19+
COMPILER: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC
20+
targetPlatform: amd64
21+
use_mingw: "false"
22+
use_cmake: "false"
23+
24+
matrix:
25+
fast_finish: true
26+
27+
before_build:
28+
- set PATH=%COMPILER%\bin;%QT5%\bin;%PATH%
29+
- set originalWD=%CD%
30+
- call "%QT5%\bin\qtenv2.bat"
31+
- cd %originalWD%
32+
- if %use_mingw%==false call "%COMPILER%\vcvarsall.bat" %targetPlatform%
33+
- if %use_mingw%==true (set MAKEENGINE=mingw32-make) else (set MAKEENGINE=nmake)
34+
- if %use_mingw%==true set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
35+
36+
build_script:
37+
- qmake "DEFINES += XLSX_TEST"
38+
- %MAKEENGINE%
39+
- %MAKEENGINE% install
40+
- cd tests
41+
- qmake
42+
- %MAKEENGINE%
43+
- %MAKEENGINE% check TESTARGS="-o testResults.xml,xml"
44+
45+
after_build:
46+
- if %use_mingw%==true set PATH=C:\Program Files\Git\usr\bin;%PATH%
47+
48+
on_finish:
49+
- 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));}

0 commit comments

Comments
 (0)