blob: 464c26d7d1b1ba49803e27c9ab5c91da1e498f7e [file] [log] [blame]
Eric Engestrom329f5cd2019-01-20 11:21:45 +00001variables:
Benjamin Tissoires7f8a9a12019-04-02 09:24:00 +02002 UPSTREAM_REPO: mesa/mesa
Benjamin Tissoires7f8a9a12019-04-02 09:24:00 +02003
4include:
5 - project: 'wayland/ci-templates'
Michel Dänzer67027782019-11-07 20:25:10 +01006 # Must be the same as in .gitlab-ci/lava-gitlab-ci.yml
Michel Dänzer0c88d592019-12-03 12:38:59 +01007 ref: 0a9bdd33a98f05af6761ab118b5074952242aab0
Michel Dänzerd00b1c42019-04-02 16:56:54 +02008 file: '/templates/debian.yml'
Dylan Baker19851c92019-10-23 14:36:19 -07009 - local: '.gitlab-ci/lava-gitlab-ci.yml'
Tomeu Vizoso7b01f722019-09-18 16:03:36 +020010
Eric Engestrom329f5cd2019-01-20 11:21:45 +000011stages:
Eric Engestrom81b98e92019-10-14 23:04:14 +010012 - container
Eric Engestroma0f8a072019-09-11 18:51:46 +010013 - build
Eric Anholt46daaca2019-06-28 16:35:32 -070014 - test
Eric Engestrom329f5cd2019-01-20 11:21:45 +000015
16
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000017# When to automatically run the CI
Michel Dänzere426f402019-09-06 17:35:52 +020018.ci-run-policy:
Michel Dänzer41797a12019-09-26 09:27:27 +020019 rules:
20 - when: on_success
Michel Dänzer6140ed32019-03-26 18:39:41 +010021 retry:
22 max: 2
23 when:
24 - runner_system_failure
Eric Engestromac78ca42019-11-12 23:42:21 +000025 # Cancel CI run if a newer commit is pushed to the same branch
26 interruptible: true
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000027
Michel Dänzere426f402019-09-06 17:35:52 +020028.ci-deqp-artifacts:
Eric Anholt46daaca2019-06-28 16:35:32 -070029 artifacts:
30 when: always
31 untracked: false
32 paths:
33 # Watch out! Artifacts are relative to the build dir.
34 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
35 - artifacts
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000036
Tomeu Vizoso22d97642019-12-17 11:50:14 +010037# Build the CI docker images.
Michel Dänzerc6c76522019-11-11 18:13:28 +010038#
39# DEBIAN_TAG is the tag of the docker image used by later stage jobs. If the
40# image doesn't exist yet, the container stage job generates it.
41#
42# In order to generate a new image, one should generally change the tag.
43# While removing the image from the registry would also work, that's not
44# recommended except for ephemeral images during development: Replacing
45# an image after a significant amount of time might pull in newer
46# versions of gcc/clang or other packages, which might break the build
47# with older commits using the same tag.
48#
49# After merging a change resulting in generating a new image to the
50# main repository, it's recommended to remove the image from the source
51# repository's container registry, so that the image from the main
52# repository's registry will be used there as well.
Michel Dänzer8a199922019-09-06 17:04:47 +020053
Eric Engestrom81b98e92019-10-14 23:04:14 +010054.container:
55 stage: container
56 extends:
57 - .ci-run-policy
Michel Dänzer41797a12019-09-26 09:27:27 +020058 rules:
59 # Run pipeline by default for merge requests changing files affecting it
60 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
61 changes:
62 - VERSION
63 - bin/**/*
64 # GitLab CI
65 - .gitlab-ci.yml
66 - .gitlab-ci/**/*
67 # Meson
68 - meson*
69 - build-support/**/*
70 - subprojects/**/*
71 # SCons
72 - SConstruct
73 - scons/**/*
74 - common.py
75 # Source code
76 - include/**/*
77 - src/**/*
78 when: on_success
79 # Always run pipeline by default in the main project
80 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
81 when: on_success
82 # Otherwise, allow triggering jobs manually
83 - when: manual
Eric Engestrom81b98e92019-10-14 23:04:14 +010084 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +010085 DEBIAN_VERSION: buster-slim
86 REPO_SUFFIX: $CI_JOB_NAME
Michel Dänzer506e9d52019-11-07 20:08:03 +010087 DEBIAN_EXEC: 'bash .gitlab-ci/container/${CI_JOB_NAME}.sh'
Eric Engestrom81b98e92019-10-14 23:04:14 +010088 # no need to pull the whole repo to build the container image
89 GIT_STRATEGY: none
90
Michel Dänzerc6c76522019-11-11 18:13:28 +010091# Debian 10 based x86 build image
Michel Dänzer3a48f452019-11-13 17:43:41 +010092x86_build:
Michel Dänzere426f402019-09-06 17:35:52 +020093 extends:
94 - .debian@container-ifnot-exists
Eric Engestrom81b98e92019-10-14 23:04:14 +010095 - .container
Michel Dänzerc6c76522019-11-11 18:13:28 +010096 variables:
Tomeu Vizoso22d97642019-12-17 11:50:14 +010097 DEBIAN_TAG: &x86_build "2020-01-14"
Eric Engestrom46d23c02019-01-20 11:26:53 +000098
Michel Dänzer3a48f452019-11-13 17:43:41 +010099.use-x86_build:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100100 variables:
101 TAG: *x86_build
102 image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG"
Michel Dänzereb86cba2019-10-10 15:27:17 +0200103 needs:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100104 - x86_build
Michel Dänzereb86cba2019-10-10 15:27:17 +0200105
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100106# Debian 10 based x86 test image for GL
107x86_test-gl:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100108 extends: x86_build
Michel Dänzeraebf43d2019-11-05 18:52:24 +0100109 variables:
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100110 DEBIAN_TAG: &x86_test-gl "2020-01-14"
Michel Dänzeraebf43d2019-11-05 18:52:24 +0100111
Samuel Pitoisetf2a594f2019-11-18 09:23:18 +0100112# Debian 10 based x86 test image for VK
113x86_test-vk:
114 extends: x86_build
115 variables:
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100116 DEBIAN_TAG: &x86_test-vk "2020-01-14"
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100117 # Can only be triggered manually on personal branches because RADV is the only
118 # driver that does Vulkan testing at the moment.
119 rules:
120 # Never build the test image for VK by default in the main project.
121 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
122 when: never
123 # Never build the test image for VK by default for merge requests.
124 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
125 when: never
126 # Otherwise, allow building it manually for personal branches.
127 - when: manual
128
Samuel Pitoisetf2a594f2019-11-18 09:23:18 +0100129
Michel Dänzerc6c76522019-11-11 18:13:28 +0100130# Debian 9 based x86 build image (old LLVM)
Michel Dänzer3a48f452019-11-13 17:43:41 +0100131x86_build_old:
132 extends: x86_build
Michel Dänzer8a199922019-09-06 17:04:47 +0200133 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100134 DEBIAN_TAG: &x86_build_old "2019-09-18"
135 DEBIAN_VERSION: stretch-slim
Michel Dänzer8a199922019-09-06 17:04:47 +0200136
Michel Dänzer3a48f452019-11-13 17:43:41 +0100137.use-x86_build_old:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100138 variables:
139 TAG: *x86_build_old
140 image: "$CI_REGISTRY_IMAGE/debian/x86_build_old:$TAG"
Michel Dänzer88319f22019-09-18 16:17:01 +0200141 needs:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100142 - x86_build_old
Michel Dänzer88319f22019-09-18 16:17:01 +0200143
Michel Dänzerc6c76522019-11-11 18:13:28 +0100144# Debian 10 based ARM build image
Michel Dänzer3a48f452019-11-13 17:43:41 +0100145arm_build:
Michel Dänzere426f402019-09-06 17:35:52 +0200146 extends:
147 - .debian@container-ifnot-exists@arm64v8
Eric Engestrom81b98e92019-10-14 23:04:14 +0100148 - .container
Eric Anholt6f0dc082019-06-28 16:35:32 -0700149 variables:
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100150 DEBIAN_TAG: &arm_build "2020-01-14"
Eric Engestrom46d23c02019-01-20 11:26:53 +0000151
Michel Dänzerc6c76522019-11-11 18:13:28 +0100152.use-arm_build:
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100153 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100154 TAG: *arm_build
155 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
156 needs:
157 - arm_build
158
159# Debian 10 based ARM test image
160arm_test:
161 extends: arm_build
162 variables:
Tomeu Vizosod62dd8b2019-12-13 10:20:23 +0100163 DEBIAN_TAG: &arm_test "2019-12-18"
Michel Dänzerc6c76522019-11-11 18:13:28 +0100164
165.use-arm_test:
166 variables:
167 TAG: *arm_test
168 image: "$CI_REGISTRY_IMAGE/debian/arm_test:$TAG"
169 needs:
170 - meson-arm64
171 - arm_test
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100172
Eric Engestrom81b98e92019-10-14 23:04:14 +0100173
Eric Engestrom46d23c02019-01-20 11:26:53 +0000174# BUILD
175
Dylan Baker06e46472019-10-23 14:21:31 -0700176# Shared between windows and Linux
177.build-common:
Eric Engestromaba78c22019-10-14 23:52:58 +0100178 extends: .ci-run-policy
Eric Engestroma0f8a072019-09-11 18:51:46 +0100179 stage: build
Eric Engestrom46d23c02019-01-20 11:26:53 +0000180 artifacts:
Eric Anholtdd3d0b22019-07-24 09:27:48 -0700181 when: always
182 paths:
183 - _build/meson-logs/*.txt
184 # scons:
Michel Dänzer5229f272019-07-26 12:20:41 +0200185 - build/*/config.log
Eric Anholtf60defa2019-04-10 15:59:12 -0700186 - shader-db
Dylan Baker06e46472019-10-23 14:21:31 -0700187
188# Just Linux
189.build-linux:
190 extends: .build-common
Michel Dänzere9de19f2019-04-04 18:01:27 +0200191 variables:
192 CCACHE_COMPILERCHECK: "content"
Michel Dänzer32618ee2019-11-20 09:11:35 +0100193 CCACHE_COMPRESS: "true"
194 CCACHE_DIR: /cache/mesa/ccache
Eric Engestrom23b485c2019-02-12 16:59:27 +0000195 # Use ccache transparently, and print stats before/after
196 before_script:
197 - export PATH="/usr/lib/ccache:$PATH"
198 - export CCACHE_BASEDIR="$PWD"
Michel Dänzer32618ee2019-11-20 09:11:35 +0100199 - ccache --show-stats
Eric Engestrom23b485c2019-02-12 16:59:27 +0000200 after_script:
Eric Engestrom23b485c2019-02-12 16:59:27 +0000201 - ccache --show-stats
Eric Engestrom46d23c02019-01-20 11:26:53 +0000202
Dylan Baker19851c92019-10-23 14:36:19 -0700203.build-windows:
204 extends: .build-common
205 tags:
206 - mesa-windows
207 cache:
208 key: ${CI_JOB_NAME}
209 paths:
210 - subprojects/packagecache
211
Eric Engestrom46d23c02019-01-20 11:26:53 +0000212.meson-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100213 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700214 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100215 - .use-x86_build
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100216 variables:
217 LLVM_VERSION: 9
Eric Engestrom23b485c2019-02-12 16:59:27 +0000218 script:
Michel Dänzercc2b3a92019-05-03 10:49:43 +0200219 - .gitlab-ci/meson-build.sh
Eric Engestrom46d23c02019-01-20 11:26:53 +0000220
Eric Engestrom06b245b2019-01-23 15:46:10 +0000221.scons-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100222 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700223 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100224 - .use-x86_build
Eric Engestrom06b245b2019-01-23 15:46:10 +0000225 variables:
Eric Anholtcb655d22019-11-06 11:14:14 -0800226 SCONSFLAGS: "-j4"
Eric Engestrom06b245b2019-01-23 15:46:10 +0000227 script:
Michel Dänzer0374aac2019-09-12 11:34:43 +0200228 - .gitlab-ci/scons-build.sh
Eric Engestrom06b245b2019-01-23 15:46:10 +0000229
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100230meson-testing:
Michel Dänzere426f402019-09-06 17:35:52 +0200231 extends:
232 - .meson-build
233 - .ci-deqp-artifacts
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200234 variables:
235 UNWIND: "true"
236 DRI_LOADERS: >
237 -D glx=dri
238 -D gbm=true
239 -D egl=true
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100240 -D platforms=x11,drm,surfaceless
241 GALLIUM_ST: >
242 -D dri3=true
243 GALLIUM_DRIVERS: "swrast"
Samuel Pitoiset40c6a562019-11-19 14:46:53 +0100244 VULKAN_DRIVERS: amd
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100245 BUILDTYPE: "debugoptimized"
246 script:
247 - .gitlab-ci/meson-build.sh
248 - .gitlab-ci/prepare-artifacts.sh
249
250meson-main:
251 extends: .meson-build
252 variables:
253 UNWIND: "true"
254 DRI_LOADERS: >
255 -D glx=dri
256 -D gbm=true
257 -D egl=true
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200258 -D platforms=x11,wayland,drm,surfaceless
259 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
260 GALLIUM_ST: >
261 -D dri3=true
262 -D gallium-extra-hud=true
263 -D gallium-vdpau=true
264 -D gallium-xvmc=true
265 -D gallium-omx=bellagio
266 -D gallium-va=true
267 -D gallium-xa=true
268 -D gallium-nine=true
269 -D gallium-opencl=disabled
Samuel Pitoisete6d26d72019-11-19 14:36:02 +0100270 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swr,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200271 EXTRA_OPTION: >
272 -D osmesa=gallium
273 -D tools=all
Michel Dänzer59fcb012019-10-23 18:42:53 +0200274 script:
275 - .gitlab-ci/meson-build.sh
276 - .gitlab-ci/run-shader-db.sh
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200277
Michel Dänzere5364462019-09-13 11:59:43 +0200278.meson-cross:
279 extends:
280 - .meson-build
Michel Dänzere5364462019-09-13 11:59:43 +0200281 variables:
282 UNWIND: "false"
283 DRI_LOADERS: >
284 -D glx=disabled
285 -D gbm=false
286 -D egl=true
287 -D platforms=surfaceless
288 -D osmesa=none
289 GALLIUM_ST: >
290 -D dri3=false
291 -D gallium-vdpau=false
292 -D gallium-xvmc=false
293 -D gallium-omx=disabled
294 -D gallium-va=false
295 -D gallium-xa=false
296 -D gallium-nine=false
Michel Dänzere5364462019-09-13 11:59:43 +0200297
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200298.meson-arm:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100299 extends:
300 - .meson-cross
301 - .use-arm_build
Michel Dänzere5364462019-09-13 11:59:43 +0200302 variables:
Michel Dänzere5364462019-09-13 11:59:43 +0200303 VULKAN_DRIVERS: freedreno
Michel Dänzer793f6b32019-10-08 19:48:41 +0200304 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100305 BUILDTYPE: "debugoptimized"
Michel Dänzere5364462019-09-13 11:59:43 +0200306 EXTRA_OPTION: >
Michel Dänzere5364462019-09-13 11:59:43 +0200307 -D I-love-half-baked-turnips=true
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200308 tags:
309 - aarch64
310
311meson-armhf:
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100312 extends:
313 - .meson-arm
314 - .ci-deqp-artifacts
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200315 variables:
316 CROSS: armhf
Michel Dänzer793f6b32019-10-08 19:48:41 +0200317 LLVM_VERSION: "7"
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100318 script:
319 - .gitlab-ci/meson-build.sh
320 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzere5364462019-09-13 11:59:43 +0200321
322meson-arm64:
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200323 extends:
324 - .meson-arm
325 - .ci-deqp-artifacts
Michel Dänzere5364462019-09-13 11:59:43 +0200326 variables:
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100327 LLVM_VERSION: "8"
Samuel Pitoiset47ba2272019-11-12 14:25:16 +0100328 VULKAN_DRIVERS: "freedreno,amd"
Michel Dänzer59fcb012019-10-23 18:42:53 +0200329 script:
330 - .gitlab-ci/meson-build.sh
331 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzere5364462019-09-13 11:59:43 +0200332
Michel Dänzera2cce702019-03-20 15:58:31 +0100333meson-clang:
334 extends: .meson-build
335 variables:
336 UNWIND: "true"
Samuel Pitoiset73621762019-11-19 14:37:32 +0100337 DRI_LOADERS: >
338 -D glvnd=true
Michel Dänzera2cce702019-03-20 15:58:31 +0100339 DRI_DRIVERS: "auto"
340 GALLIUM_DRIVERS: "auto"
Eric Engestrom47f419d2019-05-01 12:09:26 +0100341 VULKAN_DRIVERS: intel,amd,freedreno
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100342 CC: "ccache clang-9"
343 CXX: "ccache clang++-9"
Michel Dänzera2cce702019-03-20 15:58:31 +0100344
Michel Dänzeraaf1b092019-10-30 09:38:20 +0100345.meson-windows:
Dylan Baker19851c92019-10-23 14:36:19 -0700346 extends:
347 - .build-windows
348 before_script:
349 - $ENV:ARCH = "x86"
350 - $ENV:VERSION = "2019\Community"
351 script:
352 - cmd /C .gitlab-ci\meson-build.bat
353
Michel Dänzer82b30092019-05-03 18:19:25 +0200354scons-swr:
355 extends: .scons-build
Eric Engestrom46d23c02019-01-20 11:26:53 +0000356 variables:
Michel Dänzer82b30092019-05-03 18:19:25 +0200357 SCONS_TARGET: "swr=1"
358 SCONS_CHECK_COMMAND: "true"
359 LLVM_VERSION: "6.0"
360
361scons-win64:
362 extends: .scons-build
363 variables:
364 SCONS_TARGET: platform=windows machine=x86_64
365 SCONS_CHECK_COMMAND: "true"
Eric Engestrom89a74672019-01-21 09:42:37 +0000366
Michel Dänzer68977152019-05-03 10:58:48 +0200367meson-clover:
Eric Engestromb5a70af2019-01-28 18:05:22 +0000368 extends: .meson-build
369 variables:
370 UNWIND: "true"
371 DRI_LOADERS: >
372 -D glx=disabled
373 -D egl=false
374 -D gbm=false
375 GALLIUM_ST: >
376 -D dri3=false
377 -D gallium-vdpau=false
378 -D gallium-xvmc=false
379 -D gallium-omx=disabled
380 -D gallium-va=false
381 -D gallium-xa=false
382 -D gallium-nine=false
383 -D gallium-opencl=icd
Michel Dänzer68977152019-05-03 10:58:48 +0200384 script:
385 - export GALLIUM_DRIVERS="r600,radeonsi"
386 - .gitlab-ci/meson-build.sh
Samuel Pitoiset7d1c0912019-08-21 11:45:25 +0200387 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
Michel Dänzer68977152019-05-03 10:58:48 +0200388 - export GALLIUM_DRIVERS="i915,r600"
Michel Dänzer8a199922019-09-06 17:04:47 +0200389 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
390 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
391
392meson-clover-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200393 extends:
394 - meson-clover
Michel Dänzer3a48f452019-11-13 17:43:41 +0100395 - .use-x86_build_old
Michel Dänzer8a199922019-09-06 17:04:47 +0200396 variables:
397 UNWIND: "false"
398 DRI_LOADERS: >
399 -D glx=disabled
400 -D egl=false
401 -D gbm=false
402 -D platforms=drm,surfaceless
403 GALLIUM_DRIVERS: "i915,r600"
404 script:
Michel Dänzer68977152019-05-03 10:58:48 +0200405 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
406 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
407 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
Eric Engestrom8dab7072019-01-28 18:09:24 +0000408
Michel Dänzer82b30092019-05-03 18:19:25 +0200409meson-vulkan:
410 extends: .meson-build
411 variables:
412 UNWIND: "false"
413 DRI_LOADERS: >
414 -D glx=disabled
415 -D gbm=false
416 -D egl=false
417 -D platforms=x11,wayland,drm
418 -D osmesa=none
419 GALLIUM_ST: >
420 -D dri3=true
421 -D gallium-vdpau=false
422 -D gallium-xvmc=false
423 -D gallium-omx=disabled
424 -D gallium-va=false
425 -D gallium-xa=false
426 -D gallium-nine=false
427 -D gallium-opencl=disabled
Michel Dänzer75cc8c02019-09-25 12:56:58 +0200428 -D b_sanitize=undefined
429 -D c_args=-fno-sanitize-recover=all
430 -D cpp_args=-fno-sanitize-recover=all
431 UBSAN_OPTIONS: "print_stacktrace=1"
Michel Dänzer82b30092019-05-03 18:19:25 +0200432 VULKAN_DRIVERS: intel,amd,freedreno
Eric Engestrom5f8d29a2019-05-08 18:17:23 +0200433 EXTRA_OPTION: >
434 -D vulkan-overlay-layer=true
Michel Dänzer82b30092019-05-03 18:19:25 +0200435
Eric Anholt030aa6e2019-08-07 14:05:51 -0700436# While the main point of this build is testing the i386 cross build,
437# we also use this one to test some other options that are exclusive
438# with meson-main's choices (classic swrast and osmesa)
Eric Anholt11aa32a2019-07-11 12:58:28 -0700439meson-i386:
440 extends: .meson-cross
441 variables:
Eric Engestrom1c82fa02019-08-09 23:46:50 +0100442 CROSS: i386
Eric Anholt11aa32a2019-07-11 12:58:28 -0700443 VULKAN_DRIVERS: intel
Eric Anholt030aa6e2019-08-07 14:05:51 -0700444 DRI_DRIVERS: "swrast"
445 GALLIUM_DRIVERS: "iris"
Eric Anholt11aa32a2019-07-11 12:58:28 -0700446 EXTRA_OPTION: >
Eric Anholt11aa32a2019-07-11 12:58:28 -0700447 -D vulkan-overlay-layer=true
Eric Anholt030aa6e2019-08-07 14:05:51 -0700448 -D llvm=false
449 -D osmesa=classic
Eric Anholt11aa32a2019-07-11 12:58:28 -0700450
Dylan Baker449f8312019-10-11 09:04:14 -0700451meson-mingw32-x86_64:
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700452 extends: .meson-build
453 variables:
454 UNWIND: "false"
455 DRI_DRIVERS: ""
456 GALLIUM_DRIVERS: "swrast"
457 EXTRA_OPTION: >
458 -Dllvm=false
459 -Dosmesa=gallium
460 --cross-file=.gitlab-ci/x86_64-w64-mingw32
461
Michel Dänzer88e57962019-09-12 11:45:13 +0200462scons:
Eric Engestromd4c6d4d2019-01-28 16:30:36 +0000463 extends: .scons-build
464 variables:
465 SCONS_TARGET: "llvm=1"
Dylan Baker54053bc2019-10-21 09:29:23 -0700466 SCONS_CHECK_COMMAND: "scons llvm=1 force_scons=1 check"
Michel Dänzerbaa50242019-09-12 11:38:06 +0200467 script:
Dylan Baker54053bc2019-10-21 09:29:23 -0700468 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100469 - LLVM_VERSION=9 .gitlab-ci/scons-build.sh
Michel Dänzer8a199922019-09-06 17:04:47 +0200470
471scons-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200472 extends:
473 - scons
Michel Dänzer3a48f452019-11-13 17:43:41 +0100474 - .use-x86_build_old
Michel Dänzerbaa50242019-09-12 11:38:06 +0200475 script:
476 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
Eric Anholt46daaca2019-06-28 16:35:32 -0700477
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100478.test:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200479 extends:
480 - .ci-run-policy
Eric Anholt46daaca2019-06-28 16:35:32 -0700481 stage: test
Eric Anholt46daaca2019-06-28 16:35:32 -0700482 variables:
483 GIT_STRATEGY: none # testing doesn't build anything from source
Michel Dänzer576f7b62019-10-22 17:16:52 +0200484 before_script:
Eric Anholt46daaca2019-06-28 16:35:32 -0700485 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
486 - rm -rf install
487 - tar -xf artifacts/install.tar
Samuel Pitoiseteab328f2019-11-14 14:00:46 +0100488 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
Eric Anholt46daaca2019-06-28 16:35:32 -0700489 artifacts:
Rob Clarkfdaf7772019-11-17 11:33:01 -0800490 when: always
Eric Anholt46daaca2019-06-28 16:35:32 -0700491 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
492 paths:
493 - results/
Michel Dänzercccb68b2019-09-13 11:13:12 +0200494 dependencies:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100495 - meson-testing
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100496
497.test-gl:
498 extends:
499 - .test
500 variables:
501 TAG: *x86_test-gl
502 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
Michel Dänzerc5aa2712019-10-22 11:19:17 +0200503 needs:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100504 - meson-testing
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100505 - x86_test-gl
Eric Anholt46daaca2019-06-28 16:35:32 -0700506
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100507.test-vk:
508 extends:
509 - .test
510 variables:
511 TAG: *x86_test-vk
512 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
513 needs:
514 - meson-testing
515 - x86_test-vk
516
Michel Dänzer576f7b62019-10-22 17:16:52 +0200517.piglit-test:
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100518 extends: .test-gl
Michel Dänzera3b3d3b2019-11-25 18:42:10 +0100519 artifacts:
520 when: on_failure
521 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
522 paths:
523 - summary/
Michel Dänzer576f7b62019-10-22 17:16:52 +0200524 variables:
525 LIBGL_ALWAYS_SOFTWARE: 1
526 PIGLIT_NO_WINDOW: 1
527 script:
528 - artifacts/piglit/run.sh
529
530piglit-quick_gl:
531 extends: .piglit-test
532 variables:
533 LP_NUM_THREADS: 0
Dave Airliee6b2af52019-12-03 15:23:45 +1000534 NIR_VALIDATE: 0
Michel Dänzer576f7b62019-10-22 17:16:52 +0200535 PIGLIT_OPTIONS: >
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100536 --process-isolation false
Michel Dänzer576f7b62019-10-22 17:16:52 +0200537 -x arb_gpu_shader5
Eric Anholt3097efe2019-12-04 16:13:38 -0800538 -x egl_ext_device_
539 -x egl_ext_platform_device
Michel Dänzer576f7b62019-10-22 17:16:52 +0200540 -x glx-multithread-clearbuffer
541 -x glx-multithread-shader-compile
542 -x max-texture-size
543 -x maxsize
544 PIGLIT_PROFILES: quick_gl
545
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100546piglit-glslparser:
547 extends: .piglit-test
548 variables:
549 LP_NUM_THREADS: 0
Dave Airliee6b2af52019-12-03 15:23:45 +1000550 NIR_VALIDATE: 0
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100551 PIGLIT_PROFILES: glslparser
552
553piglit-quick_shader:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200554 extends: .piglit-test
555 variables:
556 LP_NUM_THREADS: 1
Dave Airliee6b2af52019-12-03 15:23:45 +1000557 NIR_VALIDATE: 0
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100558 PIGLIT_PROFILES: quick_shader
Michel Dänzer576f7b62019-10-22 17:16:52 +0200559
Samuel Pitoiset16b999b2019-11-19 08:39:00 +0100560.deqp-test:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200561 variables:
562 DEQP_SKIPS: deqp-default-skips.txt
563 script:
564 - ./artifacts/deqp-runner.sh
565
Samuel Pitoiset16b999b2019-11-19 08:39:00 +0100566.deqp-test-gl:
567 extends:
568 - .test-gl
569 - .deqp-test
570
571.deqp-test-vk:
572 extends:
573 - .test-vk
574 - .deqp-test
575 variables:
576 DEQP_VER: vk
577
Eric Anholt46daaca2019-06-28 16:35:32 -0700578test-llvmpipe-gles2:
Eric Anholt46daaca2019-06-28 16:35:32 -0700579 variables:
580 DEQP_VER: gles2
Eric Anholtf08c8102019-11-04 10:54:41 -0800581 DEQP_PARALLEL: 4
Dave Airliee6b2af52019-12-03 15:23:45 +1000582 NIR_VALIDATE: 0
Eric Anholtf08c8102019-11-04 10:54:41 -0800583 # Don't use threads inside llvmpipe, we've already got all 4 cores
584 # busy with DEQP_PARALLEL.
585 LP_NUM_THREADS: 0
Eric Anholt46daaca2019-06-28 16:35:32 -0700586 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
587 LIBGL_ALWAYS_SOFTWARE: "true"
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100588 extends: .deqp-test-gl
Eric Anholt553cd822019-08-09 10:32:40 -0700589
590test-softpipe-gles2:
Michel Dänzer128581d2019-09-11 18:55:43 +0200591 extends: test-llvmpipe-gles2
Eric Anholt553cd822019-08-09 10:32:40 -0700592 variables:
Eric Anholt553cd822019-08-09 10:32:40 -0700593 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
Eric Anholtf08c8102019-11-04 10:54:41 -0800594 DEQP_SKIPS: deqp-softpipe-skips.txt
Eric Anholt553cd822019-08-09 10:32:40 -0700595 GALLIUM_DRIVER: "softpipe"
Eric Anholt553cd822019-08-09 10:32:40 -0700596
Eric Anholt52843ec2019-11-05 10:31:29 -0800597test-softpipe-gles3:
598 parallel: 2
Eric Anholt553cd822019-08-09 10:32:40 -0700599 variables:
600 DEQP_VER: gles3
Eric Anholt52843ec2019-11-05 10:31:29 -0800601 extends: test-softpipe-gles2
602
603test-softpipe-gles31:
604 parallel: 4
605 variables:
606 DEQP_VER: gles31
607 extends: test-softpipe-gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700608
Michel Dänzer128581d2019-09-11 18:55:43 +0200609arm64_a630_gles2:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100610 extends:
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100611 - .deqp-test-gl
Michel Dänzerc6c76522019-11-11 18:13:28 +0100612 - .use-arm_test
Eric Anholt6f0dc082019-06-28 16:35:32 -0700613 variables:
614 DEQP_VER: gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700615 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
616 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
617 NIR_VALIDATE: 0
Eric Anholtdd76a6f2019-11-21 05:12:58 -0800618 DEQP_PARALLEL: 4
Rob Clarkfdaf7772019-11-17 11:33:01 -0800619 FLAKES_CHANNEL: "#freedreno-ci"
Eric Anholt6f0dc082019-06-28 16:35:32 -0700620 tags:
621 - mesa-cheza
622 dependencies:
623 - meson-arm64
Eric Anholt6f0dc082019-06-28 16:35:32 -0700624
Michel Dänzer128581d2019-09-11 18:55:43 +0200625arm64_a630_gles31:
626 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700627 variables:
Michel Dänzer128581d2019-09-11 18:55:43 +0200628 DEQP_VER: gles31
Eric Anholt6f0dc082019-06-28 16:35:32 -0700629
630arm64_a630_gles3:
Michel Dänzer128581d2019-09-11 18:55:43 +0200631 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700632 variables:
633 DEQP_VER: gles3
634
Michel Dänzer128581d2019-09-11 18:55:43 +0200635arm64_a306_gles2:
Michel Dänzer128581d2019-09-11 18:55:43 +0200636 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700637 variables:
Michel Dänzer128581d2019-09-11 18:55:43 +0200638 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
639 DEQP_SKIPS: deqp-default-skips.txt
Michel Dänzer128581d2019-09-11 18:55:43 +0200640 tags:
641 - db410c
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100642
643# RADV CI
644.test-radv:
645 variables:
646 VK_DRIVER: radeon
Samuel Pitoisetff2e11b2019-12-06 17:07:35 +0100647 RADV_DEBUG: checkir
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100648 # Can only be triggered manually on personal branches because RADV is the only
649 # driver that does Vulkan testing at the moment.
650 rules:
651 # Never test RADV by default in the main project.
652 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
653 when: never
654 # Never test RADV by default for merge requests.
655 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
656 when: never
657 # Otherwise, allow testing RADV if the test image for VK has been manually
658 # started.
659 - when: on_success
660
661radv_polaris10_vkcts:
662 extends:
663 - .deqp-test-vk
664 - .test-radv
665 variables:
666 DEQP_PARALLEL: 4
667 DEQP_SKIPS: deqp-radv-polaris10-skips.txt
668 tags:
669 - polaris10