VirtualBox

source: vbox/trunk/src/libs/libxml2-2.12.6/.gitlab-ci.yml

Last change on this file was 104106, checked in by vboxsync, 8 weeks ago

libxml2-2.9.14: Applied and adjusted our libxml2 changes to 2.9.14. bugref:10640

File size: 6.0 KB
Line 
1.test:
2 image: registry.gitlab.gnome.org/gnome/libxml2
3 variables:
4 BASE_CONFIG: "--with-ftp --with-legacy --with-xptr-locs"
5 before_script:
6 - rm -rf libxml2-build
7 - mkdir libxml2-build
8 - ln -s /tests/xmlconf libxml2-build
9 script:
10 - sh .gitlab-ci/test.sh
11
12gcc:
13 extends: .test
14 variables:
15 CONFIG: "--without-tls"
16 CFLAGS: "-O2 -std=c89 -D_XOPEN_SOURCE=600"
17
18gcc:minimum:
19 extends: .test
20 variables:
21 BASE_CONFIG: "--with-minimum"
22 CFLAGS: "-O2"
23
24gcc:medium:
25 extends: .test
26 variables:
27 BASE_CONFIG: "--with-minimum"
28 CONFIG: "--with-threads --with-tree --with-xpath --with-output --with-html"
29 CFLAGS: "-O2"
30
31gcc:legacy:
32 extends: .test
33 only:
34 - schedules
35 variables:
36 BASE_CONFIG: "--with-legacy"
37 CFLAGS: "-O2"
38
39gcc:python3:
40 extends: .test
41 variables:
42 CFLAGS: "-O2"
43 PYTHON: "/usr/bin/python3"
44
45gcc:static:
46 extends: .test
47 variables:
48 CONFIG: "--disable-shared --without-python --without-modules"
49 CFLAGS: "-O2"
50
51clang:asan:
52 extends: .test
53 tags:
54 - asan
55 variables:
56 CONFIG: "--without-python"
57 CC: clang
58 CFLAGS: "-O2 -g -fno-omit-frame-pointer -fsanitize=address,undefined,integer -fno-sanitize-recover=all"
59 UBSAN_OPTIONS: "print_stacktrace=1"
60 ASAN_SYMBOLIZER_PATH: "$CI_PROJECT_DIR/.gitlab-ci/llvm-symbolizer"
61
62clang:msan:
63 extends: .test
64# only:
65# - schedules
66 variables:
67 CONFIG: "--without-python --without-zlib --without-lzma"
68 CC: clang
69 CFLAGS: "-O2 -g -fno-omit-frame-pointer -fsanitize=memory"
70 MSAN_SYMBOLIZER_PATH: "$CI_PROJECT_DIR/.gitlab-ci/llvm-symbolizer"
71
72.mingw:
73 tags:
74 - win32-ps
75 variables:
76 BASE_CONFIG: "--with-ftp --with-legacy --with-xptr-locs"
77 # Disabled for now, see #658
78 CONFIG: "--without-python"
79 CHERE_INVOKING: "yes"
80 before_script:
81 - $Env:Path="C:\msys64\usr\bin;$Env:Path"
82 - bash -lc 'sh .gitlab-ci/setup_mingw.sh autotools'
83 script:
84 - bash -lc 'sh .gitlab-ci/test.sh'
85 cache:
86 key: "$MSYSTEM"
87 paths:
88 - libxml2-build/xmlconf/
89
90mingw:w64-x86_64:shared:
91 extends: .mingw
92 variables:
93 CFLAGS: "-O2"
94 MSYSTEM: MINGW64
95
96mingw:w64-i686:shared:
97 extends: .mingw
98 only:
99 - schedules
100 variables:
101 CFLAGS: "-O2"
102 MSYSTEM: MINGW32
103
104# Disabled, GCC missing?
105.mingw:msys:shared:
106 extends: .mingw
107 variables:
108 CFLAGS: "-O2"
109 MSYSTEM: MSYS
110
111.cmake:linux:
112 image: registry.gitlab.gnome.org/gnome/libxml2
113 before_script:
114 - rm -rf libxml2-build
115 - mkdir libxml2-build
116 - ln -s /tests/xmlconf libxml2-build
117 script:
118 - sh .gitlab-ci/test_cmake.sh
119 artifacts:
120 paths:
121 - libxml2-$CI_COMMIT_SHORT_SHA-$SUFFIX.tar.gz
122 expire_in: 1 day
123
124cmake:linux:gcc:shared:
125 extends: .cmake:linux
126 variables:
127 BUILD_SHARED_LIBS: "ON"
128 CC: gcc
129 SUFFIX: linux-gcc-shared
130
131cmake:linux:gcc:static:
132 extends: .cmake:linux
133 only:
134 - schedules
135 variables:
136 BUILD_SHARED_LIBS: "OFF"
137 CC: gcc
138 SUFFIX: linux-gcc-static
139
140cmake:linux:clang:shared:
141 extends: .cmake:linux
142 only:
143 - schedules
144 variables:
145 BUILD_SHARED_LIBS: "ON"
146 CC: clang
147 SUFFIX: linux-clang-shared
148
149cmake:linux:clang:static:
150 extends: .cmake:linux
151 only:
152 - schedules
153 variables:
154 BUILD_SHARED_LIBS: "OFF"
155 CC: clang
156 SUFFIX: linux-clang-static
157
158.cmake:mingw:
159 tags:
160 - win32-ps
161 variables:
162 CHERE_INVOKING: "yes"
163 before_script:
164 - $Env:Path="C:\msys64\usr\bin;$Env:Path"
165 - bash -lc 'sh .gitlab-ci/setup_mingw.sh cmake ninja'
166 script:
167 - bash -lc 'sh .gitlab-ci/test_cmake.sh -G Ninja'
168 cache:
169 key: "$MSYSTEM"
170 paths:
171 - libxml2-build/xmlconf/
172 artifacts:
173 paths:
174 - libxml2-$Env:CI_COMMIT_SHORT_SHA-$Env:SUFFIX.tar.gz
175 expire_in: 1 day
176
177cmake:mingw:w64-i686:shared:
178 extends: .cmake:mingw
179 only:
180 - schedules
181 variables:
182 BUILD_SHARED_LIBS: "ON"
183 MSYSTEM: MINGW32
184 SUFFIX: mingw-w64-i686-shared
185
186cmake:mingw:w64-i686:static:
187 extends: .cmake:mingw
188 only:
189 - schedules
190 variables:
191 BUILD_SHARED_LIBS: "OFF"
192 MSYSTEM: MINGW32
193 SUFFIX: mingw-w64-i686-static
194
195cmake:mingw:w64-x86_64:shared:
196 extends: .cmake:mingw
197 variables:
198 BUILD_SHARED_LIBS: "ON"
199 MSYSTEM: MINGW64
200 SUFFIX: mingw-w64-x86_64-shared
201
202cmake:mingw:w64-x86_64:static:
203 extends: .cmake:mingw
204 only:
205 - schedules
206 variables:
207 BUILD_SHARED_LIBS: "OFF"
208 MSYSTEM: MINGW64
209 SUFFIX: mingw-w64-x86_64-static
210
211.cmake:msvc:
212 tags:
213 - win32-ps
214 variables:
215 # MSVC warns when casting `const char **` to `void *` which is wrong.
216 # Disable warning C4090.
217 CFLAGS: /WX /wd4090
218 CMAKE_VERSION: 3.19.4
219 script:
220 - .gitlab-ci/Test-Msvc
221 cache:
222 key: "msvc"
223 paths:
224 - cmake-$Env:CMAKE_VERSION-win64-x64/
225 - libxml2-build/xmlconf/
226 - 7za.exe
227 artifacts:
228 paths:
229 - libxml2-$Env:CI_COMMIT_SHORT_SHA-$Env:CMAKE_GENERATOR_TOOLSET-$Env:CMAKE_GENERATOR_PLATFORM-$Env:SUFFIX.7z
230 expire_in: 1 day
231
232.cmake:msvc:v141:
233 extends: .cmake:msvc
234 variables:
235 CMAKE_GENERATOR: Visual Studio 15 2017
236 CMAKE_GENERATOR_TOOLSET: v141
237
238.cmake:msvc:v141:x64:
239 extends: .cmake:msvc:v141
240 variables:
241 CMAKE_GENERATOR_PLATFORM: x64
242
243cmake:msvc:v141:x64:shared:
244 extends: .cmake:msvc:v141:x64
245 variables:
246 BUILD_SHARED_LIBS: "ON"
247 SUFFIX: shared
248
249cmake:msvc:v141:x64:static:
250 extends: .cmake:msvc:v141:x64
251 only:
252 - schedules
253 variables:
254 BUILD_SHARED_LIBS: "OFF"
255 SUFFIX: static
256
257.cmake:msvc:v141:x86:
258 extends: .cmake:msvc:v141
259 only:
260 - schedules
261 variables:
262 CMAKE_GENERATOR_PLATFORM: Win32
263
264cmake:msvc:v141:x86:shared:
265 extends: .cmake:msvc:v141:x86
266 only:
267 - schedules
268 variables:
269 BUILD_SHARED_LIBS: "ON"
270 SUFFIX: shared
271
272cmake:msvc:v141:x86:static:
273 extends: .cmake:msvc:v141:x86
274 variables:
275 BUILD_SHARED_LIBS: "OFF"
276 SUFFIX: static
277
278pages:
279 script:
280 - mkdir -p public
281 - cp -r doc/devhelp doc/tutorial doc/xmllint.html doc/xmlcatalog.html public
282 - mkdir -p public/examples
283 - cp doc/examples/*.html doc/examples/*.c public/examples
284 artifacts:
285 paths:
286 - public
287 exclude:
288 - public/devhelp/Makefile*
289 - public/devhelp/*.xsl
290 only:
291 - master@GNOME/libxml2
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use