forked from cutelyst/cutelyst
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
162 lines (149 loc) · 5.36 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
version: '{build}'
branches:
only:
- master
shallow_clone: true
clone_depth: 1
init:
- git config --global core.autocrlf input
clone_folder: c:\dev\cutelyst
environment:
matrix:
- CMAKE_GENERATOR: "Ninja"
QT5: C:\Qt\5.9\msvc2015
PLATFORM: X86
VSVER: 14
ENABLE_MAINTAINER_CFLAGS: off
- CMAKE_GENERATOR: "Ninja"
QT5: C:\Qt\5.9\msvc2015_64
PLATFORM: X64
VSVER: 14
ENABLE_MAINTAINER_CFLAGS: off
- CMAKE_GENERATOR: "Visual Studio 14"
QT5: C:\Qt\5.9\msvc2015
PLATFORM: X86
VSVER: 14
ENABLE_MAINTAINER_CFLAGS: off
- CMAKE_GENERATOR: "Visual Studio 14 Win64"
QT5: C:\Qt\5.9\msvc2015_64
PLATFORM: X64
VSVER: 14
ENABLE_MAINTAINER_CFLAGS: off
- CMAKE_GENERATOR: "Visual Studio 15 2017 Win64"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
QT5: C:\Qt\5.9\msvc2017_64
PLATFORM: X64
VSVER: 17
ENABLE_MAINTAINER_CFLAGS: off
- CMAKE_GENERATOR: "MinGW Makefiles"
QT5: C:\Qt\5.9\mingw53_32
MINGW_PATH: C:\Qt\Tools\mingw530_32
ENABLE_MAINTAINER_CFLAGS: on
- CMAKE_GENERATOR: "Ninja"
QT5: C:\Qt\5.10\msvc2015
PLATFORM: X86
VSVER: 14
ENABLE_MAINTAINER_CFLAGS: off
- CMAKE_GENERATOR: "Ninja"
QT5: C:\Qt\5.10\msvc2015_64
PLATFORM: X64
VSVER: 14
ENABLE_MAINTAINER_CFLAGS: off
- CMAKE_GENERATOR: "Visual Studio 14"
QT5: C:\Qt\5.10\msvc2015
PLATFORM: X86
VSVER: 14
ENABLE_MAINTAINER_CFLAGS: off
- CMAKE_GENERATOR: "Visual Studio 14 Win64"
QT5: C:\Qt\5.10\msvc2015_64
PLATFORM: X64
VSVER: 14
ENABLE_MAINTAINER_CFLAGS: off
- CMAKE_GENERATOR: "MinGW Makefiles"
QT5: C:\Qt\5.10\mingw53_32
MINGW_PATH: C:\Qt\Tools\mingw530_32
ENABLE_MAINTAINER_CFLAGS: on
#- CMAKE_GENERATOR: "Ninja"
#QT5: C:\Qt\5.11.1\msvc2017_64
#PLATFORM: X64
#VSVER: 17
#ENABLE_MAINTAINER_CFLAGS: off
- CMAKE_GENERATOR: "Visual Studio 15 2017 Win64"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
QT5: C:\Qt\5.10\msvc2017_64
PLATFORM: X64
VSVER: 17
ENABLE_MAINTAINER_CFLAGS: off
- CMAKE_GENERATOR: "Ninja"
QT5: C:\Qt\5.6\msvc2015
PLATFORM: X86
VSVER: 14
ENABLE_MAINTAINER_CFLAGS: off
- CMAKE_GENERATOR: "Ninja"
QT5: C:\Qt\5.6\msvc2015_64
PLATFORM: X64
VSVER: 14
ENABLE_MAINTAINER_CFLAGS: off
- CMAKE_GENERATOR: "Visual Studio 14"
QT5: C:\Qt\5.6\msvc2015
PLATFORM: X86
VSVER: 14
ENABLE_MAINTAINER_CFLAGS: off
- CMAKE_GENERATOR: "Visual Studio 14 Win64"
QT5: C:\Qt\5.6\msvc2015_64
PLATFORM: X64
VSVER: 14
ENABLE_MAINTAINER_CFLAGS: off
# - CMAKE_GENERATOR: "NMake Makefiles JOM"
# QT5: C:\Qt\5.6\msvc2015
# PLATFORM: X86
# VSVER: 14
# ENABLE_MAINTAINER_CFLAGS: off
# - CMAKE_GENERATOR: "NMake Makefiles JOM"
# QT5: C:\Qt\5.6\msvc2015_64
# PLATFORM: X64
# VSVER: 14
# ENABLE_MAINTAINER_CFLAGS: off
- CMAKE_GENERATOR: "MinGW Makefiles"
QT5: C:\Qt\5.6\mingw49_32
MINGW_PATH: C:\Qt\Tools\mingw492_32
ENABLE_MAINTAINER_CFLAGS: on
before_build:
- set PATH=C:\cygwin\bin;%QT5%\bin;c:\dev\cutelyst\build\Cutelyst;%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%
- if "%CMAKE_GENERATOR%" == "Ninja" cinst ninja
- if "%CMAKE_GENERATOR%" == "Ninja" set PATH=C:\tools\ninja;%PATH%
#- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
build:
build_script:
- ps: $env:VSCOMNTOOLS=(Get-Content ("env:VS" + "$env:VSVER" + "0COMNTOOLS"))
- if NOT "%CMAKE_GENERATOR%" == "MinGW Makefiles" echo "Using Visual Studio %VSVER%.0 at %VSCOMNTOOLS%"
- if "%CMAKE_GENERATOR%" == "MinGW Makefiles" echo "Using MinGW"
- if "%CMAKE_GENERATOR%" == "NMake Makefiles JOM" if "%PLATFORM%" == "X86" call "%VSCOMNTOOLS%\..\..\VC\vcvarsall.bat"
- if "%CMAKE_GENERATOR%" == "NMake Makefiles JOM" if "%PLATFORM%" == "X64" "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64
- if "%CMAKE_GENERATOR%" == "NMake Makefiles JOM" if "%PLATFORM%" == "X64" call "%VSCOMNTOOLS%\..\..\VC\vcvarsall.bat" x86_amd64
- if "%CMAKE_GENERATOR%" == "Ninja" if "%PLATFORM%" == "X86" call "%VSCOMNTOOLS%\..\..\VC\vcvarsall.bat"
- if "%CMAKE_GENERATOR%" == "Ninja" if "%PLATFORM%" == "X64" "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64
- if "%CMAKE_GENERATOR%" == "Ninja" if "%PLATFORM%" == "X64" call "%VSCOMNTOOLS%\..\..\VC\vcvarsall.bat" x86_amd64
- cd c:\dev\cutelyst
- md build
- cd build
- cmake .. -G "%CMAKE_GENERATOR%" "-DCMAKE_PREFIX_PATH=%QT5%" "-DENABLE_MAINTAINER_CFLAGS=%ENABLE_MAINTAINER_CFLAGS%" -DBUILD_ALL=on
-DPLUGIN_VIEW_EMAIL=off
-DPLUGIN_VIEW_CUTELEE=off
-DPLUGIN_VIEW_GRANTLEE=off
-DPLUGIN_VIEW_CLEARSILVER=off
-DPLUGIN_MEMCACHED=off
-DPLUGIN_MEMCACHEDSESSIONSTORE=off
-DPLUGIN_UWSGI=off
-DPLUGIN_VALIDATOR_PWQUALITY=off
-DUSE_JEMALLOC=off
-DBUILD_DOCS=off
- cmake --build . --config Debug
- cmake --build . --config Release
test_script:
- cmd: ctest --output-on-failure -C "Debug"
- cmd: ctest --output-on-failure -C "Release"