2 UPSTREAM_REPO: mesa/mesa
5 - project: 'wayland/ci-templates'
6 # Must be the same as in .gitlab-ci/lava-gitlab-ci.yml
7 ref: 0a9bdd33a98f05af6761ab118b5074952242aab0
8 file: '/templates/debian.yml'
9 - local: '.gitlab-ci/lava-gitlab-ci.yml'
18 # When to automatically run the CI
21 # Run pipeline by default for merge requests changing files affecting it
22 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
41 # Run pipeline by default in the main project if files affecting it were
43 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
47 # Allow triggering jobs manually on branches of forked projects
48 - if: '$CI_PROJECT_PATH != "mesa/mesa"'
49 if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
51 # Otherwise, most jobs won't run
56 - runner_system_failure
57 # Cancel CI run if a newer commit is pushed to the same branch
62 image: debian:stable-slim
71 - echo "Dummy job to make sure every merge request pipeline runs at least one job"
79 # Watch out! Artifacts are relative to the build dir.
80 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
83 # Build the CI docker images.
85 # DEBIAN_TAG is the tag of the docker image used by later stage jobs. If the
86 # image doesn't exist yet, the container stage job generates it.
88 # In order to generate a new image, one should generally change the tag.
89 # While removing the image from the registry would also work, that's not
90 # recommended except for ephemeral images during development: Replacing
91 # an image after a significant amount of time might pull in newer
92 # versions of gcc/clang or other packages, which might break the build
93 # with older commits using the same tag.
95 # After merging a change resulting in generating a new image to the
96 # main repository, it's recommended to remove the image from the source
97 # repository's container registry, so that the image from the main
98 # repository's registry will be used there as well.
105 DEBIAN_VERSION: buster-slim
106 REPO_SUFFIX: $CI_JOB_NAME
107 DEBIAN_EXEC: 'bash .gitlab-ci/container/${CI_JOB_NAME}.sh'
108 # no need to pull the whole repo to build the container image
111 # Debian 10 based x86 build image
114 - .debian@container-ifnot-exists
117 DEBIAN_TAG: &x86_build "2020-01-14"
122 image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG"
126 # Debian 10 based x86 test image for GL
130 DEBIAN_TAG: &x86_test-gl "2020-01-14"
132 # Debian 10 based x86 test image for VK
136 DEBIAN_TAG: &x86_test-vk "2020-01-14"
137 # Can only be triggered manually on personal branches because RADV is the only
138 # driver that does Vulkan testing at the moment.
140 # Never build the test image for VK by default in the main project.
141 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
143 # Never build the test image for VK by default for merge requests.
144 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
146 # Otherwise, allow building it manually for personal branches.
150 # Debian 9 based x86 build image (old LLVM)
154 DEBIAN_TAG: &x86_build_old "2019-09-18"
155 DEBIAN_VERSION: stretch-slim
160 image: "$CI_REGISTRY_IMAGE/debian/x86_build_old:$TAG"
164 # Debian 10 based ARM build image
167 - .debian@container-ifnot-exists@arm64v8
170 DEBIAN_TAG: &arm_build "2020-01-14"
175 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
179 # Debian 10 based ARM test image
183 DEBIAN_TAG: &arm_test "2019-12-18"
188 image: "$CI_REGISTRY_IMAGE/debian/arm_test:$TAG"
196 # Shared between windows and Linux
198 extends: .ci-run-policy
203 - _build/meson-logs/*.txt
210 extends: .build-common
212 CCACHE_COMPILERCHECK: "content"
213 CCACHE_COMPRESS: "true"
214 CCACHE_DIR: /cache/mesa/ccache
215 # Use ccache transparently, and print stats before/after
217 - export PATH="/usr/lib/ccache:$PATH"
218 - export CCACHE_BASEDIR="$PWD"
219 - ccache --show-stats
221 - ccache --show-stats
224 extends: .build-common
230 - subprojects/packagecache
239 - .gitlab-ci/meson-build.sh
248 - .gitlab-ci/scons-build.sh
260 -D platforms=x11,drm,surfaceless
263 GALLIUM_DRIVERS: "swrast"
265 BUILDTYPE: "debugoptimized"
267 - .gitlab-ci/meson-build.sh
268 - .gitlab-ci/prepare-artifacts.sh
271 extends: .meson-build
278 -D platforms=x11,wayland,drm,surfaceless
279 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
282 -D gallium-extra-hud=true
283 -D gallium-vdpau=true
285 -D gallium-omx=bellagio
289 -D gallium-opencl=disabled
290 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swr,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
295 - .gitlab-ci/meson-build.sh
296 - .gitlab-ci/run-shader-db.sh
307 -D platforms=surfaceless
311 -D gallium-vdpau=false
312 -D gallium-xvmc=false
313 -D gallium-omx=disabled
316 -D gallium-nine=false
323 VULKAN_DRIVERS: freedreno
324 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
325 BUILDTYPE: "debugoptimized"
327 -D I-love-half-baked-turnips=true
339 - .gitlab-ci/meson-build.sh
340 - .gitlab-ci/prepare-artifacts.sh
348 VULKAN_DRIVERS: "freedreno,amd"
350 - .gitlab-ci/meson-build.sh
351 - .gitlab-ci/prepare-artifacts.sh
354 extends: .meson-build
360 GALLIUM_DRIVERS: "auto"
361 VULKAN_DRIVERS: intel,amd,freedreno
363 CXX: "ccache clang++-9"
370 - $ENV:VERSION = "2019\Community"
372 - cmd /C .gitlab-ci\meson-build.bat
375 extends: .scons-build
377 SCONS_TARGET: "swr=1"
378 SCONS_CHECK_COMMAND: "true"
382 extends: .scons-build
384 SCONS_TARGET: platform=windows machine=x86_64
385 SCONS_CHECK_COMMAND: "true"
388 extends: .meson-build
397 -D gallium-vdpau=false
398 -D gallium-xvmc=false
399 -D gallium-omx=disabled
402 -D gallium-nine=false
403 -D gallium-opencl=icd
405 - export GALLIUM_DRIVERS="r600,radeonsi"
406 - .gitlab-ci/meson-build.sh
407 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
408 - export GALLIUM_DRIVERS="i915,r600"
409 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
410 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
412 meson-clover-old-llvm:
422 -D platforms=drm,surfaceless
423 GALLIUM_DRIVERS: "i915,r600"
425 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
426 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
427 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
430 extends: .meson-build
437 -D platforms=x11,wayland,drm
441 -D gallium-vdpau=false
442 -D gallium-xvmc=false
443 -D gallium-omx=disabled
446 -D gallium-nine=false
447 -D gallium-opencl=disabled
448 -D b_sanitize=undefined
449 -D c_args=-fno-sanitize-recover=all
450 -D cpp_args=-fno-sanitize-recover=all
451 UBSAN_OPTIONS: "print_stacktrace=1"
452 VULKAN_DRIVERS: intel,amd,freedreno
454 -D vulkan-overlay-layer=true
456 # While the main point of this build is testing the i386 cross build,
457 # we also use this one to test some other options that are exclusive
458 # with meson-main's choices (classic swrast and osmesa)
460 extends: .meson-cross
463 VULKAN_DRIVERS: intel
464 DRI_DRIVERS: "swrast"
465 GALLIUM_DRIVERS: "iris"
467 -D vulkan-overlay-layer=true
471 meson-mingw32-x86_64:
472 extends: .meson-build
476 GALLIUM_DRIVERS: "swrast"
480 --cross-file=.gitlab-ci/x86_64-w64-mingw32
483 extends: .scons-build
485 SCONS_TARGET: "llvm=1"
486 SCONS_CHECK_COMMAND: "scons llvm=1 force_scons=1 check"
488 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
489 - LLVM_VERSION=9 .gitlab-ci/scons-build.sh
496 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
503 GIT_STRATEGY: none # testing doesn't build anything from source
505 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
507 - tar -xf artifacts/install.tar
508 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
511 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
522 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
532 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
541 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
545 LIBGL_ALWAYS_SOFTWARE: 1
548 - artifacts/piglit/run.sh
551 extends: .piglit-test
556 --process-isolation false
559 -x egl_ext_platform_device
560 -x ext_timer_query@time-elapsed
561 -x glx-multithread-clearbuffer
562 -x glx-multithread-shader-compile
565 PIGLIT_PROFILES: quick_gl
568 extends: .piglit-test
572 PIGLIT_PROFILES: glslparser
575 extends: .piglit-test
579 PIGLIT_PROFILES: quick_shader
583 DEQP_SKIPS: deqp-default-skips.txt
585 - ./artifacts/deqp-runner.sh
604 # Don't use threads inside llvmpipe, we've already got all 4 cores
605 # busy with DEQP_PARALLEL.
607 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
608 LIBGL_ALWAYS_SOFTWARE: "true"
609 extends: .deqp-test-gl
612 extends: test-llvmpipe-gles2
614 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
615 DEQP_SKIPS: deqp-softpipe-skips.txt
616 GALLIUM_DRIVER: "softpipe"
622 extends: test-softpipe-gles2
624 test-softpipe-gles31:
628 extends: test-softpipe-gles2
636 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
637 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
640 FLAKES_CHANNEL: "#freedreno-ci"
647 extends: arm64_a630_gles2
652 extends: arm64_a630_gles2
657 extends: arm64_a630_gles2
659 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
660 DEQP_SKIPS: deqp-default-skips.txt
669 # Can only be triggered manually on personal branches because RADV is the only
670 # driver that does Vulkan testing at the moment.
672 # Never test RADV by default in the main project.
673 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
675 # Never test RADV by default for merge requests.
676 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
678 # Otherwise, allow testing RADV if the test image for VK has been manually
682 radv_polaris10_vkcts:
688 DEQP_SKIPS: deqp-radv-polaris10-skips.txt