forked from CppMicroServices/CppMicroServices
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
163 lines (152 loc) · 3.96 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
162
version: 2.99.{build}
os: Visual Studio 2015
pull_requests:
do_not_increment_build_number: true
branches:
except:
- coverity_scan
- gh_pages
skip_tags: true
matrix:
fast_finish: true
environment:
matrix:
# ---------- Visual Studio 2013 ------------
#---- Win32
#- image: Visual Studio 2013
# platform: Win32
# configuration: Debug
# gen: "Visual Studio 12 2013"
# US_SHARED: 0
# US_THREADED: 1
#- image: Visual Studio 2013
# platform: Win32
# configuration: Debug
# gen: "Visual Studio 12 2013"
# US_SHARED: 1
# US_THREADED: 1
- image: Visual Studio 2013
platform: Win32
configuration: Release
gen: "Visual Studio 12 2013"
US_SHARED: 0
US_THREADED: 1
- image: Visual Studio 2013
platform: Win32
configuration: Release
gen: "Visual Studio 12 2013"
US_SHARED: 1
US_THREADED: 1
#---- Win64
#- image: Visual Studio 2013
# platform: Win64
# configuration: Debug
# gen: "Visual Studio 12 2013 Win64"
# US_SHARED: 0
# US_THREADED: 1
#- image: Visual Studio 2013
# platform: x64
# configuration: Debug
# gen: "Visual Studio 12 2013 Win64"
# US_SHARED: 1
# US_THREADED: 1
- image: Visual Studio 2013
platform: x64
configuration: Release
gen: "Visual Studio 12 2013 Win64"
US_SHARED: 0
US_THREADED: 1
- image: Visual Studio 2013
platform: x64
configuration: Release
gen: "Visual Studio 12 2013 Win64"
US_SHARED: 1
US_THREADED: 1
# ---------- Visual Studio 2015 ------------
#---- Win32
#- image: Visual Studio 2015
# platform: Win32
# configuration: Debug
# gen: "Visual Studio 14 2015"
# US_SHARED: 0
# US_THREADED: 1
#- image: Visual Studio 2015
# platform: x86
# configuration: Debug
# gen: "Visual Studio 14 2015"
# US_SHARED: 1
# US_THREADED: 1
- image: Visual Studio 2015
platform: x86
configuration: Release
gen: "Visual Studio 14 2015"
US_SHARED: 0
US_THREADED: 1
- image: Visual Studio 2015
platform: x86
configuration: Release
gen: "Visual Studio 14 2015"
US_SHARED: 1
US_THREADED: 1
#---- Win64
#- image: Visual Studio 2015
# platform: x64
# configuration: Debug
# gen: "Visual Studio 14 2015 Win64"
# US_SHARED: 0
# US_THREADED: 1
#- image: Visual Studio 2015
# platform: x64
# configuration: Debug
# gen: "Visual Studio 14 2015 Win64"
# US_SHARED: 1
# US_THREADED: 1
- image: Visual Studio 2015
platform: x64
configuration: Release
gen: "Visual Studio 14 2015 Win64"
US_SHARED: 0
US_THREADED: 1
- image: Visual Studio 2015
platform: x64
configuration: Release
gen: "Visual Studio 14 2015 Win64"
US_SHARED: 1
US_THREADED: 1
# ---------- MinGW-w64 (via MSYS2) ------------
#- platform: mingw-w64
# configuration: Debug
# gen: "MinGW Makefiles"
# US_SHARED: 0
# US_THREADED: 1
#- platform: mingw-w64
# configuration: Debug
# gen: "MinGW Makefiles"
# US_SHARED: 1
# US_THREADED: 1
- platform: mingw-w64
configuration: Release
gen: "MinGW Makefiles"
US_SHARED: 0
US_THREADED: 1
- platform: mingw-w64
configuration: Release
gen: "MinGW Makefiles"
US_SHARED: 1
US_THREADED: 1
init:
- cmake -version
- git config --global core.autocrlf true
before_build:
- mkdir build & cd build
- echo %PATH%
- if "%platform%"=="mingw-w64" set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
- if "%platform%"=="mingw-w64" set PATH=C:\msys64\mingw64\bin;%PATH%
- echo %PATH%
- cmake .. -G"%gen%" -DCMAKE_BUILD_TYPE=%configuration% -DUS_BUILD_SHARED_LIBS:BOOL=%US_SHARED% -DUS_ENABLE_THREADING_SUPPORT:BOOL=%US_THREADED% -DUS_BUILD_TESTING:BOOL=1 2>&1
build_script:
- if NOT "%platform%"=="mingw-w64" cmake --build %APPVEYOR_BUILD_FOLDER%/build --config %configuration% -- /maxcpucount
- if "%platform%"=="mingw-w64" cmake --build %APPVEYOR_BUILD_FOLDER%/build -- -j2
test_script:
- cd %APPVEYOR_BUILD_FOLDER%/build
- ctest -j2 -C %CONFIGURATION% --output-on-failure