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-15"
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,wayland,drm,surfaceless
223 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
226 -D gallium-extra-hud=true
227 -D gallium-vdpau=true
229 -D gallium-omx=bellagio
233 -D gallium-opencl=disabled
234 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
239 BUILDTYPE: "debugoptimized"
241 - .gitlab-ci/meson-build.sh
242 - .gitlab-ci/run-shader-db.sh
243 - .gitlab-ci/prepare-artifacts.sh
254 -D platforms=surfaceless
258 -D gallium-vdpau=false
259 -D gallium-xvmc=false
260 -D gallium-omx=disabled
263 -D gallium-nine=false
270 VULKAN_DRIVERS: freedreno
271 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
273 -D I-love-half-baked-turnips=true
288 BUILDTYPE: "debugoptimized"
289 VULKAN_DRIVERS: "freedreno,amd"
291 - .gitlab-ci/meson-build.sh
292 - .gitlab-ci/prepare-artifacts.sh
294 # NOTE: Building SWR is 2x (yes two) times slower than all the other
295 # gallium drivers combined.
296 # Start this early so that it doesn't limit the total run time.
298 # We also stick the glvnd build here, since we want non-glvnd in
299 # meson-main for actual driver CI.
301 extends: .meson-build
309 -D gallium-vdpau=false
310 -D gallium-xvmc=false
311 -D gallium-omx=disabled
314 -D gallium-nine=false
315 -D gallium-opencl=disabled
316 GALLIUM_DRIVERS: "swr,iris"
320 extends: .meson-build
324 GALLIUM_DRIVERS: "auto"
325 VULKAN_DRIVERS: intel,amd,freedreno
327 CXX: "ccache clang++-8"
334 - $ENV:VERSION = "2019\Community"
336 - cmd /C .gitlab-ci\meson-build.bat
339 extends: .scons-build
341 SCONS_TARGET: "swr=1"
342 SCONS_CHECK_COMMAND: "true"
346 extends: .scons-build
348 SCONS_TARGET: platform=windows machine=x86_64
349 SCONS_CHECK_COMMAND: "true"
352 extends: .meson-build
361 -D gallium-vdpau=false
362 -D gallium-xvmc=false
363 -D gallium-omx=disabled
366 -D gallium-nine=false
367 -D gallium-opencl=icd
369 - export GALLIUM_DRIVERS="r600,radeonsi"
370 - .gitlab-ci/meson-build.sh
371 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
372 - export GALLIUM_DRIVERS="i915,r600"
373 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
374 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
376 meson-clover-old-llvm:
386 -D platforms=drm,surfaceless
387 GALLIUM_DRIVERS: "i915,r600"
389 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
390 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
391 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
394 extends: .meson-build
401 -D platforms=x11,wayland,drm
405 -D gallium-vdpau=false
406 -D gallium-xvmc=false
407 -D gallium-omx=disabled
410 -D gallium-nine=false
411 -D gallium-opencl=disabled
412 -D b_sanitize=undefined
413 -D c_args=-fno-sanitize-recover=all
414 -D cpp_args=-fno-sanitize-recover=all
415 UBSAN_OPTIONS: "print_stacktrace=1"
416 VULKAN_DRIVERS: intel,amd,freedreno
419 -D vulkan-overlay-layer=true
421 # While the main point of this build is testing the i386 cross build,
422 # we also use this one to test some other options that are exclusive
423 # with meson-main's choices (classic swrast and osmesa)
425 extends: .meson-cross
428 VULKAN_DRIVERS: intel
429 DRI_DRIVERS: "swrast"
430 GALLIUM_DRIVERS: "iris"
432 -D vulkan-overlay-layer=true
436 meson-mingw32-x86_64:
437 extends: .meson-build
441 GALLIUM_DRIVERS: "swrast"
445 --cross-file=.gitlab-ci/x86_64-w64-mingw32
448 extends: .scons-build
450 SCONS_TARGET: "llvm=1"
451 SCONS_CHECK_COMMAND: "scons llvm=1 force_scons=1 check"
453 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
454 - LLVM_VERSION=6.0 .gitlab-ci/scons-build.sh
455 - LLVM_VERSION=7 .gitlab-ci/scons-build.sh
456 - LLVM_VERSION=8 .gitlab-ci/scons-build.sh
463 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
464 - LLVM_VERSION=4.0 .gitlab-ci/scons-build.sh
465 - LLVM_VERSION=5.0 .gitlab-ci/scons-build.sh
472 GIT_STRATEGY: none # testing doesn't build anything from source
474 image: "$CI_REGISTRY_IMAGE/debian/x86_test:$TAG"
476 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
478 - tar -xf artifacts/install.tar
479 - LD_LIBRARY_PATH=install/lib ldd install/lib/{*,dri/swrast_dri}.so
482 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
495 junit: results/results.xml
497 LIBGL_ALWAYS_SOFTWARE: 1
500 - artifacts/piglit/run.sh
503 extends: .piglit-test
508 -x glx-multithread-clearbuffer
509 -x glx-multithread-shader-compile
512 PIGLIT_PROFILES: quick_gl
514 piglit-glslparser+quick_shader:
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: "glslparser quick_shader"
526 PIGLIT_RESULTS: "glslparser+quick_shader"
531 DEQP_SKIPS: deqp-default-skips.txt
533 - ./artifacts/deqp-runner.sh
539 # Don't use threads inside llvmpipe, we've already got all 4 cores
540 # busy with DEQP_PARALLEL.
542 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
543 LIBGL_ALWAYS_SOFTWARE: "true"
547 extends: test-llvmpipe-gles2
549 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
550 DEQP_SKIPS: deqp-softpipe-skips.txt
551 GALLIUM_DRIVER: "softpipe"
557 extends: test-softpipe-gles2
559 test-softpipe-gles31:
563 extends: test-softpipe-gles2
571 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
572 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
580 extends: arm64_a630_gles2
587 extends: arm64_a630_gles2
593 extends: arm64_a630_gles2
595 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
596 DEQP_SKIPS: deqp-default-skips.txt