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'
11 - local: '.gitlab-ci/lava-gitlab-ci.yml'
19 # When to automatically run the CI
26 - runner_system_failure
27 # Cancel CI run if a newer commit is pushed to the same branch
35 # Watch out! Artifacts are relative to the build dir.
36 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
39 # Build the "normal" (non-LAVA) CI docker images.
41 # DEBIAN_TAG is the tag of the docker image used by later stage jobs. If the
42 # image doesn't exist yet, the container stage job generates it.
44 # In order to generate a new image, one should generally change the tag.
45 # While removing the image from the registry would also work, that's not
46 # recommended except for ephemeral images during development: Replacing
47 # an image after a significant amount of time might pull in newer
48 # versions of gcc/clang or other packages, which might break the build
49 # with older commits using the same tag.
51 # After merging a change resulting in generating a new image to the
52 # main repository, it's recommended to remove the image from the source
53 # repository's container registry, so that the image from the main
54 # repository's registry will be used there as well.
61 # Run pipeline by default for merge requests changing files affecting it
62 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
81 # Always run pipeline by default in the main project
82 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
84 # Otherwise, allow triggering jobs manually
87 DEBIAN_VERSION: buster-slim
88 REPO_SUFFIX: $CI_JOB_NAME
89 DEBIAN_EXEC: 'bash .gitlab-ci/container/${CI_JOB_NAME}.sh'
90 # no need to pull the whole repo to build the container image
93 # Debian 10 based x86 build image
96 - .debian@container-ifnot-exists
99 DEBIAN_TAG: &x86_build "2019-11-13"
104 image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG"
108 # Debian 10 based x86 test image
112 DEBIAN_TAG: &x86_test "2019-12-02"
114 # Debian 9 based x86 build image (old LLVM)
118 DEBIAN_TAG: &x86_build_old "2019-09-18"
119 DEBIAN_VERSION: stretch-slim
124 image: "$CI_REGISTRY_IMAGE/debian/x86_build_old:$TAG"
128 # Debian 10 based ARM build image
131 - .debian@container-ifnot-exists@arm64v8
134 DEBIAN_TAG: &arm_build "2019-11-13"
139 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
143 # Debian 10 based ARM test image
147 DEBIAN_TAG: &arm_test "2019-11-22"
152 image: "$CI_REGISTRY_IMAGE/debian/arm_test:$TAG"
160 # Shared between windows and Linux
162 extends: .ci-run-policy
167 - _build/meson-logs/*.txt
174 extends: .build-common
176 CCACHE_COMPILERCHECK: "content"
177 CCACHE_COMPRESS: "true"
178 CCACHE_DIR: /cache/mesa/ccache
179 # Use ccache transparently, and print stats before/after
181 - export PATH="/usr/lib/ccache:$PATH"
182 - export CCACHE_BASEDIR="$PWD"
183 - ccache --show-stats
185 - ccache --show-stats
188 extends: .build-common
194 - subprojects/packagecache
201 - .gitlab-ci/meson-build.sh
210 - .gitlab-ci/scons-build.sh
222 -D platforms=x11,drm,surfaceless
225 GALLIUM_DRIVERS: "swrast"
227 BUILDTYPE: "debugoptimized"
229 - .gitlab-ci/meson-build.sh
230 - .gitlab-ci/prepare-artifacts.sh
233 extends: .meson-build
240 -D platforms=x11,wayland,drm,surfaceless
241 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
244 -D gallium-extra-hud=true
245 -D gallium-vdpau=true
247 -D gallium-omx=bellagio
251 -D gallium-opencl=disabled
252 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swr,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
258 - .gitlab-ci/meson-build.sh
259 - .gitlab-ci/run-shader-db.sh
270 -D platforms=surfaceless
274 -D gallium-vdpau=false
275 -D gallium-xvmc=false
276 -D gallium-omx=disabled
279 -D gallium-nine=false
286 VULKAN_DRIVERS: freedreno
287 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
289 -D I-love-half-baked-turnips=true
304 BUILDTYPE: "debugoptimized"
305 VULKAN_DRIVERS: "freedreno,amd"
307 - .gitlab-ci/meson-build.sh
308 - .gitlab-ci/prepare-artifacts.sh
311 extends: .meson-build
317 GALLIUM_DRIVERS: "auto"
318 VULKAN_DRIVERS: intel,amd,freedreno
320 CXX: "ccache clang++-8"
327 - $ENV:VERSION = "2019\Community"
329 - cmd /C .gitlab-ci\meson-build.bat
332 extends: .scons-build
334 SCONS_TARGET: "swr=1"
335 SCONS_CHECK_COMMAND: "true"
339 extends: .scons-build
341 SCONS_TARGET: platform=windows machine=x86_64
342 SCONS_CHECK_COMMAND: "true"
345 extends: .meson-build
354 -D gallium-vdpau=false
355 -D gallium-xvmc=false
356 -D gallium-omx=disabled
359 -D gallium-nine=false
360 -D gallium-opencl=icd
362 - export GALLIUM_DRIVERS="r600,radeonsi"
363 - .gitlab-ci/meson-build.sh
364 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
365 - export GALLIUM_DRIVERS="i915,r600"
366 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
367 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
369 meson-clover-old-llvm:
379 -D platforms=drm,surfaceless
380 GALLIUM_DRIVERS: "i915,r600"
382 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
383 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
384 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
387 extends: .meson-build
394 -D platforms=x11,wayland,drm
398 -D gallium-vdpau=false
399 -D gallium-xvmc=false
400 -D gallium-omx=disabled
403 -D gallium-nine=false
404 -D gallium-opencl=disabled
405 -D b_sanitize=undefined
406 -D c_args=-fno-sanitize-recover=all
407 -D cpp_args=-fno-sanitize-recover=all
408 UBSAN_OPTIONS: "print_stacktrace=1"
409 VULKAN_DRIVERS: intel,amd,freedreno
412 -D vulkan-overlay-layer=true
414 # While the main point of this build is testing the i386 cross build,
415 # we also use this one to test some other options that are exclusive
416 # with meson-main's choices (classic swrast and osmesa)
418 extends: .meson-cross
421 VULKAN_DRIVERS: intel
422 DRI_DRIVERS: "swrast"
423 GALLIUM_DRIVERS: "iris"
425 -D vulkan-overlay-layer=true
429 meson-mingw32-x86_64:
430 extends: .meson-build
434 GALLIUM_DRIVERS: "swrast"
438 --cross-file=.gitlab-ci/x86_64-w64-mingw32
441 extends: .scons-build
443 SCONS_TARGET: "llvm=1"
444 SCONS_CHECK_COMMAND: "scons llvm=1 force_scons=1 check"
446 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
447 - LLVM_VERSION=8 .gitlab-ci/scons-build.sh
454 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
461 GIT_STRATEGY: none # testing doesn't build anything from source
463 image: "$CI_REGISTRY_IMAGE/debian/x86_test:$TAG"
465 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
467 - tar -xf artifacts/install.tar
468 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
471 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
484 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
488 LIBGL_ALWAYS_SOFTWARE: 1
491 - artifacts/piglit/run.sh
494 extends: .piglit-test
498 --process-isolation false
501 -x egl_ext_platform_device
502 -x glx-multithread-clearbuffer
503 -x glx-multithread-shader-compile
506 PIGLIT_PROFILES: quick_gl
509 extends: .piglit-test
512 PIGLIT_PROFILES: glslparser
515 extends: .piglit-test
519 -x spec@arb_arrays_of_arrays@execution@ubo
520 -x spec@arb_gpu_shader_int64@execution$$
521 -x spec@arb_separate_shader_objects@execution
522 -x spec@arb_separate_shader_objects@linker
523 -x spec@arb_shader_storage_buffer_object@execution
524 -x spec@glsl-1.50@execution@built-in-functions
525 PIGLIT_PROFILES: quick_shader
530 DEQP_SKIPS: deqp-default-skips.txt
532 - ./artifacts/deqp-runner.sh
538 # Don't use threads inside llvmpipe, we've already got all 4 cores
539 # busy with DEQP_PARALLEL.
541 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
542 LIBGL_ALWAYS_SOFTWARE: "true"
546 extends: test-llvmpipe-gles2
548 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
549 DEQP_SKIPS: deqp-softpipe-skips.txt
550 GALLIUM_DRIVER: "softpipe"
556 extends: test-softpipe-gles2
558 test-softpipe-gles31:
562 extends: test-softpipe-gles2
570 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
571 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
574 FLAKES_CHANNEL: "#freedreno-ci"
581 extends: arm64_a630_gles2
586 extends: arm64_a630_gles2
591 extends: arm64_a630_gles2
593 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
594 DEQP_SKIPS: deqp-default-skips.txt