]> granicus.if.org Git - libexpat/blob - appveyor.yml
CMake: Introduce option EXPAT_CHAR_TYPE=(char|ushort|wchar_t)
[libexpat] / appveyor.yml
1 # AppVeyor configuration
2 #                          __  __            _
3 #                       ___\ \/ /_ __   __ _| |_
4 #                      / _ \\  /| '_ \ / _` | __|
5 #                     |  __//  \| |_) | (_| | |_
6 #                      \___/_/\_\ .__/ \__,_|\__|
7 #                               |_| XML parser
8 #
9 # Copyright (C) 2017 José Gutiérrez de la Concha <jose@zeroc.com>
10 # Copyright (C) 2017 Expat development team
11 # Licensed under the MIT license:
12 #
13 # Permission is  hereby granted,  free of charge,  to any  person obtaining
14 # a  copy  of  this  software   and  associated  documentation  files  (the
15 # "Software"),  to  deal in  the  Software  without restriction,  including
16 # without  limitation the  rights  to use,  copy,  modify, merge,  publish,
17 # distribute, sublicense, and/or sell copies of the Software, and to permit
18 # persons  to whom  the Software  is  furnished to  do so,  subject to  the
19 # following conditions:
20 #
21 # The above copyright  notice and this permission notice  shall be included
22 # in all copies or substantial portions of the Software.
23 #
24 # THE  SOFTWARE  IS  PROVIDED  "AS  IS",  WITHOUT  WARRANTY  OF  ANY  KIND,
25 # EXPRESS  OR IMPLIED,  INCLUDING  BUT  NOT LIMITED  TO  THE WARRANTIES  OF
26 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
27 # NO EVENT SHALL THE AUTHORS OR  COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
28 # DAMAGES OR  OTHER LIABILITY, WHETHER  IN AN  ACTION OF CONTRACT,  TORT OR
29 # OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
30 # USE OR OTHER DEALINGS IN THE SOFTWARE.
31
32 # scripts that are called at very beginning, before repo cloning
33 init:
34 - git config --global core.autocrlf input
35
36 # version format
37 version: libexpat-{build}
38
39 # set clone depth, clone entire repository history if not defined
40 clone_depth: 50
41
42 # clone directory
43 clone_folder: c:\projects\libexpat
44
45 configuration: Debug
46
47 # AppVeyor pre-installed software:
48 # https://www.appveyor.com/docs/build-environment/#pre-installed-software
49 #
50 # CMake Visual Studio generators:
51 # https://cmake.org/cmake/help/latest/manual/cmake-generators.7.html#visual-studio-generators
52 environment:
53   matrix:
54     # Visual Studio 2010 Win32
55     - GENERATOR: Visual Studio 10 2010
56       PLATFORM: Win32
57       EXPAT_DLL: expatd.dll
58       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
59
60     # Visual Studio 2010 Win32 XML_UNICODE_WCHAR_T
61     - GENERATOR: Visual Studio 10 2010
62       PLATFORM: Win32
63       CMAKE_ARGS: -DEXPAT_CHAR_TYPE=wchar_t
64       EXPAT_DLL: expatwd.dll
65       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
66
67     # Visual Studio 2010 x64
68     - GENERATOR: Visual Studio 10 2010 Win64
69       PLATFORM: x64
70       EXPAT_DLL: expatd.dll
71       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
72
73     # Visual Studio 2010 x64 XML_UNICODE_WCHAR_T
74     - GENERATOR: Visual Studio 10 2010 Win64
75       PLATFORM: x64
76       CMAKE_ARGS: -DEXPAT_CHAR_TYPE=wchar_t
77       EXPAT_DLL: expatwd.dll
78       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
79
80     # Visual Studio 2012 Win32
81     - GENERATOR: Visual Studio 11 2012
82       PLATFORM: Win32
83       EXPAT_DLL: expatd.dll
84       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
85
86     # Visual Studio 2012 Win32 XML_UNICODE_WCHAR_T
87     - GENERATOR: Visual Studio 11 2012
88       PLATFORM: Win32
89       CMAKE_ARGS: -DEXPAT_CHAR_TYPE=wchar_t
90       EXPAT_DLL: expatwd.dll
91       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
92
93     # Visual Studio 2012 x64
94     - GENERATOR: Visual Studio 11 2012 Win64
95       PLATFORM: x64
96       EXPAT_DLL: expatd.dll
97       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
98
99     # Visual Studio 2012 x64 XML_UNICODE_WCHAR_T
100     - GENERATOR: Visual Studio 11 2012 Win64
101       PLATFORM: x64
102       CMAKE_ARGS: -DEXPAT_CHAR_TYPE=wchar_t
103       EXPAT_DLL: expatwd.dll
104       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
105
106     # Visual Studio 2013 Win32
107     - GENERATOR: Visual Studio 12 2013
108       PLATFORM: Win32
109       EXPAT_DLL: expatd.dll
110       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
111
112     # Visual Studio 2013 Win32 XML_UNICODE_WCHAR_T
113     - GENERATOR: Visual Studio 12 2013
114       PLATFORM: Win32
115       CMAKE_ARGS: -DEXPAT_CHAR_TYPE=wchar_t
116       EXPAT_DLL: expatwd.dll
117       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
118
119     # Visual Studio 2013 x64
120     - GENERATOR: Visual Studio 12 2013 Win64
121       PLATFORM: x64
122       EXPAT_DLL: expatd.dll
123       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
124
125     # Visual Studio 2013 x64 XML_UNICODE_WCHAR_T
126     - GENERATOR: Visual Studio 12 2013 Win64
127       PLATFORM: x64
128       CMAKE_ARGS: -DEXPAT_CHAR_TYPE=wchar_t
129       EXPAT_DLL: expatwd.dll
130       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
131
132     # Visual Studio 2015 Win32
133     - GENERATOR: Visual Studio 14 2015
134       PLATFORM: Win32
135       EXPAT_DLL: expatd.dll
136       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
137
138     # Visual Studio 2015 Win32 XML_UNICODE_WCHAR_T
139     - GENERATOR: Visual Studio 14 2015
140       PLATFORM: Win32
141       CMAKE_ARGS: -DEXPAT_CHAR_TYPE=wchar_t
142       EXPAT_DLL: expatwd.dll
143       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
144
145     # Visual Studio 2015 x64
146     - GENERATOR: Visual Studio 14 2015 Win64
147       PLATFORM: x64
148       EXPAT_DLL: expatd.dll
149       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
150
151     # Visual Studio 2015 x64 XML_UNICODE_WCHAR_T
152     - GENERATOR: Visual Studio 14 2015 Win64
153       PLATFORM: x64
154       CMAKE_ARGS: -DEXPAT_CHAR_TYPE=wchar_t
155       EXPAT_DLL: expatwd.dll
156       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
157
158     # Visual Studio 2017 Win32
159     - GENERATOR: Visual Studio 15 2017
160       PLATFORM: Win32
161       EXPAT_DLL: expatd.dll
162       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
163
164     # Visual Studio 2017 Win32 XML_UNICODE_WCHAR_T
165     - GENERATOR: Visual Studio 15 2017
166       PLATFORM: Win32
167       CMAKE_ARGS: -DEXPAT_CHAR_TYPE=wchar_t
168       EXPAT_DLL: expatwd.dll
169       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
170
171     # Visual Studio 2017 x64
172     - GENERATOR: Visual Studio 15 2017 Win64
173       PLATFORM: x64
174       EXPAT_DLL: expatd.dll
175       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
176
177     # Visual Studio 2017 x64 XML_UNICODE_WCHAR_T
178     - GENERATOR: Visual Studio 15 2017 Win64
179       PLATFORM: x64
180       CMAKE_ARGS: -DEXPAT_CHAR_TYPE=wchar_t
181       EXPAT_DLL: expatwd.dll
182       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
183
184 before_build:
185   - echo Running cmake...
186   - cd c:\projects\libexpat
187   - cmake -G"%GENERATOR%" -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DEXPAT_WARNINGS_AS_ERRORS=ON %CMAKE_ARGS% expat
188
189 build:
190   parallel: true                  # enable MSBuild parallel builds
191   project: expat.sln              # path to Visual Studio solution or project
192
193 test_script:
194   - cp %CONFIGURATION%\\%EXPAT_DLL% tests\\%CONFIGURATION%\\
195   - ctest --build-config %CONFIGURATION% --output-on-failure --parallel 2