blob: b3589987cb839b483b23a38c3e0c33d35e65574c [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'
Eric Engestrom329f5cd2019-01-20 11:21:45 +00009
Tomeu Vizoso7b01f722019-09-18 16:03:36 +020010include:
Dylan Baker19851c92019-10-23 14:36:19 -070011 - local: '.gitlab-ci/lava-gitlab-ci.yml'
Tomeu Vizoso7b01f722019-09-18 16:03:36 +020012
Eric Engestrom329f5cd2019-01-20 11:21:45 +000013stages:
Eric Engestrom81b98e92019-10-14 23:04:14 +010014 - container
Eric Engestroma0f8a072019-09-11 18:51:46 +010015 - build
Eric Anholt46daaca2019-06-28 16:35:32 -070016 - test
Eric Engestrom329f5cd2019-01-20 11:21:45 +000017
18
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000019# When to automatically run the CI
Michel Dänzere426f402019-09-06 17:35:52 +020020.ci-run-policy:
Michel Dänzer41797a12019-09-26 09:27:27 +020021 rules:
22 - when: on_success
Michel Dänzer6140ed32019-03-26 18:39:41 +010023 retry:
24 max: 2
25 when:
26 - runner_system_failure
Eric Engestromac78ca42019-11-12 23:42:21 +000027 # Cancel CI run if a newer commit is pushed to the same branch
28 interruptible: true
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000029
Michel Dänzere426f402019-09-06 17:35:52 +020030.ci-deqp-artifacts:
Eric Anholt46daaca2019-06-28 16:35:32 -070031 artifacts:
32 when: always
33 untracked: false
34 paths:
35 # Watch out! Artifacts are relative to the build dir.
36 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
37 - artifacts
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000038
Michel Dänzerc6c76522019-11-11 18:13:28 +010039# Build the "normal" (non-LAVA) CI docker images.
40#
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.
43#
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.
50#
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.
Michel Dänzer8a199922019-09-06 17:04:47 +020055
Eric Engestrom81b98e92019-10-14 23:04:14 +010056.container:
57 stage: container
58 extends:
59 - .ci-run-policy
Michel Dänzer41797a12019-09-26 09:27:27 +020060 rules:
61 # Run pipeline by default for merge requests changing files affecting it
62 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
63 changes:
64 - VERSION
65 - bin/**/*
66 # GitLab CI
67 - .gitlab-ci.yml
68 - .gitlab-ci/**/*
69 # Meson
70 - meson*
71 - build-support/**/*
72 - subprojects/**/*
73 # SCons
74 - SConstruct
75 - scons/**/*
76 - common.py
77 # Source code
78 - include/**/*
79 - src/**/*
80 when: on_success
81 # Always run pipeline by default in the main project
82 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
83 when: on_success
84 # Otherwise, allow triggering jobs manually
85 - when: manual
Eric Engestrom81b98e92019-10-14 23:04:14 +010086 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +010087 DEBIAN_VERSION: buster-slim
88 REPO_SUFFIX: $CI_JOB_NAME
Michel Dänzer506e9d52019-11-07 20:08:03 +010089 DEBIAN_EXEC: 'bash .gitlab-ci/container/${CI_JOB_NAME}.sh'
Eric Engestrom81b98e92019-10-14 23:04:14 +010090 # no need to pull the whole repo to build the container image
91 GIT_STRATEGY: none
92
Michel Dänzerc6c76522019-11-11 18:13:28 +010093# Debian 10 based x86 build image
Michel Dänzer3a48f452019-11-13 17:43:41 +010094x86_build:
Michel Dänzere426f402019-09-06 17:35:52 +020095 extends:
96 - .debian@container-ifnot-exists
Eric Engestrom81b98e92019-10-14 23:04:14 +010097 - .container
Michel Dänzerc6c76522019-11-11 18:13:28 +010098 variables:
Michel Dänzer5f0ff002019-12-13 11:02:16 +010099 DEBIAN_TAG: &x86_build "2020-01-07"
Eric Engestrom46d23c02019-01-20 11:26:53 +0000100
Michel Dänzer3a48f452019-11-13 17:43:41 +0100101.use-x86_build:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100102 variables:
103 TAG: *x86_build
104 image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG"
Michel Dänzereb86cba2019-10-10 15:27:17 +0200105 needs:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100106 - x86_build
Michel Dänzereb86cba2019-10-10 15:27:17 +0200107
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100108# Debian 10 based x86 test image for GL
109x86_test-gl:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100110 extends: x86_build
Michel Dänzeraebf43d2019-11-05 18:52:24 +0100111 variables:
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100112 DEBIAN_TAG: &x86_test-gl "2020-01-07"
Michel Dänzeraebf43d2019-11-05 18:52:24 +0100113
Samuel Pitoisetf2a594f2019-11-18 09:23:18 +0100114# Debian 10 based x86 test image for VK
115x86_test-vk:
116 extends: x86_build
117 variables:
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100118 DEBIAN_TAG: &x86_test-vk "2020-01-07"
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100119 # Can only be triggered manually on personal branches because RADV is the only
120 # driver that does Vulkan testing at the moment.
121 rules:
122 # Never build the test image for VK by default in the main project.
123 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
124 when: never
125 # Never build the test image for VK by default for merge requests.
126 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
127 when: never
128 # Otherwise, allow building it manually for personal branches.
129 - when: manual
130
Samuel Pitoisetf2a594f2019-11-18 09:23:18 +0100131
Michel Dänzerc6c76522019-11-11 18:13:28 +0100132# Debian 9 based x86 build image (old LLVM)
Michel Dänzer3a48f452019-11-13 17:43:41 +0100133x86_build_old:
134 extends: x86_build
Michel Dänzer8a199922019-09-06 17:04:47 +0200135 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100136 DEBIAN_TAG: &x86_build_old "2019-09-18"
137 DEBIAN_VERSION: stretch-slim
Michel Dänzer8a199922019-09-06 17:04:47 +0200138
Michel Dänzer3a48f452019-11-13 17:43:41 +0100139.use-x86_build_old:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100140 variables:
141 TAG: *x86_build_old
142 image: "$CI_REGISTRY_IMAGE/debian/x86_build_old:$TAG"
Michel Dänzer88319f22019-09-18 16:17:01 +0200143 needs:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100144 - x86_build_old
Michel Dänzer88319f22019-09-18 16:17:01 +0200145
Michel Dänzerc6c76522019-11-11 18:13:28 +0100146# Debian 10 based ARM build image
Michel Dänzer3a48f452019-11-13 17:43:41 +0100147arm_build:
Michel Dänzere426f402019-09-06 17:35:52 +0200148 extends:
149 - .debian@container-ifnot-exists@arm64v8
Eric Engestrom81b98e92019-10-14 23:04:14 +0100150 - .container
Eric Anholt6f0dc082019-06-28 16:35:32 -0700151 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100152 DEBIAN_TAG: &arm_build "2019-11-13"
Eric Engestrom46d23c02019-01-20 11:26:53 +0000153
Michel Dänzerc6c76522019-11-11 18:13:28 +0100154.use-arm_build:
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100155 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100156 TAG: *arm_build
157 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
158 needs:
159 - arm_build
160
161# Debian 10 based ARM test image
162arm_test:
163 extends: arm_build
164 variables:
Tomeu Vizosod62dd8b2019-12-13 10:20:23 +0100165 DEBIAN_TAG: &arm_test "2019-12-18"
Michel Dänzerc6c76522019-11-11 18:13:28 +0100166
167.use-arm_test:
168 variables:
169 TAG: *arm_test
170 image: "$CI_REGISTRY_IMAGE/debian/arm_test:$TAG"
171 needs:
172 - meson-arm64
173 - arm_test
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100174
Eric Engestrom81b98e92019-10-14 23:04:14 +0100175
Eric Engestrom46d23c02019-01-20 11:26:53 +0000176# BUILD
177
Dylan Baker06e46472019-10-23 14:21:31 -0700178# Shared between windows and Linux
179.build-common:
Eric Engestromaba78c22019-10-14 23:52:58 +0100180 extends: .ci-run-policy
Eric Engestroma0f8a072019-09-11 18:51:46 +0100181 stage: build
Eric Engestrom46d23c02019-01-20 11:26:53 +0000182 artifacts:
Eric Anholtdd3d0b22019-07-24 09:27:48 -0700183 when: always
184 paths:
185 - _build/meson-logs/*.txt
186 # scons:
Michel Dänzer5229f272019-07-26 12:20:41 +0200187 - build/*/config.log
Eric Anholtf60defa2019-04-10 15:59:12 -0700188 - shader-db
Dylan Baker06e46472019-10-23 14:21:31 -0700189
190# Just Linux
191.build-linux:
192 extends: .build-common
Michel Dänzere9de19f2019-04-04 18:01:27 +0200193 variables:
194 CCACHE_COMPILERCHECK: "content"
Michel Dänzer32618ee2019-11-20 09:11:35 +0100195 CCACHE_COMPRESS: "true"
196 CCACHE_DIR: /cache/mesa/ccache
Eric Engestrom23b485c2019-02-12 16:59:27 +0000197 # Use ccache transparently, and print stats before/after
198 before_script:
199 - export PATH="/usr/lib/ccache:$PATH"
200 - export CCACHE_BASEDIR="$PWD"
Michel Dänzer32618ee2019-11-20 09:11:35 +0100201 - ccache --show-stats
Eric Engestrom23b485c2019-02-12 16:59:27 +0000202 after_script:
Eric Engestrom23b485c2019-02-12 16:59:27 +0000203 - ccache --show-stats
Eric Engestrom46d23c02019-01-20 11:26:53 +0000204
Dylan Baker19851c92019-10-23 14:36:19 -0700205.build-windows:
206 extends: .build-common
207 tags:
208 - mesa-windows
209 cache:
210 key: ${CI_JOB_NAME}
211 paths:
212 - subprojects/packagecache
213
Eric Engestrom46d23c02019-01-20 11:26:53 +0000214.meson-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100215 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700216 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100217 - .use-x86_build
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100218 variables:
219 LLVM_VERSION: 9
Eric Engestrom23b485c2019-02-12 16:59:27 +0000220 script:
Michel Dänzercc2b3a92019-05-03 10:49:43 +0200221 - .gitlab-ci/meson-build.sh
Eric Engestrom46d23c02019-01-20 11:26:53 +0000222
Eric Engestrom06b245b2019-01-23 15:46:10 +0000223.scons-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100224 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700225 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100226 - .use-x86_build
Eric Engestrom06b245b2019-01-23 15:46:10 +0000227 variables:
Eric Anholtcb655d22019-11-06 11:14:14 -0800228 SCONSFLAGS: "-j4"
Eric Engestrom06b245b2019-01-23 15:46:10 +0000229 script:
Michel Dänzer0374aac2019-09-12 11:34:43 +0200230 - .gitlab-ci/scons-build.sh
Eric Engestrom06b245b2019-01-23 15:46:10 +0000231
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100232meson-testing:
Michel Dänzere426f402019-09-06 17:35:52 +0200233 extends:
234 - .meson-build
235 - .ci-deqp-artifacts
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200236 variables:
237 UNWIND: "true"
238 DRI_LOADERS: >
239 -D glx=dri
240 -D gbm=true
241 -D egl=true
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100242 -D platforms=x11,drm,surfaceless
243 GALLIUM_ST: >
244 -D dri3=true
245 GALLIUM_DRIVERS: "swrast"
Samuel Pitoiset40c6a562019-11-19 14:46:53 +0100246 VULKAN_DRIVERS: amd
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100247 BUILDTYPE: "debugoptimized"
248 script:
249 - .gitlab-ci/meson-build.sh
250 - .gitlab-ci/prepare-artifacts.sh
251
252meson-main:
253 extends: .meson-build
254 variables:
255 UNWIND: "true"
256 DRI_LOADERS: >
257 -D glx=dri
258 -D gbm=true
259 -D egl=true
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200260 -D platforms=x11,wayland,drm,surfaceless
261 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
262 GALLIUM_ST: >
263 -D dri3=true
264 -D gallium-extra-hud=true
265 -D gallium-vdpau=true
266 -D gallium-xvmc=true
267 -D gallium-omx=bellagio
268 -D gallium-va=true
269 -D gallium-xa=true
270 -D gallium-nine=true
271 -D gallium-opencl=disabled
Samuel Pitoisete6d26d72019-11-19 14:36:02 +0100272 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 +0200273 EXTRA_OPTION: >
274 -D osmesa=gallium
275 -D tools=all
Michel Dänzer59fcb012019-10-23 18:42:53 +0200276 script:
277 - .gitlab-ci/meson-build.sh
278 - .gitlab-ci/run-shader-db.sh
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200279
Michel Dänzere5364462019-09-13 11:59:43 +0200280.meson-cross:
281 extends:
282 - .meson-build
Michel Dänzere5364462019-09-13 11:59:43 +0200283 variables:
284 UNWIND: "false"
285 DRI_LOADERS: >
286 -D glx=disabled
287 -D gbm=false
288 -D egl=true
289 -D platforms=surfaceless
290 -D osmesa=none
291 GALLIUM_ST: >
292 -D dri3=false
293 -D gallium-vdpau=false
294 -D gallium-xvmc=false
295 -D gallium-omx=disabled
296 -D gallium-va=false
297 -D gallium-xa=false
298 -D gallium-nine=false
Michel Dänzere5364462019-09-13 11:59:43 +0200299
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200300.meson-arm:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100301 extends:
302 - .meson-cross
303 - .use-arm_build
Michel Dänzere5364462019-09-13 11:59:43 +0200304 variables:
Michel Dänzere5364462019-09-13 11:59:43 +0200305 VULKAN_DRIVERS: freedreno
Michel Dänzer793f6b32019-10-08 19:48:41 +0200306 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
Michel Dänzere5364462019-09-13 11:59:43 +0200307 EXTRA_OPTION: >
Michel Dänzere5364462019-09-13 11:59:43 +0200308 -D I-love-half-baked-turnips=true
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200309 tags:
310 - aarch64
311
312meson-armhf:
313 extends: .meson-arm
314 variables:
315 CROSS: armhf
Michel Dänzer793f6b32019-10-08 19:48:41 +0200316 LLVM_VERSION: "7"
Michel Dänzere5364462019-09-13 11:59:43 +0200317
318meson-arm64:
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200319 extends:
320 - .meson-arm
321 - .ci-deqp-artifacts
Michel Dänzere5364462019-09-13 11:59:43 +0200322 variables:
Michel Dänzere5364462019-09-13 11:59:43 +0200323 BUILDTYPE: "debugoptimized"
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100324 LLVM_VERSION: "8"
Samuel Pitoiset47ba2272019-11-12 14:25:16 +0100325 VULKAN_DRIVERS: "freedreno,amd"
Michel Dänzer59fcb012019-10-23 18:42:53 +0200326 script:
327 - .gitlab-ci/meson-build.sh
328 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzere5364462019-09-13 11:59:43 +0200329
Michel Dänzera2cce702019-03-20 15:58:31 +0100330meson-clang:
331 extends: .meson-build
332 variables:
333 UNWIND: "true"
Samuel Pitoiset73621762019-11-19 14:37:32 +0100334 DRI_LOADERS: >
335 -D glvnd=true
Michel Dänzera2cce702019-03-20 15:58:31 +0100336 DRI_DRIVERS: "auto"
337 GALLIUM_DRIVERS: "auto"
Eric Engestrom47f419d2019-05-01 12:09:26 +0100338 VULKAN_DRIVERS: intel,amd,freedreno
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100339 CC: "ccache clang-9"
340 CXX: "ccache clang++-9"
Michel Dänzera2cce702019-03-20 15:58:31 +0100341
Michel Dänzeraaf1b092019-10-30 09:38:20 +0100342.meson-windows:
Dylan Baker19851c92019-10-23 14:36:19 -0700343 extends:
344 - .build-windows
345 before_script:
346 - $ENV:ARCH = "x86"
347 - $ENV:VERSION = "2019\Community"
348 script:
349 - cmd /C .gitlab-ci\meson-build.bat
350
Michel Dänzer82b30092019-05-03 18:19:25 +0200351scons-swr:
352 extends: .scons-build
Eric Engestrom46d23c02019-01-20 11:26:53 +0000353 variables:
Michel Dänzer82b30092019-05-03 18:19:25 +0200354 SCONS_TARGET: "swr=1"
355 SCONS_CHECK_COMMAND: "true"
356 LLVM_VERSION: "6.0"
357
358scons-win64:
359 extends: .scons-build
360 variables:
361 SCONS_TARGET: platform=windows machine=x86_64
362 SCONS_CHECK_COMMAND: "true"
Eric Engestrom89a74672019-01-21 09:42:37 +0000363
Michel Dänzer68977152019-05-03 10:58:48 +0200364meson-clover:
Eric Engestromb5a70af2019-01-28 18:05:22 +0000365 extends: .meson-build
366 variables:
367 UNWIND: "true"
368 DRI_LOADERS: >
369 -D glx=disabled
370 -D egl=false
371 -D gbm=false
372 GALLIUM_ST: >
373 -D dri3=false
374 -D gallium-vdpau=false
375 -D gallium-xvmc=false
376 -D gallium-omx=disabled
377 -D gallium-va=false
378 -D gallium-xa=false
379 -D gallium-nine=false
380 -D gallium-opencl=icd
Michel Dänzer68977152019-05-03 10:58:48 +0200381 script:
382 - export GALLIUM_DRIVERS="r600,radeonsi"
383 - .gitlab-ci/meson-build.sh
Samuel Pitoiset7d1c0912019-08-21 11:45:25 +0200384 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
Michel Dänzer68977152019-05-03 10:58:48 +0200385 - export GALLIUM_DRIVERS="i915,r600"
Michel Dänzer8a199922019-09-06 17:04:47 +0200386 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
387 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
388
389meson-clover-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200390 extends:
391 - meson-clover
Michel Dänzer3a48f452019-11-13 17:43:41 +0100392 - .use-x86_build_old
Michel Dänzer8a199922019-09-06 17:04:47 +0200393 variables:
394 UNWIND: "false"
395 DRI_LOADERS: >
396 -D glx=disabled
397 -D egl=false
398 -D gbm=false
399 -D platforms=drm,surfaceless
400 GALLIUM_DRIVERS: "i915,r600"
401 script:
Michel Dänzer68977152019-05-03 10:58:48 +0200402 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
403 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
404 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
Eric Engestrom8dab7072019-01-28 18:09:24 +0000405
Michel Dänzer82b30092019-05-03 18:19:25 +0200406meson-vulkan:
407 extends: .meson-build
408 variables:
409 UNWIND: "false"
410 DRI_LOADERS: >
411 -D glx=disabled
412 -D gbm=false
413 -D egl=false
414 -D platforms=x11,wayland,drm
415 -D osmesa=none
416 GALLIUM_ST: >
417 -D dri3=true
418 -D gallium-vdpau=false
419 -D gallium-xvmc=false
420 -D gallium-omx=disabled
421 -D gallium-va=false
422 -D gallium-xa=false
423 -D gallium-nine=false
424 -D gallium-opencl=disabled
Michel Dänzer75cc8c02019-09-25 12:56:58 +0200425 -D b_sanitize=undefined
426 -D c_args=-fno-sanitize-recover=all
427 -D cpp_args=-fno-sanitize-recover=all
428 UBSAN_OPTIONS: "print_stacktrace=1"
Michel Dänzer82b30092019-05-03 18:19:25 +0200429 VULKAN_DRIVERS: intel,amd,freedreno
Eric Engestrom5f8d29a2019-05-08 18:17:23 +0200430 EXTRA_OPTION: >
431 -D vulkan-overlay-layer=true
Michel Dänzer82b30092019-05-03 18:19:25 +0200432
Eric Anholt030aa6e2019-08-07 14:05:51 -0700433# While the main point of this build is testing the i386 cross build,
434# we also use this one to test some other options that are exclusive
435# with meson-main's choices (classic swrast and osmesa)
Eric Anholt11aa32a2019-07-11 12:58:28 -0700436meson-i386:
437 extends: .meson-cross
438 variables:
Eric Engestrom1c82fa02019-08-09 23:46:50 +0100439 CROSS: i386
Eric Anholt11aa32a2019-07-11 12:58:28 -0700440 VULKAN_DRIVERS: intel
Eric Anholt030aa6e2019-08-07 14:05:51 -0700441 DRI_DRIVERS: "swrast"
442 GALLIUM_DRIVERS: "iris"
Eric Anholt11aa32a2019-07-11 12:58:28 -0700443 EXTRA_OPTION: >
Eric Anholt11aa32a2019-07-11 12:58:28 -0700444 -D vulkan-overlay-layer=true
Eric Anholt030aa6e2019-08-07 14:05:51 -0700445 -D llvm=false
446 -D osmesa=classic
Eric Anholt11aa32a2019-07-11 12:58:28 -0700447
Dylan Baker449f8312019-10-11 09:04:14 -0700448meson-mingw32-x86_64:
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700449 extends: .meson-build
450 variables:
451 UNWIND: "false"
452 DRI_DRIVERS: ""
453 GALLIUM_DRIVERS: "swrast"
454 EXTRA_OPTION: >
455 -Dllvm=false
456 -Dosmesa=gallium
457 --cross-file=.gitlab-ci/x86_64-w64-mingw32
458
Michel Dänzer88e57962019-09-12 11:45:13 +0200459scons:
Eric Engestromd4c6d4d2019-01-28 16:30:36 +0000460 extends: .scons-build
461 variables:
462 SCONS_TARGET: "llvm=1"
Dylan Baker54053bc2019-10-21 09:29:23 -0700463 SCONS_CHECK_COMMAND: "scons llvm=1 force_scons=1 check"
Michel Dänzerbaa50242019-09-12 11:38:06 +0200464 script:
Dylan Baker54053bc2019-10-21 09:29:23 -0700465 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100466 - LLVM_VERSION=9 .gitlab-ci/scons-build.sh
Michel Dänzer8a199922019-09-06 17:04:47 +0200467
468scons-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200469 extends:
470 - scons
Michel Dänzer3a48f452019-11-13 17:43:41 +0100471 - .use-x86_build_old
Michel Dänzerbaa50242019-09-12 11:38:06 +0200472 script:
473 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
Eric Anholt46daaca2019-06-28 16:35:32 -0700474
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100475.test:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200476 extends:
477 - .ci-run-policy
Eric Anholt46daaca2019-06-28 16:35:32 -0700478 stage: test
Eric Anholt46daaca2019-06-28 16:35:32 -0700479 variables:
480 GIT_STRATEGY: none # testing doesn't build anything from source
Michel Dänzer576f7b62019-10-22 17:16:52 +0200481 before_script:
Eric Anholt46daaca2019-06-28 16:35:32 -0700482 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
483 - rm -rf install
484 - tar -xf artifacts/install.tar
Samuel Pitoiseteab328f2019-11-14 14:00:46 +0100485 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
Eric Anholt46daaca2019-06-28 16:35:32 -0700486 artifacts:
Rob Clarkfdaf7772019-11-17 11:33:01 -0800487 when: always
Eric Anholt46daaca2019-06-28 16:35:32 -0700488 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
489 paths:
490 - results/
Michel Dänzercccb68b2019-09-13 11:13:12 +0200491 dependencies:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100492 - meson-testing
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100493
494.test-gl:
495 extends:
496 - .test
497 variables:
498 TAG: *x86_test-gl
499 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
Michel Dänzerc5aa2712019-10-22 11:19:17 +0200500 needs:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100501 - meson-testing
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100502 - x86_test-gl
Eric Anholt46daaca2019-06-28 16:35:32 -0700503
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100504.test-vk:
505 extends:
506 - .test
507 variables:
508 TAG: *x86_test-vk
509 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
510 needs:
511 - meson-testing
512 - x86_test-vk
513
Michel Dänzer576f7b62019-10-22 17:16:52 +0200514.piglit-test:
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100515 extends: .test-gl
Michel Dänzera3b3d3b2019-11-25 18:42:10 +0100516 artifacts:
517 when: on_failure
518 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
519 paths:
520 - summary/
Michel Dänzer576f7b62019-10-22 17:16:52 +0200521 variables:
522 LIBGL_ALWAYS_SOFTWARE: 1
523 PIGLIT_NO_WINDOW: 1
524 script:
525 - artifacts/piglit/run.sh
526
527piglit-quick_gl:
528 extends: .piglit-test
529 variables:
530 LP_NUM_THREADS: 0
Dave Airliee6b2af52019-12-03 15:23:45 +1000531 NIR_VALIDATE: 0
Michel Dänzer576f7b62019-10-22 17:16:52 +0200532 PIGLIT_OPTIONS: >
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100533 --process-isolation false
Michel Dänzer576f7b62019-10-22 17:16:52 +0200534 -x arb_gpu_shader5
Eric Anholt3097efe2019-12-04 16:13:38 -0800535 -x egl_ext_device_
536 -x egl_ext_platform_device
Michel Dänzer576f7b62019-10-22 17:16:52 +0200537 -x glx-multithread-clearbuffer
538 -x glx-multithread-shader-compile
539 -x max-texture-size
540 -x maxsize
541 PIGLIT_PROFILES: quick_gl
542
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100543piglit-glslparser:
544 extends: .piglit-test
545 variables:
546 LP_NUM_THREADS: 0
Dave Airliee6b2af52019-12-03 15:23:45 +1000547 NIR_VALIDATE: 0
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100548 PIGLIT_PROFILES: glslparser
549
550piglit-quick_shader:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200551 extends: .piglit-test
552 variables:
553 LP_NUM_THREADS: 1
Dave Airliee6b2af52019-12-03 15:23:45 +1000554 NIR_VALIDATE: 0
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100555 PIGLIT_PROFILES: quick_shader
Michel Dänzer576f7b62019-10-22 17:16:52 +0200556
Samuel Pitoiset16b999b2019-11-19 08:39:00 +0100557.deqp-test:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200558 variables:
559 DEQP_SKIPS: deqp-default-skips.txt
560 script:
561 - ./artifacts/deqp-runner.sh
562
Samuel Pitoiset16b999b2019-11-19 08:39:00 +0100563.deqp-test-gl:
564 extends:
565 - .test-gl
566 - .deqp-test
567
568.deqp-test-vk:
569 extends:
570 - .test-vk
571 - .deqp-test
572 variables:
573 DEQP_VER: vk
574
Eric Anholt46daaca2019-06-28 16:35:32 -0700575test-llvmpipe-gles2:
Eric Anholt46daaca2019-06-28 16:35:32 -0700576 variables:
577 DEQP_VER: gles2
Eric Anholtf08c8102019-11-04 10:54:41 -0800578 DEQP_PARALLEL: 4
Dave Airliee6b2af52019-12-03 15:23:45 +1000579 NIR_VALIDATE: 0
Eric Anholtf08c8102019-11-04 10:54:41 -0800580 # Don't use threads inside llvmpipe, we've already got all 4 cores
581 # busy with DEQP_PARALLEL.
582 LP_NUM_THREADS: 0
Eric Anholt46daaca2019-06-28 16:35:32 -0700583 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
584 LIBGL_ALWAYS_SOFTWARE: "true"
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100585 extends: .deqp-test-gl
Eric Anholt553cd822019-08-09 10:32:40 -0700586
587test-softpipe-gles2:
Michel Dänzer128581d2019-09-11 18:55:43 +0200588 extends: test-llvmpipe-gles2
Eric Anholt553cd822019-08-09 10:32:40 -0700589 variables:
Eric Anholt553cd822019-08-09 10:32:40 -0700590 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
Eric Anholtf08c8102019-11-04 10:54:41 -0800591 DEQP_SKIPS: deqp-softpipe-skips.txt
Eric Anholt553cd822019-08-09 10:32:40 -0700592 GALLIUM_DRIVER: "softpipe"
Eric Anholt553cd822019-08-09 10:32:40 -0700593
Eric Anholt52843ec2019-11-05 10:31:29 -0800594test-softpipe-gles3:
595 parallel: 2
Eric Anholt553cd822019-08-09 10:32:40 -0700596 variables:
597 DEQP_VER: gles3
Eric Anholt52843ec2019-11-05 10:31:29 -0800598 extends: test-softpipe-gles2
599
600test-softpipe-gles31:
601 parallel: 4
602 variables:
603 DEQP_VER: gles31
604 extends: test-softpipe-gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700605
Michel Dänzer128581d2019-09-11 18:55:43 +0200606arm64_a630_gles2:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100607 extends:
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100608 - .deqp-test-gl
Michel Dänzerc6c76522019-11-11 18:13:28 +0100609 - .use-arm_test
Eric Anholt6f0dc082019-06-28 16:35:32 -0700610 variables:
611 DEQP_VER: gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700612 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
613 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
614 NIR_VALIDATE: 0
Eric Anholtdd76a6f2019-11-21 05:12:58 -0800615 DEQP_PARALLEL: 4
Rob Clarkfdaf7772019-11-17 11:33:01 -0800616 FLAKES_CHANNEL: "#freedreno-ci"
Eric Anholt6f0dc082019-06-28 16:35:32 -0700617 tags:
618 - mesa-cheza
619 dependencies:
620 - meson-arm64
Eric Anholt6f0dc082019-06-28 16:35:32 -0700621
Michel Dänzer128581d2019-09-11 18:55:43 +0200622arm64_a630_gles31:
623 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700624 variables:
Michel Dänzer128581d2019-09-11 18:55:43 +0200625 DEQP_VER: gles31
Eric Anholt6f0dc082019-06-28 16:35:32 -0700626
627arm64_a630_gles3:
Michel Dänzer128581d2019-09-11 18:55:43 +0200628 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700629 variables:
630 DEQP_VER: gles3
631
Michel Dänzer128581d2019-09-11 18:55:43 +0200632arm64_a306_gles2:
Michel Dänzer128581d2019-09-11 18:55:43 +0200633 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700634 variables:
Michel Dänzer128581d2019-09-11 18:55:43 +0200635 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
636 DEQP_SKIPS: deqp-default-skips.txt
Michel Dänzer128581d2019-09-11 18:55:43 +0200637 tags:
638 - db410c
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100639
640# RADV CI
641.test-radv:
642 variables:
643 VK_DRIVER: radeon
Samuel Pitoisetff2e11b2019-12-06 17:07:35 +0100644 RADV_DEBUG: checkir
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100645 # Can only be triggered manually on personal branches because RADV is the only
646 # driver that does Vulkan testing at the moment.
647 rules:
648 # Never test RADV by default in the main project.
649 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
650 when: never
651 # Never test RADV by default for merge requests.
652 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
653 when: never
654 # Otherwise, allow testing RADV if the test image for VK has been manually
655 # started.
656 - when: on_success
657
658radv_polaris10_vkcts:
659 extends:
660 - .deqp-test-vk
661 - .test-radv
662 variables:
663 DEQP_PARALLEL: 4
664 DEQP_SKIPS: deqp-radv-polaris10-skips.txt
665 tags:
666 - polaris10