-
Notifications
You must be signed in to change notification settings - Fork 48
/
appveyor.yml
105 lines (96 loc) · 3.77 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
version: '{build}'
branches:
only:
- master
- next
shallow_clone: true
clone_depth: 1
clone_folder: c:\dev\grantlee
environment:
matrix:
- CMAKE_GENERATOR: "NMake Makefiles JOM"
QT5: C:\Qt\5.6\msvc2015
PLATFORM: X86
VCVARSALL: "%VS140COMNTOOLS%/../../VC/vcvarsall.bat"
- CMAKE_GENERATOR: "Ninja"
QT5: C:\Qt\5.6\msvc2015
PLATFORM: X86
VCVARSALL: "%VS140COMNTOOLS%/../../VC/vcvarsall.bat"
- CMAKE_GENERATOR: "Ninja"
QT5: C:\Qt\5.6\msvc2015_64
PLATFORM: X64
VCVARSALL: "%VS140COMNTOOLS%/../../VC/vcvarsall.bat"
- CMAKE_GENERATOR: "Visual Studio 14"
QT5: C:\Qt\5.6\msvc2015
PLATFORM: X86
VCVARSALL: "%VS140COMNTOOLS%/../../VC/vcvarsall.bat"
- CMAKE_GENERATOR: "Visual Studio 14 Win64"
QT5: C:\Qt\5.6\msvc2015_64
PLATFORM: X64
VCVARSALL: "%VS140COMNTOOLS%/../../VC/vcvarsall.bat"
- CMAKE_GENERATOR: "NMake Makefiles JOM"
QT5: C:\Qt\5.6\msvc2015_64
PLATFORM: X64
VCVARSALL: "%VS140COMNTOOLS%/../../VC/vcvarsall.bat"
- CMAKE_GENERATOR: "MinGW Makefiles"
QT5: C:\Qt\5.6\mingw49_32
MINGW_PATH: C:\Qt\Tools\mingw492_32
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
CMAKE_GENERATOR: "Ninja"
QT5: C:\Qt\5.12\msvc2017
PLATFORM: X86
VCVARSALL: "C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Auxiliary/Build/vcvarsall.bat"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
CMAKE_GENERATOR: "Ninja"
QT5: C:\Qt\5.12\msvc2017_64
PLATFORM: X64
VCVARSALL: "C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Auxiliary/Build/vcvarsall.bat"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
CMAKE_GENERATOR: "Visual Studio 15"
QT5: C:\Qt\5.12\msvc2017
PLATFORM: X86
VCVARSALL: "C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Auxiliary/Build/vcvarsall.bat"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
CMAKE_GENERATOR: "Visual Studio 15 Win64"
QT5: C:\Qt\5.12\msvc2017_64
PLATFORM: X64
VCVARSALL: "C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Auxiliary/Build/vcvarsall.bat"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
CMAKE_GENERATOR: "NMake Makefiles JOM"
QT5: C:\Qt\5.12\msvc2017
PLATFORM: X86
VCVARSALL: "C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Auxiliary/Build/vcvarsall.bat"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
CMAKE_GENERATOR: "NMake Makefiles JOM"
QT5: C:\Qt\5.12\msvc2017_64
PLATFORM: X64
VCVARSALL: "C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Auxiliary/Build/vcvarsall.bat"
- CMAKE_GENERATOR: "MinGW Makefiles"
QT5: C:\Qt\5.12\mingw73_32
MINGW_PATH: C:\Qt\Tools\mingw730_32
- CMAKE_GENERATOR: "MinGW Makefiles"
QT5: C:\Qt\5.12\mingw73_64
MINGW_PATH: C:\Qt\Tools\mingw730_64
install:
- ps: |
choco install ninja
init:
- if NOT "%VCVARSALL%" == "" call "%VCVARSALL%" %PLATFORM%
- git config --global core.autocrlf input
before_build:
- set PATH=C:\cygwin\bin;%QT5%\bin;c:\dev\grantlee\build\templates\lib;c:\dev\grantlee\build\textdocument\lib;%PATH%
- sed -i "s|std::equal(b, e, lb)|std::equal(b, e,\n#if defined(Q_CC_MSVC)\nstdext::make_unchecked_array_iterator(lb)\n#else\nlb\n#endif\n)|" %QT5%\include\QtCore\qlist.h
- set PATH=%PATH:C:\cygwin\bin;=%
- if "%CMAKE_GENERATOR%" == "MinGW Makefiles" set PATH=%MINGW_PATH%\bin;%PATH:C:\Program Files\Git\usr\bin;=%
- if "%CMAKE_GENERATOR%" == "NMake Makefiles JOM" set PATH=C:\Qt\Tools\QtCreator\bin;%PATH%
build:
build_script:
- cd c:\dev\grantlee
- md build
- cd build
- cmake .. -G "%CMAKE_GENERATOR%" "-DCMAKE_PREFIX_PATH=%QT5%"
- cmake --build . --config Debug
- cmake --build . --config Release
test_script:
- cmd: ctest --output-on-failure -C "Debug"
- cmd: ctest --output-on-failure -C "Release"