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
46 - runner_system_failure
47 # Cancel CI run if a newer commit is pushed to the same branch
55 # Watch out! Artifacts are relative to the build dir.
56 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
59 # Build the "normal" (non-LAVA) CI docker images.
61 # DEBIAN_TAG is the tag of the docker image used by later stage jobs. If the
62 # image doesn't exist yet, the container stage job generates it.
64 # In order to generate a new image, one should generally change the tag.
65 # While removing the image from the registry would also work, that's not
66 # recommended except for ephemeral images during development: Replacing
67 # an image after a significant amount of time might pull in newer
68 # versions of gcc/clang or other packages, which might break the build
69 # with older commits using the same tag.
71 # After merging a change resulting in generating a new image to the
72 # main repository, it's recommended to remove the image from the source
73 # repository's container registry, so that the image from the main
74 # repository's registry will be used there as well.
81 DEBIAN_VERSION: buster-slim
82 REPO_SUFFIX: $CI_JOB_NAME
83 DEBIAN_EXEC: 'bash .gitlab-ci/container/${CI_JOB_NAME}.sh'
84 # no need to pull the whole repo to build the container image
87 # Debian 10 based x86 build image
90 - .debian@container-ifnot-exists
93 DEBIAN_TAG: &x86_build "2019-11-13"
98 image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG"
102 # Debian 10 based x86 test image
106 DEBIAN_TAG: &x86_test "2019-11-22"
108 # Debian 9 based x86 build image (old LLVM)
112 DEBIAN_TAG: &x86_build_old "2019-09-18"
113 DEBIAN_VERSION: stretch-slim
118 image: "$CI_REGISTRY_IMAGE/debian/x86_build_old:$TAG"
122 # Debian 10 based ARM build image
125 - .debian@container-ifnot-exists@arm64v8
128 DEBIAN_TAG: &arm_build "2019-11-13"
133 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
137 # Debian 10 based ARM test image
141 DEBIAN_TAG: &arm_test "2019-11-22"
146 image: "$CI_REGISTRY_IMAGE/debian/arm_test:$TAG"
154 # Shared between windows and Linux
156 extends: .ci-run-policy
161 - _build/meson-logs/*.txt
168 extends: .build-common
170 CCACHE_COMPILERCHECK: "content"
171 CCACHE_COMPRESS: "true"
172 CCACHE_DIR: /cache/mesa/ccache
173 # Use ccache transparently, and print stats before/after
175 - export PATH="/usr/lib/ccache:$PATH"
176 - export CCACHE_BASEDIR="$PWD"
177 - ccache --show-stats
179 - ccache --show-stats
182 extends: .build-common
188 - subprojects/packagecache
195 - .gitlab-ci/meson-build.sh
204 - .gitlab-ci/scons-build.sh
216 -D platforms=x11,drm,surfaceless
219 GALLIUM_DRIVERS: "swrast"
221 BUILDTYPE: "debugoptimized"
223 - .gitlab-ci/meson-build.sh
224 - .gitlab-ci/prepare-artifacts.sh
227 extends: .meson-build
234 -D platforms=x11,wayland,drm,surfaceless
235 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
238 -D gallium-extra-hud=true
239 -D gallium-vdpau=true
241 -D gallium-omx=bellagio
245 -D gallium-opencl=disabled
246 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swr,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
252 - .gitlab-ci/meson-build.sh
253 - .gitlab-ci/run-shader-db.sh
264 -D platforms=surfaceless
268 -D gallium-vdpau=false
269 -D gallium-xvmc=false
270 -D gallium-omx=disabled
273 -D gallium-nine=false
280 VULKAN_DRIVERS: freedreno
281 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
283 -D I-love-half-baked-turnips=true
298 BUILDTYPE: "debugoptimized"
299 VULKAN_DRIVERS: "freedreno,amd"
301 - .gitlab-ci/meson-build.sh
302 - .gitlab-ci/prepare-artifacts.sh
305 extends: .meson-build
311 GALLIUM_DRIVERS: "auto"
312 VULKAN_DRIVERS: intel,amd,freedreno
314 CXX: "ccache clang++-8"
321 - $ENV:VERSION = "2019\Community"
323 - cmd /C .gitlab-ci\meson-build.bat
326 extends: .scons-build
328 SCONS_TARGET: "swr=1"
329 SCONS_CHECK_COMMAND: "true"
333 extends: .scons-build
335 SCONS_TARGET: platform=windows machine=x86_64
336 SCONS_CHECK_COMMAND: "true"
339 extends: .meson-build
348 -D gallium-vdpau=false
349 -D gallium-xvmc=false
350 -D gallium-omx=disabled
353 -D gallium-nine=false
354 -D gallium-opencl=icd
356 - export GALLIUM_DRIVERS="r600,radeonsi"
357 - .gitlab-ci/meson-build.sh
358 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
359 - export GALLIUM_DRIVERS="i915,r600"
360 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
361 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
363 meson-clover-old-llvm:
373 -D platforms=drm,surfaceless
374 GALLIUM_DRIVERS: "i915,r600"
376 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
377 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
378 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
381 extends: .meson-build
388 -D platforms=x11,wayland,drm
392 -D gallium-vdpau=false
393 -D gallium-xvmc=false
394 -D gallium-omx=disabled
397 -D gallium-nine=false
398 -D gallium-opencl=disabled
399 -D b_sanitize=undefined
400 -D c_args=-fno-sanitize-recover=all
401 -D cpp_args=-fno-sanitize-recover=all
402 UBSAN_OPTIONS: "print_stacktrace=1"
403 VULKAN_DRIVERS: intel,amd,freedreno
406 -D vulkan-overlay-layer=true
408 # While the main point of this build is testing the i386 cross build,
409 # we also use this one to test some other options that are exclusive
410 # with meson-main's choices (classic swrast and osmesa)
412 extends: .meson-cross
415 VULKAN_DRIVERS: intel
416 DRI_DRIVERS: "swrast"
417 GALLIUM_DRIVERS: "iris"
419 -D vulkan-overlay-layer=true
423 meson-mingw32-x86_64:
424 extends: .meson-build
428 GALLIUM_DRIVERS: "swrast"
432 --cross-file=.gitlab-ci/x86_64-w64-mingw32
435 extends: .scons-build
437 SCONS_TARGET: "llvm=1"
438 SCONS_CHECK_COMMAND: "scons llvm=1 force_scons=1 check"
440 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
441 - LLVM_VERSION=8 .gitlab-ci/scons-build.sh
448 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
455 GIT_STRATEGY: none # testing doesn't build anything from source
457 image: "$CI_REGISTRY_IMAGE/debian/x86_test:$TAG"
459 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
461 - tar -xf artifacts/install.tar
462 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
465 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
478 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
482 LIBGL_ALWAYS_SOFTWARE: 1
485 - artifacts/piglit/run.sh
488 extends: .piglit-test
492 --process-isolation false
494 -x glx-multithread-clearbuffer
495 -x glx-multithread-shader-compile
498 PIGLIT_PROFILES: quick_gl
501 extends: .piglit-test
504 PIGLIT_PROFILES: glslparser
507 extends: .piglit-test
511 -x spec@arb_arrays_of_arrays@execution@ubo
512 -x spec@arb_gpu_shader_int64@execution$$
513 -x spec@arb_separate_shader_objects@execution
514 -x spec@arb_separate_shader_objects@linker
515 -x spec@arb_shader_storage_buffer_object@execution
516 -x spec@glsl-1.50@execution@built-in-functions
517 PIGLIT_PROFILES: quick_shader
522 DEQP_SKIPS: deqp-default-skips.txt
524 - ./artifacts/deqp-runner.sh
530 # Don't use threads inside llvmpipe, we've already got all 4 cores
531 # busy with DEQP_PARALLEL.
533 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
534 LIBGL_ALWAYS_SOFTWARE: "true"
538 extends: test-llvmpipe-gles2
540 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
541 DEQP_SKIPS: deqp-softpipe-skips.txt
542 GALLIUM_DRIVER: "softpipe"
548 extends: test-softpipe-gles2
550 test-softpipe-gles31:
554 extends: test-softpipe-gles2
562 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
563 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
566 FLAKES_CHANNEL: "#freedreno-ci"
573 extends: arm64_a630_gles2
578 extends: arm64_a630_gles2
583 extends: arm64_a630_gles2
585 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
586 DEQP_SKIPS: deqp-default-skips.txt