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: f69acac60d5dde0410124fd5674764600821b7a6
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-20-2"
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-12"
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
174 CCACHE_COMPILERCHECK: "content"
175 # Use ccache transparently, and print stats before/after
177 - export PATH="/usr/lib/ccache:$PATH"
178 - export CCACHE_BASEDIR="$PWD"
179 - export CCACHE_DIR="$PWD/ccache"
180 - ccache --max-size=1500M
181 - ccache --zero-stats || true
182 - ccache --show-stats || true
184 - export CCACHE_DIR="$PWD/ccache"
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
310 # NOTE: Building SWR is 2x (yes two) times slower than all the other
311 # gallium drivers combined.
312 # Start this early so that it doesn't limit the total run time.
314 # We also stick the glvnd build here, since we want non-glvnd in
315 # meson-main for actual driver CI.
317 extends: .meson-build
324 -D gallium-vdpau=false
325 -D gallium-xvmc=false
326 -D gallium-omx=disabled
329 -D gallium-nine=false
330 -D gallium-opencl=disabled
331 GALLIUM_DRIVERS: "iris"
335 extends: .meson-build
341 GALLIUM_DRIVERS: "auto"
342 VULKAN_DRIVERS: intel,amd,freedreno
344 CXX: "ccache clang++-8"
351 - $ENV:VERSION = "2019\Community"
353 - cmd /C .gitlab-ci\meson-build.bat
356 extends: .scons-build
358 SCONS_TARGET: "swr=1"
359 SCONS_CHECK_COMMAND: "true"
363 extends: .scons-build
365 SCONS_TARGET: platform=windows machine=x86_64
366 SCONS_CHECK_COMMAND: "true"
369 extends: .meson-build
378 -D gallium-vdpau=false
379 -D gallium-xvmc=false
380 -D gallium-omx=disabled
383 -D gallium-nine=false
384 -D gallium-opencl=icd
386 - export GALLIUM_DRIVERS="r600,radeonsi"
387 - .gitlab-ci/meson-build.sh
388 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
389 - export GALLIUM_DRIVERS="i915,r600"
390 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
391 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
393 meson-clover-old-llvm:
403 -D platforms=drm,surfaceless
404 GALLIUM_DRIVERS: "i915,r600"
406 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
407 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
408 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
411 extends: .meson-build
418 -D platforms=x11,wayland,drm
422 -D gallium-vdpau=false
423 -D gallium-xvmc=false
424 -D gallium-omx=disabled
427 -D gallium-nine=false
428 -D gallium-opencl=disabled
429 -D b_sanitize=undefined
430 -D c_args=-fno-sanitize-recover=all
431 -D cpp_args=-fno-sanitize-recover=all
432 UBSAN_OPTIONS: "print_stacktrace=1"
433 VULKAN_DRIVERS: intel,amd,freedreno
436 -D vulkan-overlay-layer=true
438 # While the main point of this build is testing the i386 cross build,
439 # we also use this one to test some other options that are exclusive
440 # with meson-main's choices (classic swrast and osmesa)
442 extends: .meson-cross
445 VULKAN_DRIVERS: intel
446 DRI_DRIVERS: "swrast"
447 GALLIUM_DRIVERS: "iris"
449 -D vulkan-overlay-layer=true
453 meson-mingw32-x86_64:
454 extends: .meson-build
458 GALLIUM_DRIVERS: "swrast"
462 --cross-file=.gitlab-ci/x86_64-w64-mingw32
465 extends: .scons-build
467 SCONS_TARGET: "llvm=1"
468 SCONS_CHECK_COMMAND: "scons llvm=1 force_scons=1 check"
470 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
471 - LLVM_VERSION=6.0 .gitlab-ci/scons-build.sh
472 - LLVM_VERSION=7 .gitlab-ci/scons-build.sh
473 - LLVM_VERSION=8 .gitlab-ci/scons-build.sh
480 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
481 - LLVM_VERSION=4.0 .gitlab-ci/scons-build.sh
482 - LLVM_VERSION=5.0 .gitlab-ci/scons-build.sh
489 GIT_STRATEGY: none # testing doesn't build anything from source
491 image: "$CI_REGISTRY_IMAGE/debian/x86_test:$TAG"
493 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
495 - tar -xf artifacts/install.tar
496 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
499 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
512 junit: results/results.xml
514 LIBGL_ALWAYS_SOFTWARE: 1
517 - artifacts/piglit/run.sh
520 extends: .piglit-test
525 -x glx-multithread-clearbuffer
526 -x glx-multithread-shader-compile
529 PIGLIT_PROFILES: quick_gl
531 piglit-glslparser+quick_shader:
532 extends: .piglit-test
536 -x spec@arb_arrays_of_arrays@execution@ubo
537 -x spec@arb_gpu_shader_int64@execution$$
538 -x spec@arb_separate_shader_objects@execution
539 -x spec@arb_separate_shader_objects@linker
540 -x spec@arb_shader_storage_buffer_object@execution
541 -x spec@glsl-1.50@execution@built-in-functions
542 PIGLIT_PROFILES: "glslparser quick_shader"
543 PIGLIT_RESULTS: "glslparser+quick_shader"
548 DEQP_SKIPS: deqp-default-skips.txt
550 - ./artifacts/deqp-runner.sh
556 # Don't use threads inside llvmpipe, we've already got all 4 cores
557 # busy with DEQP_PARALLEL.
559 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
560 LIBGL_ALWAYS_SOFTWARE: "true"
564 extends: test-llvmpipe-gles2
566 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
567 DEQP_SKIPS: deqp-softpipe-skips.txt
568 GALLIUM_DRIVER: "softpipe"
574 extends: test-softpipe-gles2
576 test-softpipe-gles31:
580 extends: test-softpipe-gles2
588 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
589 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
597 extends: arm64_a630_gles2
604 extends: arm64_a630_gles2
610 extends: arm64_a630_gles2
612 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
613 DEQP_SKIPS: deqp-default-skips.txt