]>
Commit | Line | Data |
---|---|---|
c5008c76 AB |
1 | # Currently we have two build stages after our containers are built: |
2 | # - build (for traditional build and test or first stage build) | |
3 | # - test (for test stages, using build artefacts from a build stage) | |
d0caa0a8 DB |
4 | stages: |
5 | - containers | |
fa821f23 | 6 | - containers-layer2 |
d0caa0a8 | 7 | - build |
c5008c76 | 8 | - test |
d0caa0a8 | 9 | |
71920809 | 10 | include: |
922febe2 TH |
11 | - local: '/.gitlab-ci.d/edk2.yml' |
12 | - local: '/.gitlab-ci.d/opensbi.yml' | |
fa821f23 | 13 | - local: '/.gitlab-ci.d/containers.yml' |
6bcb5fc0 | 14 | - local: '/.gitlab-ci.d/crossbuilds.yml' |
71920809 | 15 | |
c962864f DB |
16 | .native_build_job_template: &native_build_job_definition |
17 | stage: build | |
18 | image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:latest | |
19 | before_script: | |
20 | - JOBS=$(expr $(nproc) + 1) | |
8d77ce1d | 21 | - sed -i s,git.qemu.org/git,gitlab.com/qemu-project, .gitmodules |
c962864f DB |
22 | script: |
23 | - mkdir build | |
24 | - cd build | |
25 | - if test -n "$TARGETS"; | |
26 | then | |
27 | ../configure --enable-werror $CONFIGURE_ARGS --target-list="$TARGETS" ; | |
28 | else | |
29 | ../configure --enable-werror $CONFIGURE_ARGS ; | |
c47110d9 | 30 | fi || { cat config.log meson-logs/meson-log.txt && exit 1; } |
c962864f | 31 | - make -j"$JOBS" |
c5008c76 AB |
32 | - if test -n "$MAKE_CHECK_ARGS"; |
33 | then | |
a6eeac3b | 34 | make -j"$JOBS" $MAKE_CHECK_ARGS ; |
c5008c76 AB |
35 | fi |
36 | ||
37 | .native_test_job_template: &native_test_job_definition | |
38 | stage: test | |
39 | image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:latest | |
40 | script: | |
41 | - cd build | |
42 | - find . -type f -exec touch {} + | |
43 | - make $MAKE_CHECK_ARGS | |
44 | ||
5896c539 TH |
45 | .acceptance_template: &acceptance_definition |
46 | cache: | |
47 | key: "${CI_JOB_NAME}-cache" | |
48 | paths: | |
49 | - ${CI_PROJECT_DIR}/avocado-cache | |
50 | policy: pull-push | |
ec4d2feb | 51 | artifacts: |
df063546 WSM |
52 | name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG" |
53 | when: always | |
54 | expire_in: 2 days | |
ec4d2feb CR |
55 | paths: |
56 | - build/tests/results/latest/results.xml | |
df063546 | 57 | - build/tests/results/latest/test-results |
ec4d2feb CR |
58 | reports: |
59 | junit: build/tests/results/latest/results.xml | |
5896c539 TH |
60 | before_script: |
61 | - mkdir -p ~/.config/avocado | |
62 | - echo "[datadir.paths]" > ~/.config/avocado/avocado.conf | |
63 | - echo "cache_dirs = ['${CI_PROJECT_DIR}/avocado-cache']" | |
64 | >> ~/.config/avocado/avocado.conf | |
ba2232ba WSM |
65 | - echo -e '[job.output.testlogs]\nstatuses = ["FAIL"]' |
66 | >> ~/.config/avocado/avocado.conf | |
5896c539 TH |
67 | - if [ -d ${CI_PROJECT_DIR}/avocado-cache ]; then |
68 | du -chs ${CI_PROJECT_DIR}/avocado-cache ; | |
69 | fi | |
67202bae | 70 | - export AVOCADO_ALLOW_UNTRUSTED_CODE=1 |
c5008c76 AB |
71 | after_script: |
72 | - cd build | |
5896c539 | 73 | - du -chs ${CI_PROJECT_DIR}/avocado-cache |
0a8b05c7 | 74 | |
b22786ea JY |
75 | build-system-alpine: |
76 | <<: *native_build_job_definition | |
77 | variables: | |
78 | IMAGE: alpine | |
79 | TARGETS: aarch64-softmmu alpha-softmmu cris-softmmu hppa-softmmu | |
80 | moxie-softmmu microblazeel-softmmu mips64el-softmmu | |
81 | MAKE_CHECK_ARGS: check-build | |
82 | CONFIGURE_ARGS: --enable-docs | |
83 | artifacts: | |
84 | expire_in: 2 days | |
85 | paths: | |
86 | - .git-submodule-status | |
87 | - build | |
88 | ||
89 | check-system-alpine: | |
90 | <<: *native_test_job_definition | |
91 | needs: | |
92 | - job: build-system-alpine | |
93 | artifacts: true | |
94 | variables: | |
95 | IMAGE: alpine | |
96 | MAKE_CHECK_ARGS: check | |
97 | ||
98 | acceptance-system-alpine: | |
99 | <<: *native_test_job_definition | |
100 | needs: | |
101 | - job: build-system-alpine | |
102 | artifacts: true | |
103 | variables: | |
104 | IMAGE: alpine | |
105 | MAKE_CHECK_ARGS: check-acceptance | |
106 | <<: *acceptance_definition | |
107 | ||
699616db | 108 | build-system-ubuntu: |
c962864f DB |
109 | <<: *native_build_job_definition |
110 | variables: | |
111 | IMAGE: ubuntu2004 | |
699616db TH |
112 | TARGETS: aarch64-softmmu alpha-softmmu cris-softmmu hppa-softmmu |
113 | moxie-softmmu microblazeel-softmmu mips64el-softmmu | |
a6eeac3b | 114 | MAKE_CHECK_ARGS: check-build |
c5008c76 | 115 | artifacts: |
0a796d63 | 116 | expire_in: 2 days |
c5008c76 AB |
117 | paths: |
118 | - build | |
119 | ||
699616db | 120 | check-system-ubuntu: |
c5008c76 AB |
121 | <<: *native_test_job_definition |
122 | needs: | |
699616db | 123 | - job: build-system-ubuntu |
c5008c76 AB |
124 | artifacts: true |
125 | variables: | |
126 | IMAGE: ubuntu2004 | |
c962864f | 127 | MAKE_CHECK_ARGS: check |
0a8b05c7 | 128 | |
699616db | 129 | acceptance-system-ubuntu: |
c5008c76 AB |
130 | <<: *native_test_job_definition |
131 | needs: | |
699616db | 132 | - job: build-system-ubuntu |
c5008c76 AB |
133 | artifacts: true |
134 | variables: | |
135 | IMAGE: ubuntu2004 | |
136 | MAKE_CHECK_ARGS: check-acceptance | |
5896c539 | 137 | <<: *acceptance_definition |
c5008c76 | 138 | |
699616db TH |
139 | build-system-debian: |
140 | <<: *native_build_job_definition | |
141 | variables: | |
142 | IMAGE: debian-amd64 | |
143 | TARGETS: arm-softmmu avr-softmmu i386-softmmu mipsel-softmmu | |
144 | riscv64-softmmu sh4eb-softmmu sparc-softmmu xtensaeb-softmmu | |
145 | MAKE_CHECK_ARGS: check-build | |
146 | artifacts: | |
0a796d63 | 147 | expire_in: 2 days |
699616db TH |
148 | paths: |
149 | - build | |
150 | ||
151 | check-system-debian: | |
152 | <<: *native_test_job_definition | |
153 | needs: | |
154 | - job: build-system-debian | |
155 | artifacts: true | |
156 | variables: | |
157 | IMAGE: debian-amd64 | |
158 | MAKE_CHECK_ARGS: check | |
159 | ||
22250a6e AB |
160 | # No targets are built here, just tools, docs, and unit tests. This |
161 | # also feeds into the eventual documentation deployment steps later | |
a8a3abe0 AB |
162 | build-tools-and-docs-debian: |
163 | <<: *native_build_job_definition | |
164 | variables: | |
165 | IMAGE: debian-amd64 | |
22250a6e | 166 | MAKE_CHECK_ARGS: check-unit check-softfloat ctags TAGS cscope |
a8a3abe0 AB |
167 | CONFIGURE_ARGS: --disable-system --disable-user --enable-docs --enable-tools |
168 | artifacts: | |
169 | expire_in: 2 days | |
170 | paths: | |
171 | - build | |
172 | ||
699616db TH |
173 | acceptance-system-debian: |
174 | <<: *native_test_job_definition | |
175 | needs: | |
176 | - job: build-system-debian | |
177 | artifacts: true | |
178 | variables: | |
179 | IMAGE: debian-amd64 | |
180 | MAKE_CHECK_ARGS: check-acceptance | |
5896c539 | 181 | <<: *acceptance_definition |
699616db TH |
182 | |
183 | build-system-fedora: | |
c962864f DB |
184 | <<: *native_build_job_definition |
185 | variables: | |
186 | IMAGE: fedora | |
d0f26e68 | 187 | CONFIGURE_ARGS: --disable-gcrypt --enable-nettle --enable-docs |
3ffc7f01 | 188 | TARGETS: tricore-softmmu microblaze-softmmu mips-softmmu |
699616db | 189 | xtensa-softmmu m68k-softmmu riscv32-softmmu ppc-softmmu sparc64-softmmu |
a6eeac3b | 190 | MAKE_CHECK_ARGS: check-build |
c5008c76 | 191 | artifacts: |
0a796d63 | 192 | expire_in: 2 days |
c5008c76 AB |
193 | paths: |
194 | - build | |
195 | ||
699616db | 196 | check-system-fedora: |
c5008c76 AB |
197 | <<: *native_test_job_definition |
198 | needs: | |
699616db | 199 | - job: build-system-fedora |
c5008c76 AB |
200 | artifacts: true |
201 | variables: | |
202 | IMAGE: fedora | |
c962864f | 203 | MAKE_CHECK_ARGS: check |
0a8b05c7 | 204 | |
699616db | 205 | acceptance-system-fedora: |
c5008c76 AB |
206 | <<: *native_test_job_definition |
207 | needs: | |
699616db | 208 | - job: build-system-fedora |
c5008c76 AB |
209 | artifacts: true |
210 | variables: | |
211 | IMAGE: fedora | |
212 | MAKE_CHECK_ARGS: check-acceptance | |
5896c539 | 213 | <<: *acceptance_definition |
c5008c76 | 214 | |
699616db TH |
215 | build-system-centos: |
216 | <<: *native_build_job_definition | |
217 | variables: | |
218 | IMAGE: centos8 | |
affcc09c | 219 | CONFIGURE_ARGS: --disable-nettle --enable-gcrypt |
3ffc7f01 | 220 | TARGETS: ppc64-softmmu or1k-softmmu s390x-softmmu |
699616db TH |
221 | x86_64-softmmu rx-softmmu sh4-softmmu nios2-softmmu |
222 | MAKE_CHECK_ARGS: check-build | |
223 | artifacts: | |
0a796d63 | 224 | expire_in: 2 days |
699616db TH |
225 | paths: |
226 | - build | |
227 | ||
228 | check-system-centos: | |
229 | <<: *native_test_job_definition | |
230 | needs: | |
231 | - job: build-system-centos | |
232 | artifacts: true | |
233 | variables: | |
234 | IMAGE: centos8 | |
235 | MAKE_CHECK_ARGS: check | |
236 | ||
237 | acceptance-system-centos: | |
238 | <<: *native_test_job_definition | |
239 | needs: | |
240 | - job: build-system-centos | |
241 | artifacts: true | |
242 | variables: | |
243 | IMAGE: centos8 | |
244 | MAKE_CHECK_ARGS: check-acceptance | |
5896c539 | 245 | <<: *acceptance_definition |
699616db | 246 | |
b115ea3a CYC |
247 | build-system-opensuse: |
248 | <<: *native_build_job_definition | |
249 | variables: | |
250 | IMAGE: opensuse-leap | |
251 | TARGETS: s390x-softmmu x86_64-softmmu aarch64-softmmu | |
252 | MAKE_CHECK_ARGS: check-build | |
253 | artifacts: | |
254 | expire_in: 2 days | |
255 | paths: | |
256 | - build | |
257 | ||
258 | check-system-opensuse: | |
259 | <<: *native_test_job_definition | |
260 | needs: | |
261 | - job: build-system-opensuse | |
262 | artifacts: true | |
263 | variables: | |
264 | IMAGE: opensuse-leap | |
265 | MAKE_CHECK_ARGS: check | |
266 | ||
267 | acceptance-system-opensuse: | |
268 | <<: *native_test_job_definition | |
269 | needs: | |
270 | - job: build-system-opensuse | |
271 | artifacts: true | |
272 | variables: | |
273 | IMAGE: opensuse-leap | |
274 | MAKE_CHECK_ARGS: check-acceptance | |
275 | <<: *acceptance_definition | |
276 | ||
277 | ||
0a8b05c7 | 278 | build-disabled: |
c962864f DB |
279 | <<: *native_build_job_definition |
280 | variables: | |
281 | IMAGE: fedora | |
94a4f816 PMD |
282 | CONFIGURE_ARGS: |
283 | --disable-attr | |
0c4d885f | 284 | --disable-auth-pam |
94a4f816 PMD |
285 | --disable-avx2 |
286 | --disable-bochs | |
287 | --disable-brlapi | |
288 | --disable-bzip2 | |
289 | --disable-cap-ng | |
290 | --disable-capstone | |
291 | --disable-cloop | |
292 | --disable-coroutine-pool | |
293 | --disable-curl | |
294 | --disable-curses | |
295 | --disable-dmg | |
296 | --disable-docs | |
0c4d885f | 297 | --disable-gcrypt |
94a4f816 PMD |
298 | --disable-glusterfs |
299 | --disable-gnutls | |
300 | --disable-gtk | |
301 | --disable-guest-agent | |
302 | --disable-iconv | |
0c4d885f | 303 | --disable-keyring |
94a4f816 PMD |
304 | --disable-kvm |
305 | --disable-libiscsi | |
306 | --disable-libpmem | |
307 | --disable-libssh | |
0c4d885f | 308 | --disable-libudev |
94a4f816 PMD |
309 | --disable-libusb |
310 | --disable-libxml2 | |
311 | --disable-linux-aio | |
312 | --disable-live-block-migration | |
313 | --disable-lzo | |
314 | --disable-malloc-trim | |
315 | --disable-mpath | |
316 | --disable-nettle | |
317 | --disable-numa | |
0c4d885f | 318 | --disable-opengl |
94a4f816 PMD |
319 | --disable-parallels |
320 | --disable-pie | |
321 | --disable-qcow1 | |
322 | --disable-qed | |
323 | --disable-qom-cast-debug | |
324 | --disable-rbd | |
325 | --disable-rdma | |
326 | --disable-replication | |
327 | --disable-sdl | |
328 | --disable-seccomp | |
329 | --disable-sheepdog | |
330 | --disable-slirp | |
331 | --disable-smartcard | |
332 | --disable-snappy | |
0c4d885f | 333 | --disable-sparse |
94a4f816 PMD |
334 | --disable-spice |
335 | --disable-strip | |
336 | --disable-tpm | |
337 | --disable-usb-redir | |
338 | --disable-vdi | |
339 | --disable-vhost-crypto | |
340 | --disable-vhost-net | |
341 | --disable-vhost-scsi | |
342 | --disable-vhost-user | |
343 | --disable-vhost-vdpa | |
344 | --disable-vhost-vsock | |
345 | --disable-virglrenderer | |
346 | --disable-vnc | |
347 | --disable-vte | |
348 | --disable-vvfat | |
349 | --disable-xen | |
350 | --disable-zstd | |
a7524adb TH |
351 | TARGETS: arm-softmmu i386-softmmu ppc64-softmmu mips64-softmmu |
352 | s390x-softmmu i386-linux-user | |
c962864f | 353 | MAKE_CHECK_ARGS: check-qtest SPEED=slow |
0a8b05c7 | 354 | |
37b6fd66 PMD |
355 | # This jobs explicitly disable TCG (--disable-tcg), KVM is detected by |
356 | # the configure script. The container doesn't contain Xen headers so | |
357 | # Xen accelerator is not detected / selected. As result it build the | |
358 | # i386-softmmu and x86_64-softmmu with KVM being the single accelerator | |
359 | # available. | |
0a8b05c7 | 360 | build-tcg-disabled: |
c962864f DB |
361 | <<: *native_build_job_definition |
362 | variables: | |
363 | IMAGE: centos8 | |
364 | script: | |
365 | - mkdir build | |
366 | - cd build | |
c47110d9 | 367 | - ../configure --disable-tcg --audio-drv-list="" || { cat config.log meson-logs/meson-log.txt && exit 1; } |
c962864f DB |
368 | - make -j"$JOBS" |
369 | - make check-unit | |
370 | - make check-qapi-schema | |
371 | - cd tests/qemu-iotests/ | |
372 | - ./check -raw 001 002 003 004 005 008 009 010 011 012 021 025 032 033 048 | |
c7cf4ddb TH |
373 | 052 063 077 086 101 104 106 113 148 150 151 152 157 159 160 163 |
374 | 170 171 183 184 192 194 197 208 215 221 222 226 227 236 253 277 | |
d8a18da5 | 375 | - ./check -qcow2 028 051 056 057 058 065 068 082 085 091 095 096 102 122 |
c7cf4ddb TH |
376 | 124 132 139 142 144 145 151 152 155 157 165 194 196 197 200 202 |
377 | 208 209 215 216 218 222 227 234 246 247 248 250 254 255 257 258 | |
378 | 260 261 262 263 264 270 272 273 277 279 | |
0a8b05c7 TH |
379 | |
380 | build-user: | |
c962864f DB |
381 | <<: *native_build_job_definition |
382 | variables: | |
62c902e0 AB |
383 | IMAGE: debian-all-test-cross |
384 | CONFIGURE_ARGS: --disable-tools --disable-system | |
385 | MAKE_CHECK_ARGS: check-tcg | |
0a8b05c7 | 386 | |
d01bc253 PMD |
387 | build-user-static: |
388 | <<: *native_build_job_definition | |
389 | variables: | |
390 | IMAGE: debian-all-test-cross | |
391 | CONFIGURE_ARGS: --disable-tools --disable-system --static | |
392 | MAKE_CHECK_ARGS: check-tcg | |
393 | ||
ac74e282 AB |
394 | # Only build the softmmu targets we have check-tcg tests for |
395 | build-some-softmmu: | |
396 | <<: *native_build_job_definition | |
397 | variables: | |
398 | IMAGE: debian-all-test-cross | |
399 | CONFIGURE_ARGS: --disable-tools --enable-debug-tcg | |
400 | TARGETS: xtensa-softmmu arm-softmmu aarch64-softmmu alpha-softmmu | |
401 | MAKE_CHECK_ARGS: check-tcg | |
402 | ||
8cdb2cef AB |
403 | # Run check-tcg against linux-user (with plugins) |
404 | # we skip sparc64-linux-user until it has been fixed somewhat | |
405 | # we skip cris-linux-user as it doesn't use the common run loop | |
406 | build-user-plugins: | |
407 | <<: *native_build_job_definition | |
408 | variables: | |
409 | IMAGE: debian-all-test-cross | |
410 | CONFIGURE_ARGS: --disable-tools --disable-system --enable-plugins --enable-debug-tcg --target-list-exclude=sparc64-linux-user,cris-linux-user | |
411 | MAKE_CHECK_ARGS: check-tcg | |
412 | timeout: 1h 30m | |
413 | ||
4e41d4a3 PMD |
414 | build-user-centos7: |
415 | <<: *native_build_job_definition | |
416 | variables: | |
417 | IMAGE: centos7 | |
418 | CONFIGURE_ARGS: --disable-system --disable-tools --disable-docs | |
419 | MAKE_CHECK_ARGS: check-tcg | |
420 | ||
ac74e282 AB |
421 | build-some-softmmu-plugins: |
422 | <<: *native_build_job_definition | |
423 | variables: | |
424 | IMAGE: debian-all-test-cross | |
425 | CONFIGURE_ARGS: --disable-tools --disable-user --enable-plugins --enable-debug-tcg | |
426 | TARGETS: xtensa-softmmu arm-softmmu aarch64-softmmu alpha-softmmu | |
427 | MAKE_CHECK_ARGS: check-tcg | |
428 | ||
0a8b05c7 | 429 | build-clang: |
c962864f DB |
430 | <<: *native_build_job_definition |
431 | variables: | |
432 | IMAGE: fedora | |
433 | CONFIGURE_ARGS: --cc=clang --cxx=clang++ | |
434 | TARGETS: alpha-softmmu arm-softmmu m68k-softmmu mips64-softmmu | |
b610eba3 | 435 | ppc-softmmu s390x-softmmu arm-linux-user |
c962864f | 436 | MAKE_CHECK_ARGS: check |
5f55d64b | 437 | |
1c0c06b1 AB |
438 | # These targets are on the way out |
439 | build-deprecated: | |
440 | <<: *native_build_job_definition | |
441 | variables: | |
442 | IMAGE: debian-all-test-cross | |
3ffc7f01 | 443 | CONFIGURE_ARGS: --disable-docs --disable-tools |
2614670b | 444 | MAKE_CHECK_ARGS: build-tcg |
3ffc7f01 AB |
445 | TARGETS: ppc64abi32-linux-user tilegx-linux-user lm32-softmmu |
446 | unicore32-softmmu | |
2614670b AB |
447 | artifacts: |
448 | expire_in: 2 days | |
449 | paths: | |
450 | - build | |
451 | ||
452 | # We split the check-tcg step as test failures are expected but we still | |
453 | # want to catch the build breaking. | |
454 | check-deprecated: | |
455 | <<: *native_test_job_definition | |
456 | needs: | |
457 | - job: build-deprecated | |
458 | artifacts: true | |
459 | variables: | |
460 | IMAGE: debian-all-test-cross | |
461 | MAKE_CHECK_ARGS: check-tcg | |
1c0c06b1 AB |
462 | allow_failure: true |
463 | ||
48eac101 | 464 | build-oss-fuzz: |
b610eba3 TH |
465 | <<: *native_build_job_definition |
466 | variables: | |
467 | IMAGE: fedora | |
468 | script: | |
48eac101 AB |
469 | - mkdir build-oss-fuzz |
470 | - CC="clang" CXX="clang++" CFLAGS="-fsanitize=address" | |
471 | ./scripts/oss-fuzz/build.sh | |
5ab04d5e | 472 | - export ASAN_OPTIONS="fast_unwind_on_malloc=0" |
48eac101 AB |
473 | - for fuzzer in $(find ./build-oss-fuzz/DEST_DIR/ -executable -type f |
474 | | grep -v slirp); do | |
475 | grep "LLVMFuzzerTestOneInput" ${fuzzer} > /dev/null 2>&1 || continue ; | |
476 | echo Testing ${fuzzer} ... ; | |
320c6e78 | 477 | "${fuzzer}" -runs=1 -seed=1 || exit 1 ; |
b610eba3 | 478 | done |
5ab04d5e TH |
479 | # Unrelated to fuzzer: run some tests with -fsanitize=address |
480 | - cd build-oss-fuzz && make check-qtest-i386 check-unit | |
b610eba3 | 481 | |
5f55d64b | 482 | build-tci: |
c962864f DB |
483 | <<: *native_build_job_definition |
484 | variables: | |
485 | IMAGE: fedora | |
486 | script: | |
487 | - TARGETS="aarch64 alpha arm hppa m68k microblaze moxie ppc64 s390x x86_64" | |
488 | - mkdir build | |
489 | - cd build | |
490 | - ../configure --enable-tcg-interpreter | |
c47110d9 | 491 | --target-list="$(for tg in $TARGETS; do echo -n ${tg}'-softmmu '; done)" || { cat config.log meson-logs/meson-log.txt && exit 1; } |
c962864f DB |
492 | - make -j"$JOBS" |
493 | - make run-tcg-tests-x86_64-softmmu | |
494 | - make tests/qtest/boot-serial-test tests/qtest/cdrom-test tests/qtest/pxe-test | |
495 | - for tg in $TARGETS ; do | |
64ed6f92 | 496 | export QTEST_QEMU_BINARY="./qemu-system-${tg}" ; |
c962864f DB |
497 | ./tests/qtest/boot-serial-test || exit 1 ; |
498 | ./tests/qtest/cdrom-test || exit 1 ; | |
499 | done | |
64ed6f92 PB |
500 | - QTEST_QEMU_BINARY="./qemu-system-x86_64" ./tests/qtest/pxe-test |
501 | - QTEST_QEMU_BINARY="./qemu-system-s390x" ./tests/qtest/pxe-test -m slow | |
affcc09c | 502 | |
d1a8b308 PMD |
503 | # Alternate coroutines implementations are only really of interest to KVM users |
504 | # However we can't test against KVM on Gitlab-CI so we can only run unit tests | |
505 | build-coroutine-ucontext: | |
506 | <<: *native_build_job_definition | |
507 | variables: | |
508 | IMAGE: ubuntu2004 | |
509 | CONFIGURE_ARGS: --with-coroutine=ucontext --disable-tcg | |
510 | MAKE_CHECK_ARGS: check-unit | |
511 | ||
512 | build-coroutine-sigaltstack: | |
513 | <<: *native_build_job_definition | |
514 | variables: | |
515 | IMAGE: ubuntu2004 | |
516 | CONFIGURE_ARGS: --with-coroutine=sigaltstack --disable-tcg | |
517 | MAKE_CHECK_ARGS: check-unit | |
518 | ||
affcc09c DB |
519 | # Most jobs test latest gcrypt or nettle builds |
520 | # | |
521 | # These jobs test old gcrypt and nettle from RHEL7 | |
522 | # which had some API differences. | |
523 | build-crypto-old-nettle: | |
524 | <<: *native_build_job_definition | |
525 | variables: | |
526 | IMAGE: centos7 | |
527 | TARGETS: x86_64-softmmu x86_64-linux-user | |
528 | CONFIGURE_ARGS: --disable-gcrypt --enable-nettle | |
529 | MAKE_CHECK_ARGS: check-build | |
530 | artifacts: | |
531 | paths: | |
532 | - build | |
533 | ||
534 | check-crypto-old-nettle: | |
535 | <<: *native_test_job_definition | |
536 | needs: | |
537 | - job: build-crypto-old-nettle | |
538 | artifacts: true | |
539 | variables: | |
540 | IMAGE: centos7 | |
541 | MAKE_CHECK_ARGS: check | |
542 | ||
543 | ||
544 | build-crypto-old-gcrypt: | |
545 | <<: *native_build_job_definition | |
546 | variables: | |
547 | IMAGE: centos7 | |
548 | TARGETS: x86_64-softmmu x86_64-linux-user | |
549 | CONFIGURE_ARGS: --disable-nettle --enable-gcrypt | |
550 | MAKE_CHECK_ARGS: check-build | |
551 | artifacts: | |
552 | paths: | |
553 | - build | |
554 | ||
555 | check-crypto-old-gcrypt: | |
556 | <<: *native_test_job_definition | |
557 | needs: | |
558 | - job: build-crypto-old-gcrypt | |
559 | artifacts: true | |
560 | variables: | |
561 | IMAGE: centos7 | |
562 | MAKE_CHECK_ARGS: check | |
563 | ||
564 | ||
565 | build-crypto-only-gnutls: | |
566 | <<: *native_build_job_definition | |
567 | variables: | |
568 | IMAGE: centos7 | |
569 | TARGETS: x86_64-softmmu x86_64-linux-user | |
570 | CONFIGURE_ARGS: --disable-nettle --disable-gcrypt --enable-gnutls | |
571 | MAKE_CHECK_ARGS: check-build | |
572 | artifacts: | |
573 | paths: | |
574 | - build | |
575 | ||
576 | check-crypto-only-gnutls: | |
577 | <<: *native_test_job_definition | |
578 | needs: | |
579 | - job: build-crypto-only-gnutls | |
580 | artifacts: true | |
581 | variables: | |
582 | IMAGE: centos7 | |
583 | MAKE_CHECK_ARGS: check | |
1f475472 | 584 | |
1352d568 PMD |
585 | # We don't need to exercise every backend with every front-end |
586 | build-trace-multi-user: | |
587 | <<: *native_build_job_definition | |
588 | variables: | |
589 | IMAGE: ubuntu2004 | |
590 | CONFIGURE_ARGS: --enable-trace-backends=log,simple,syslog --disable-system | |
591 | ||
592 | build-trace-ftrace-system: | |
593 | <<: *native_build_job_definition | |
594 | variables: | |
595 | IMAGE: ubuntu2004 | |
596 | CONFIGURE_ARGS: --enable-trace-backends=ftrace --target-list=x86_64-softmmu | |
597 | ||
598 | build-trace-ust-system: | |
599 | <<: *native_build_job_definition | |
600 | variables: | |
601 | IMAGE: ubuntu2004 | |
602 | CONFIGURE_ARGS: --enable-trace-backends=ust --target-list=x86_64-softmmu | |
1f475472 | 603 | |
3fed93f3 AB |
604 | # Check our reduced build configurations |
605 | build-without-default-devices: | |
606 | <<: *native_build_job_definition | |
607 | variables: | |
608 | IMAGE: centos8 | |
609 | CONFIGURE_ARGS: --without-default-devices --disable-user | |
610 | ||
53f41245 AB |
611 | build-without-default-features: |
612 | <<: *native_build_job_definition | |
613 | variables: | |
614 | IMAGE: debian-amd64 | |
615 | CONFIGURE_ARGS: --without-default-features --disable-user | |
616 | MAKE_CHECK_ARGS: check-unit | |
617 | ||
1f475472 DB |
618 | check-patch: |
619 | stage: build | |
620 | image: $CI_REGISTRY_IMAGE/qemu/centos8:latest | |
621 | script: .gitlab-ci.d/check-patch.py | |
622 | except: | |
623 | variables: | |
624 | - $CI_PROJECT_NAMESPACE == 'qemu-project' && $CI_COMMIT_BRANCH == 'master' | |
625 | variables: | |
626 | GIT_DEPTH: 1000 | |
627 | allow_failure: true | |
34ed46a2 DB |
628 | |
629 | check-dco: | |
630 | stage: build | |
631 | image: $CI_REGISTRY_IMAGE/qemu/centos8:latest | |
632 | script: .gitlab-ci.d/check-dco.py | |
633 | except: | |
634 | variables: | |
635 | - $CI_PROJECT_NAMESPACE == 'qemu-project' && $CI_COMMIT_BRANCH == 'master' | |
636 | variables: | |
637 | GIT_DEPTH: 1000 | |
4daa9055 | 638 | |
c4698e36 MAL |
639 | build-libvhost-user: |
640 | stage: build | |
641 | image: $CI_REGISTRY_IMAGE/qemu/fedora:latest | |
642 | before_script: | |
643 | - dnf install -y meson ninja-build | |
644 | script: | |
645 | - mkdir subprojects/libvhost-user/build | |
646 | - cd subprojects/libvhost-user/build | |
647 | - meson | |
648 | - ninja | |
649 | ||
a8a3abe0 AB |
650 | # Prepare for GitLab pages deployment. Anything copied into the |
651 | # "public" directory will be deployed to $USER.gitlab.io/$PROJECT | |
4daa9055 | 652 | pages: |
a8a3abe0 | 653 | image: $CI_REGISTRY_IMAGE/qemu/debian-amd64:latest |
4daa9055 DB |
654 | stage: test |
655 | needs: | |
a8a3abe0 | 656 | - job: build-tools-and-docs-debian |
4daa9055 | 657 | script: |
a8a3abe0 AB |
658 | - mkdir -p public |
659 | # HTML-ised source tree | |
660 | - make gtags | |
661 | - htags -anT --tree-view=filetree -m qemu_init | |
662 | -t "Welcome to the QEMU sourcecode" | |
663 | - mv HTML public/src | |
664 | # Project documentation | |
b93f4fbd PM |
665 | - make -C build install DESTDIR=$(pwd)/temp-install |
666 | - mv temp-install/usr/local/share/doc/qemu/* public/ | |
4daa9055 DB |
667 | artifacts: |
668 | paths: | |
669 | - public |