forked from iamantony/qtcsv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
83 lines (75 loc) · 2.21 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
72
73
74
75
76
77
78
79
80
81
82
83
version: '{build}'
init:
- git config --global core.autocrlf input
environment:
matrix:
- QT5: C:\Qt\5.3\mingw482_32
MINGW: C:\Qt\Tools\mingw482_32
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
use_cmake: "false"
#- QT5: C:\Qt\5.3\mingw482_32
# MINGW: C:\Qt\Tools\mingw482_32
# use_cmake: "true"
- QT5: C:\Qt\5.4\mingw491_32
MINGW: C:\Qt\Tools\mingw491_32
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
use_cmake: "false"
- QT5: C:\Qt\5.5\mingw492_32
MINGW: C:\Qt\Tools\mingw492_32
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
use_cmake: "false"
- QT5: C:\Qt\5.6.3\mingw49_32
MINGW: C:\Qt\Tools\mingw530_32
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
use_cmake: "false"
- QT5: C:\Qt\5.7\mingw53_32
MINGW: C:\Qt\Tools\mingw530_32
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
use_cmake: "false"
- QT5: C:\Qt\5.8\mingw53_32
MINGW: C:\Qt\Tools\mingw530_32
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
use_cmake: "false"
- QT5: C:\Qt\5.9\mingw53_32
MINGW: C:\Qt\Tools\mingw530_32
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
use_cmake: "false"
- QT5: C:\Qt\5.10\mingw53_32
MINGW: C:\Qt\Tools\mingw530_32
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
use_cmake: "false"
- QT5: C:\Qt\5.11\mingw53_32
MINGW: C:\Qt\Tools\mingw530_32
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
use_cmake: "false"
matrix:
fast_finish: true
before_build:
- set PATH=%MINGW%\bin;%QT5%\bin;%PATH%
build_script:
- mkdir .\build
- cd .\build
# build library and tests
- if [%use_cmake%]==[true] (
cmake --version &&
cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release .. &&
make &&
dir /s &&
cd .\tests)
else (
qmake -v &&
qmake ..\qtcsv.pro CONFIG+=release DESTDIR=%cd% &&
mingw32-make &&
dir /s &&
mkdir .\tests &&
cd .\tests &&
copy ..\*qtcsv.dll .\ &&
qmake ..\..\tests\tests.pro CONFIG+=release DESTDIR=%cd%\tests &&
mingw32-make)
# download test file
- curl -fsS -o worldcitiespop.txt.gz http://www.maxmind.com/download/worldcities/worldcitiespop.txt.gz
- 7z e worldcitiespop.txt.gz
- move worldcitiespop.txt data\
# run tests
- dir /s
- qtcsv_tests.exe