• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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-2023 Sebastian Pipping <sebastian@pipping.org>
11# Copyright (c) 2017      Franek Korta <fkorta@gmail.com>
12# Licensed under the MIT license:
13#
14# Permission is  hereby granted,  free of charge,  to any  person obtaining
15# a  copy  of  this  software   and  associated  documentation  files  (the
16# "Software"),  to  deal in  the  Software  without restriction,  including
17# without  limitation the  rights  to use,  copy,  modify, merge,  publish,
18# distribute, sublicense, and/or sell copies of the Software, and to permit
19# persons  to whom  the Software  is  furnished to  do so,  subject to  the
20# following conditions:
21#
22# The above copyright  notice and this permission notice  shall be included
23# in all copies or substantial portions of the Software.
24#
25# THE  SOFTWARE  IS  PROVIDED  "AS  IS",  WITHOUT  WARRANTY  OF  ANY  KIND,
26# EXPRESS  OR IMPLIED,  INCLUDING  BUT  NOT LIMITED  TO  THE WARRANTIES  OF
27# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
28# NO EVENT SHALL THE AUTHORS OR  COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
29# DAMAGES OR  OTHER LIABILITY, WHETHER  IN AN  ACTION OF CONTRACT,  TORT OR
30# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
31# USE OR OTHER DEALINGS IN THE SOFTWARE.
32
33# scripts that are called at very beginning, before repo cloning
34init:
35- git config --global core.autocrlf input
36
37# version format
38version: libexpat-{build}
39
40# set clone depth, clone entire repository history if not defined
41clone_depth: 50
42
43# clone directory
44clone_folder: c:\projects\libexpat
45
46configuration: Debug
47
48# AppVeyor pre-installed software:
49# https://www.appveyor.com/docs/build-environment/#pre-installed-software
50#
51# CMake Visual Studio generators:
52# https://cmake.org/cmake/help/latest/manual/cmake-generators.7.html#visual-studio-generators
53environment:
54  matrix:
55    # Visual Studio 2019 Win32
56    - GENERATOR: Visual Studio 16 2019
57      PLATFORM: Win32
58      CMAKE_ARGS: -A Win32
59      EXPAT_DLL: libexpatd.dll
60      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
61
62    # Visual Studio 2019 Win32 XML_UNICODE_WCHAR_T
63    - GENERATOR: Visual Studio 16 2019
64      PLATFORM: Win32
65      CMAKE_ARGS: -A Win32 -DEXPAT_CHAR_TYPE=wchar_t
66      EXPAT_DLL: libexpatwd.dll
67      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
68
69    # Visual Studio 2019 x64
70    - GENERATOR: Visual Studio 16 2019
71      PLATFORM: x64
72      EXPAT_DLL: libexpatd.dll
73      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
74
75    # Visual Studio 2019 x64 XML_UNICODE_WCHAR_T
76    - GENERATOR: Visual Studio 16 2019
77      PLATFORM: x64
78      CMAKE_ARGS: -DEXPAT_CHAR_TYPE=wchar_t
79      EXPAT_DLL: libexpatwd.dll
80      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
81
82    # Visual Studio 2022 Win32
83    - GENERATOR: Visual Studio 17 2022
84      PLATFORM: Win32
85      CMAKE_ARGS: -A Win32
86      EXPAT_DLL: libexpatd.dll
87      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
88
89    # Visual Studio 2022 Win32 XML_UNICODE_WCHAR_T
90    - GENERATOR: Visual Studio 17 2022
91      PLATFORM: Win32
92      CMAKE_ARGS: -A Win32 -DEXPAT_CHAR_TYPE=wchar_t
93      EXPAT_DLL: libexpatwd.dll
94      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
95
96    # Visual Studio 2022 x64
97    - GENERATOR: Visual Studio 17 2022
98      PLATFORM: x64
99      EXPAT_DLL: libexpatd.dll
100      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
101
102    # Visual Studio 2022 x64 XML_UNICODE_WCHAR_T
103    - GENERATOR: Visual Studio 17 2022
104      PLATFORM: x64
105      CMAKE_ARGS: -DEXPAT_CHAR_TYPE=wchar_t
106      EXPAT_DLL: libexpatwd.dll
107      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
108
109before_build:
110  - echo Running cmake...
111  - cd c:\projects\libexpat
112  - cmake -G"%GENERATOR%" -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DEXPAT_WARNINGS_AS_ERRORS=ON %CMAKE_ARGS% expat
113
114build:
115  parallel: true                  # enable MSBuild parallel builds
116  project: expat.sln              # path to Visual Studio solution or project
117
118test_script:
119  - cp %CONFIGURATION%\\%EXPAT_DLL% tests\\%CONFIGURATION%\\
120  - ctest --build-config %CONFIGURATION% --output-on-failure --parallel 2
121