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" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
50 # Otherwise, most jobs won't run
55 - runner_system_failure
56 # Cancel CI run if a newer commit is pushed to the same branch
61 image: debian:stable-slim
70 - echo "Dummy job to make sure every merge request pipeline runs at least one job"
78 # Watch out! Artifacts are relative to the build dir.
79 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
82 # Build the CI docker images.
84 # DEBIAN_TAG is the tag of the docker image used by later stage jobs. If the
85 # image doesn't exist yet, the container stage job generates it.
87 # In order to generate a new image, one should generally change the tag.
88 # While removing the image from the registry would also work, that's not
89 # recommended except for ephemeral images during development: Replacing
90 # an image after a significant amount of time might pull in newer
91 # versions of gcc/clang or other packages, which might break the build
92 # with older commits using the same tag.
94 # After merging a change resulting in generating a new image to the
95 # main repository, it's recommended to remove the image from the source
96 # repository's container registry, so that the image from the main
97 # repository's registry will be used there as well.
104 DEBIAN_VERSION: buster-slim
105 REPO_SUFFIX: $CI_JOB_NAME
106 DEBIAN_EXEC: 'bash .gitlab-ci/container/${CI_JOB_NAME}.sh'
107 # no need to pull the whole repo to build the container image
110 # Debian 10 based x86 build image
113 - .debian@container-ifnot-exists
116 DEBIAN_TAG: &x86_build "2020-01-14"
121 image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG"
125 # Debian 10 based x86 test image for GL
129 DEBIAN_TAG: &x86_test-gl "2020-01-14"
131 # Debian 10 based x86 test image for VK
135 DEBIAN_TAG: &x86_test-vk "2020-01-14"
136 # Can only be triggered manually on personal branches because RADV is the only
137 # driver that does Vulkan testing at the moment.
139 # Never build the test image for VK by default in the main project.
140 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
142 # Never build the test image for VK by default for merge requests.
143 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
145 # Otherwise, allow building it manually for personal branches.
149 # Debian 9 based x86 build image (old LLVM)
153 DEBIAN_TAG: &x86_build_old "2019-09-18"
154 DEBIAN_VERSION: stretch-slim
159 image: "$CI_REGISTRY_IMAGE/debian/x86_build_old:$TAG"
163 # Debian 10 based ARM build image
166 - .debian@container-ifnot-exists@arm64v8
169 DEBIAN_TAG: &arm_build "2020-01-14"
174 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
178 # Debian 10 based ARM test image
182 DEBIAN_TAG: &arm_test "2019-12-18"
187 image: "$CI_REGISTRY_IMAGE/debian/arm_test:$TAG"
195 # Shared between windows and Linux
197 extends: .ci-run-policy
202 - _build/meson-logs/*.txt
209 extends: .build-common
211 CCACHE_COMPILERCHECK: "content"
212 CCACHE_COMPRESS: "true"
213 CCACHE_DIR: /cache/mesa/ccache
214 # Use ccache transparently, and print stats before/after
216 - export PATH="/usr/lib/ccache:$PATH"
217 - export CCACHE_BASEDIR="$PWD"
218 - ccache --show-stats
220 - ccache --show-stats
223 extends: .build-common
229 - subprojects/packagecache
238 - .gitlab-ci/meson-build.sh
247 - .gitlab-ci/scons-build.sh
259 -D platforms=x11,drm,surfaceless
262 GALLIUM_DRIVERS: "swrast"
264 BUILDTYPE: "debugoptimized"
266 - .gitlab-ci/meson-build.sh
267 - .gitlab-ci/prepare-artifacts.sh
270 extends: .meson-build
277 -D platforms=x11,wayland,drm,surfaceless
278 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
281 -D gallium-extra-hud=true
282 -D gallium-vdpau=true
284 -D gallium-omx=bellagio
288 -D gallium-opencl=disabled
289 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swr,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
294 - .gitlab-ci/meson-build.sh
295 - .gitlab-ci/run-shader-db.sh
306 -D platforms=surfaceless
310 -D gallium-vdpau=false
311 -D gallium-xvmc=false
312 -D gallium-omx=disabled
315 -D gallium-nine=false
322 VULKAN_DRIVERS: freedreno
323 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
324 BUILDTYPE: "debugoptimized"
326 -D I-love-half-baked-turnips=true
338 - .gitlab-ci/meson-build.sh
339 - .gitlab-ci/prepare-artifacts.sh
347 VULKAN_DRIVERS: "freedreno,amd"
349 - .gitlab-ci/meson-build.sh
350 - .gitlab-ci/prepare-artifacts.sh
353 extends: .meson-build
359 GALLIUM_DRIVERS: "auto"
360 VULKAN_DRIVERS: intel,amd,freedreno
362 CXX: "ccache clang++-9"
369 - $ENV:VERSION = "2019\Community"
371 - cmd /C .gitlab-ci\meson-build.bat
374 extends: .scons-build
376 SCONS_TARGET: "swr=1"
377 SCONS_CHECK_COMMAND: "true"
381 extends: .scons-build
383 SCONS_TARGET: platform=windows machine=x86_64
384 SCONS_CHECK_COMMAND: "true"
387 extends: .meson-build
396 -D gallium-vdpau=false
397 -D gallium-xvmc=false
398 -D gallium-omx=disabled
401 -D gallium-nine=false
402 -D gallium-opencl=icd
404 - export GALLIUM_DRIVERS="r600,radeonsi"
405 - .gitlab-ci/meson-build.sh
406 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
407 - export GALLIUM_DRIVERS="i915,r600"
408 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
409 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
411 meson-clover-old-llvm:
421 -D platforms=drm,surfaceless
422 GALLIUM_DRIVERS: "i915,r600"
424 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
425 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
426 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
429 extends: .meson-build
436 -D platforms=x11,wayland,drm
440 -D gallium-vdpau=false
441 -D gallium-xvmc=false
442 -D gallium-omx=disabled
445 -D gallium-nine=false
446 -D gallium-opencl=disabled
447 -D b_sanitize=undefined
448 -D c_args=-fno-sanitize-recover=all
449 -D cpp_args=-fno-sanitize-recover=all
450 UBSAN_OPTIONS: "print_stacktrace=1"
451 VULKAN_DRIVERS: intel,amd,freedreno
453 -D vulkan-overlay-layer=true
455 # While the main point of this build is testing the i386 cross build,
456 # we also use this one to test some other options that are exclusive
457 # with meson-main's choices (classic swrast and osmesa)
459 extends: .meson-cross
462 VULKAN_DRIVERS: intel
463 DRI_DRIVERS: "swrast"
464 GALLIUM_DRIVERS: "iris"
466 -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