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 for GL
112 DEBIAN_TAG: &x86_test-gl "2019-12-05"
114 # Debian 10 based x86 test image for VK
118 DEBIAN_TAG: &x86_test-vk "2019-11-22"
120 # Debian 9 based x86 build image (old LLVM)
124 DEBIAN_TAG: &x86_build_old "2019-09-18"
125 DEBIAN_VERSION: stretch-slim
130 image: "$CI_REGISTRY_IMAGE/debian/x86_build_old:$TAG"
134 # Debian 10 based ARM build image
137 - .debian@container-ifnot-exists@arm64v8
140 DEBIAN_TAG: &arm_build "2019-11-13"
145 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
149 # Debian 10 based ARM test image
153 DEBIAN_TAG: &arm_test "2019-11-22"
158 image: "$CI_REGISTRY_IMAGE/debian/arm_test:$TAG"
166 # Shared between windows and Linux
168 extends: .ci-run-policy
173 - _build/meson-logs/*.txt
180 extends: .build-common
182 CCACHE_COMPILERCHECK: "content"
183 CCACHE_COMPRESS: "true"
184 CCACHE_DIR: /cache/mesa/ccache
185 # Use ccache transparently, and print stats before/after
187 - export PATH="/usr/lib/ccache:$PATH"
188 - export CCACHE_BASEDIR="$PWD"
189 - ccache --show-stats
191 - ccache --show-stats
194 extends: .build-common
200 - subprojects/packagecache
207 - .gitlab-ci/meson-build.sh
216 - .gitlab-ci/scons-build.sh
228 -D platforms=x11,drm,surfaceless
231 GALLIUM_DRIVERS: "swrast"
233 BUILDTYPE: "debugoptimized"
235 - .gitlab-ci/meson-build.sh
236 - .gitlab-ci/prepare-artifacts.sh
239 extends: .meson-build
246 -D platforms=x11,wayland,drm,surfaceless
247 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
250 -D gallium-extra-hud=true
251 -D gallium-vdpau=true
253 -D gallium-omx=bellagio
257 -D gallium-opencl=disabled
258 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swr,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
264 - .gitlab-ci/meson-build.sh
265 - .gitlab-ci/run-shader-db.sh
276 -D platforms=surfaceless
280 -D gallium-vdpau=false
281 -D gallium-xvmc=false
282 -D gallium-omx=disabled
285 -D gallium-nine=false
292 VULKAN_DRIVERS: freedreno
293 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
295 -D I-love-half-baked-turnips=true
310 BUILDTYPE: "debugoptimized"
311 VULKAN_DRIVERS: "freedreno,amd"
313 - .gitlab-ci/meson-build.sh
314 - .gitlab-ci/prepare-artifacts.sh
317 extends: .meson-build
323 GALLIUM_DRIVERS: "auto"
324 VULKAN_DRIVERS: intel,amd,freedreno
326 CXX: "ccache clang++-8"
333 - $ENV:VERSION = "2019\Community"
335 - cmd /C .gitlab-ci\meson-build.bat
338 extends: .scons-build
340 SCONS_TARGET: "swr=1"
341 SCONS_CHECK_COMMAND: "true"
345 extends: .scons-build
347 SCONS_TARGET: platform=windows machine=x86_64
348 SCONS_CHECK_COMMAND: "true"
351 extends: .meson-build
360 -D gallium-vdpau=false
361 -D gallium-xvmc=false
362 -D gallium-omx=disabled
365 -D gallium-nine=false
366 -D gallium-opencl=icd
368 - export GALLIUM_DRIVERS="r600,radeonsi"
369 - .gitlab-ci/meson-build.sh
370 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
371 - export GALLIUM_DRIVERS="i915,r600"
372 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
373 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
375 meson-clover-old-llvm:
385 -D platforms=drm,surfaceless
386 GALLIUM_DRIVERS: "i915,r600"
388 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
389 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
390 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
393 extends: .meson-build
400 -D platforms=x11,wayland,drm
404 -D gallium-vdpau=false
405 -D gallium-xvmc=false
406 -D gallium-omx=disabled
409 -D gallium-nine=false
410 -D gallium-opencl=disabled
411 -D b_sanitize=undefined
412 -D c_args=-fno-sanitize-recover=all
413 -D cpp_args=-fno-sanitize-recover=all
414 UBSAN_OPTIONS: "print_stacktrace=1"
415 VULKAN_DRIVERS: intel,amd,freedreno
418 -D vulkan-overlay-layer=true
420 # While the main point of this build is testing the i386 cross build,
421 # we also use this one to test some other options that are exclusive
422 # with meson-main's choices (classic swrast and osmesa)
424 extends: .meson-cross
427 VULKAN_DRIVERS: intel
428 DRI_DRIVERS: "swrast"
429 GALLIUM_DRIVERS: "iris"
431 -D vulkan-overlay-layer=true
435 meson-mingw32-x86_64:
436 extends: .meson-build
440 GALLIUM_DRIVERS: "swrast"
444 --cross-file=.gitlab-ci/x86_64-w64-mingw32
447 extends: .scons-build
449 SCONS_TARGET: "llvm=1"
450 SCONS_CHECK_COMMAND: "scons llvm=1 force_scons=1 check"
452 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
453 - LLVM_VERSION=8 .gitlab-ci/scons-build.sh
460 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
467 GIT_STRATEGY: none # testing doesn't build anything from source
469 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
471 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
473 - tar -xf artifacts/install.tar
474 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
477 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
490 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
494 LIBGL_ALWAYS_SOFTWARE: 1
497 - artifacts/piglit/run.sh
500 extends: .piglit-test
504 --process-isolation false
507 -x egl_ext_platform_device
508 -x glx-multithread-clearbuffer
509 -x glx-multithread-shader-compile
512 PIGLIT_PROFILES: quick_gl
515 extends: .piglit-test
518 PIGLIT_PROFILES: glslparser
521 extends: .piglit-test
525 -x spec@arb_arrays_of_arrays@execution@ubo
526 -x spec@arb_gpu_shader_int64@execution$$
527 -x spec@arb_separate_shader_objects@execution
528 -x spec@arb_separate_shader_objects@linker
529 -x spec@arb_shader_storage_buffer_object@execution
530 -x spec@glsl-1.50@execution@built-in-functions
531 PIGLIT_PROFILES: quick_shader
536 DEQP_SKIPS: deqp-default-skips.txt
538 - ./artifacts/deqp-runner.sh
544 # Don't use threads inside llvmpipe, we've already got all 4 cores
545 # busy with DEQP_PARALLEL.
547 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
548 LIBGL_ALWAYS_SOFTWARE: "true"
549 extends: .deqp-test-gl
552 extends: test-llvmpipe-gles2
554 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
555 DEQP_SKIPS: deqp-softpipe-skips.txt
556 GALLIUM_DRIVER: "softpipe"
562 extends: test-softpipe-gles2
564 test-softpipe-gles31:
568 extends: test-softpipe-gles2
576 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
577 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
580 FLAKES_CHANNEL: "#freedreno-ci"
587 extends: arm64_a630_gles2
592 extends: arm64_a630_gles2
597 extends: arm64_a630_gles2
599 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
600 DEQP_SKIPS: deqp-default-skips.txt