VirtualBox

source: vbox/trunk/src/libs/libxml2-2.13.2/.gitlab-ci.yml@ 105770

Last change on this file since 105770 was 105420, checked in by vboxsync, 4 months ago

libxml2-2.12.6: Applied and adjusted our libxml2 changes to 2.12.6. bugref:10730

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette