2 UPSTREAM_REPO: mesa/mesa
5 - project: 'wayland/ci-templates'
6 ref: b7030c2cd0d6ccc5f6d4f8299bafa4daa9240d71
7 file: '/templates/debian.yml'
8 - local: '.gitlab-ci/lava-gitlab-ci.yml'
17 # When to automatically run the CI
20 # Run pipeline by default for merge requests changing files affecting it
21 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
40 # Run pipeline by default in the main project if files affecting it were
42 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
46 # Allow triggering jobs manually on branches of forked projects
47 - if: '$CI_PROJECT_PATH != "mesa/mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
49 # Otherwise, most jobs won't run
54 - runner_system_failure
55 # Cancel CI run if a newer commit is pushed to the same branch
60 image: debian:stable-slim
69 - echo "Dummy job to make sure every merge request pipeline runs at least one job"
77 # Watch out! Artifacts are relative to the build dir.
78 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
81 # Build the CI docker images.
83 # DEBIAN_TAG is the tag of the docker image used by later stage jobs. If the
84 # image doesn't exist yet, the container stage job generates it.
86 # In order to generate a new image, one should generally change the tag.
87 # While removing the image from the registry would also work, that's not
88 # recommended except for ephemeral images during development: Replacing
89 # an image after a significant amount of time might pull in newer
90 # versions of gcc/clang or other packages, which might break the build
91 # with older commits using the same tag.
93 # After merging a change resulting in generating a new image to the
94 # main repository, it's recommended to remove the image from the source
95 # repository's container registry, so that the image from the main
96 # repository's registry will be used there as well.
103 DEBIAN_VERSION: buster-slim
104 REPO_SUFFIX: $CI_JOB_NAME
105 DEBIAN_EXEC: 'bash .gitlab-ci/container/${CI_JOB_NAME}.sh'
106 # no need to pull the whole repo to build the container image
109 # Debian 10 based x86 build image
112 - .debian@container-ifnot-exists
115 DEBIAN_TAG: &x86_build "2020-02-15"
120 image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG"
124 # Debian 10 based x86 test image for GL
128 DEBIAN_TAG: &x86_test-gl "2020-01-30"
130 # Debian 10 based x86 test image for VK
134 DEBIAN_TAG: &x86_test-vk "2020-01-14"
135 # Can only be triggered manually on personal branches because RADV is the only
136 # driver that does Vulkan testing at the moment.
138 # Never build the test image for VK by default in the main project.
139 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
141 # Never build the test image for VK by default for merge requests.
142 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
144 # Otherwise, allow building it manually for personal branches.
148 # Debian 9 based x86 build image (old LLVM)
152 DEBIAN_TAG: &x86_build_old "2019-09-18"
153 DEBIAN_VERSION: stretch-slim
158 image: "$CI_REGISTRY_IMAGE/debian/x86_build_old:$TAG"
162 # Debian 10 based ARM build image
165 - .debian@container-ifnot-exists@arm64v8
168 DEBIAN_TAG: &arm_build "2020-02-05"
173 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
177 # Debian 10 based ARM test image
181 DEBIAN_TAG: &arm_test "2020-01-30"
186 image: "$CI_REGISTRY_IMAGE/debian/arm_test:$TAG"
194 # Shared between windows and Linux
196 extends: .ci-run-policy
201 - _build/meson-logs/*.txt
208 extends: .build-common
210 CCACHE_COMPILERCHECK: "content"
211 CCACHE_COMPRESS: "true"
212 CCACHE_DIR: /cache/mesa/ccache
213 # Use ccache transparently, and print stats before/after
215 - export PATH="/usr/lib/ccache:$PATH"
216 - export CCACHE_BASEDIR="$PWD"
217 - ccache --show-stats
219 - ccache --show-stats
222 extends: .build-common
228 - subprojects/packagecache
237 - .gitlab-ci/meson-build.sh
246 - .gitlab-ci/scons-build.sh
258 -D platforms=x11,drm,surfaceless
261 GALLIUM_DRIVERS: "swrast"
263 BUILDTYPE: "debugoptimized"
265 - .gitlab-ci/meson-build.sh
266 - .gitlab-ci/prepare-artifacts.sh
269 extends: .meson-build
276 -D platforms=x11,wayland,drm,surfaceless
277 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
280 -D gallium-extra-hud=true
281 -D gallium-vdpau=true
283 -D gallium-omx=bellagio
287 -D gallium-opencl=disabled
288 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swr,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
293 - .gitlab-ci/meson-build.sh
294 - .gitlab-ci/run-shader-db.sh
305 -D platforms=surfaceless
309 -D gallium-vdpau=false
310 -D gallium-xvmc=false
311 -D gallium-omx=disabled
314 -D gallium-nine=false
322 VULKAN_DRIVERS: freedreno
323 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
324 BUILDTYPE: "debugoptimized"
336 - .gitlab-ci/meson-build.sh
337 - .gitlab-ci/prepare-artifacts.sh
344 VULKAN_DRIVERS: "freedreno,amd"
346 - .gitlab-ci/meson-build.sh
347 - .gitlab-ci/prepare-artifacts.sh
350 extends: .meson-build
356 GALLIUM_DRIVERS: "auto"
357 VULKAN_DRIVERS: intel,amd,freedreno
359 CXX: "ccache clang++-9"
366 - $ENV:VERSION = "2019\Community"
368 - cmd /C .gitlab-ci\meson-build.bat
371 extends: .scons-build
373 SCONS_TARGET: "swr=1"
374 SCONS_CHECK_COMMAND: "true"
378 extends: .scons-build
380 SCONS_TARGET: platform=windows machine=x86_64
381 SCONS_CHECK_COMMAND: "true"
384 extends: .meson-build
393 -D gallium-vdpau=false
394 -D gallium-xvmc=false
395 -D gallium-omx=disabled
398 -D gallium-nine=false
399 -D gallium-opencl=icd
401 - export GALLIUM_DRIVERS="r600,radeonsi"
402 - .gitlab-ci/meson-build.sh
403 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
404 - export GALLIUM_DRIVERS="i915,r600"
405 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
406 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
408 meson-clover-old-llvm:
418 -D platforms=drm,surfaceless
419 GALLIUM_DRIVERS: "i915,r600"
421 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
422 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
423 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
426 extends: .meson-build
433 -D platforms=x11,wayland,drm
437 -D gallium-vdpau=false
438 -D gallium-xvmc=false
439 -D gallium-omx=disabled
442 -D gallium-nine=false
443 -D gallium-opencl=disabled
444 -D b_sanitize=undefined
445 -D c_args=-fno-sanitize-recover=all
446 -D cpp_args=-fno-sanitize-recover=all
447 UBSAN_OPTIONS: "print_stacktrace=1"
448 VULKAN_DRIVERS: intel,amd,freedreno
450 -D vulkan-overlay-layer=true
452 # While the main point of this build is testing the i386 cross build,
453 # we also use this one to test some other options that are exclusive
454 # with meson-main's choices (classic swrast and osmesa)
456 extends: .meson-cross
459 VULKAN_DRIVERS: intel
460 DRI_DRIVERS: "swrast"
461 GALLIUM_DRIVERS: "iris"
463 -D vulkan-overlay-layer=true
475 GALLIUM_DRIVERS: "swrast"
477 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
478 - .gitlab-ci/meson-build.sh
485 GALLIUM_DRIVERS: "nouveau,radeonsi,swrast,virgl"
486 VULKAN_DRIVERS: "amd"
488 meson-mingw32-x86_64:
489 extends: .meson-build
493 GALLIUM_DRIVERS: "swrast"
497 --cross-file=.gitlab-ci/x86_64-w64-mingw32
500 extends: .scons-build
502 SCONS_TARGET: "llvm=1"
503 SCONS_CHECK_COMMAND: "scons llvm=1 force_scons=1 check"
505 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
506 - LLVM_VERSION=9 .gitlab-ci/scons-build.sh
513 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
520 GIT_STRATEGY: none # testing doesn't build anything from source
522 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
524 - tar -xf artifacts/install.tar
525 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
528 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
539 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
549 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
558 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
562 LIBGL_ALWAYS_SOFTWARE: 1
565 - artifacts/piglit/run.sh
568 extends: .piglit-test
573 --process-isolation false
576 -x egl_ext_platform_device
577 -x ext_timer_query@time-elapsed
578 -x glx-multithread-clearbuffer
579 -x glx-multithread-shader-compile
582 PIGLIT_PROFILES: quick_gl
585 extends: .piglit-test
589 PIGLIT_PROFILES: glslparser
592 extends: .piglit-test
596 PIGLIT_PROFILES: quick_shader
600 DEQP_SKIPS: deqp-default-skips.txt
602 - ./artifacts/deqp-runner.sh
621 # Don't use threads inside llvmpipe, we've already got all 4 cores
622 # busy with DEQP_PARALLEL.
624 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
625 LIBGL_ALWAYS_SOFTWARE: "true"
626 extends: .deqp-test-gl
629 extends: test-llvmpipe-gles2
631 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
632 DEQP_SKIPS: deqp-softpipe-skips.txt
633 GALLIUM_DRIVER: "softpipe"
639 extends: test-softpipe-gles2
641 test-softpipe-gles31:
645 extends: test-softpipe-gles2
653 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
654 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
657 FLAKES_CHANNEL: "#freedreno-ci"
664 extends: arm64_a630_gles2
669 extends: arm64_a630_gles2
674 extends: arm64_a630_gles2
676 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
677 DEQP_SKIPS: deqp-default-skips.txt
686 # Can only be triggered manually on personal branches because RADV is the only
687 # driver that does Vulkan testing at the moment.
689 # Never test RADV by default in the main project.
690 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
692 # Never test RADV by default for merge requests.
693 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
695 # Otherwise, allow testing RADV if the test image for VK has been manually
699 radv_polaris10_vkcts:
705 DEQP_SKIPS: deqp-radv-polaris10-skips.txt