blob: a403e5b2e64c301af0854f471d3513545694a4d4 [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
Michel Dänzer8775b742020-01-13 09:45:57 +010015 - success
Eric Engestrom329f5cd2019-01-20 11:21:45 +000016
17
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000018# When to automatically run the CI
Michel Dänzere426f402019-09-06 17:35:52 +020019.ci-run-policy:
Michel Dänzer41797a12019-09-26 09:27:27 +020020 rules:
Michel Dänzer8775b742020-01-13 09:45:57 +010021 # Run pipeline by default for merge requests changing files affecting it
22 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
23 changes: &paths
24 - VERSION
25 - bin/**/*
26 # GitLab CI
27 - .gitlab-ci.yml
28 - .gitlab-ci/**/*
29 # Meson
30 - meson*
31 - build-support/**/*
32 - subprojects/**/*
33 # SCons
34 - SConstruct
35 - scons/**/*
36 - common.py
37 # Source code
38 - include/**/*
39 - src/**/*
40 when: on_success
41 # Run pipeline by default in the main project if files affecting it were
42 # changed
43 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
44 changes:
45 *paths
46 when: on_success
47 # Allow triggering jobs manually on branches of forked projects
Michel Dänzer5a6a88f2020-01-20 18:39:50 +010048 - if: '$CI_PROJECT_PATH != "mesa/mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
Michel Dänzer8775b742020-01-13 09:45:57 +010049 when: manual
50 # Otherwise, most jobs won't run
51 - when: never
Michel Dänzer6140ed32019-03-26 18:39:41 +010052 retry:
53 max: 2
54 when:
55 - runner_system_failure
Eric Engestromac78ca42019-11-12 23:42:21 +000056 # Cancel CI run if a newer commit is pushed to the same branch
57 interruptible: true
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000058
Michel Dänzer8775b742020-01-13 09:45:57 +010059success:
60 stage: success
61 image: debian:stable-slim
62 only:
63 - merge_requests
64 except:
65 changes:
66 *paths
Michel Dänzer2dd0cc62020-01-20 18:34:34 +010067 variables:
68 GIT_STRATEGY: none
Michel Dänzer8775b742020-01-13 09:45:57 +010069 script:
70 - echo "Dummy job to make sure every merge request pipeline runs at least one job"
71
72
Michel Dänzere426f402019-09-06 17:35:52 +020073.ci-deqp-artifacts:
Eric Anholt46daaca2019-06-28 16:35:32 -070074 artifacts:
75 when: always
76 untracked: false
77 paths:
78 # Watch out! Artifacts are relative to the build dir.
79 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
80 - artifacts
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000081
Tomeu Vizoso22d97642019-12-17 11:50:14 +010082# Build the CI docker images.
Michel Dänzerc6c76522019-11-11 18:13:28 +010083#
84# DEBIAN_TAG is the tag of the docker image used by later stage jobs. If the
85# image doesn't exist yet, the container stage job generates it.
86#
87# In order to generate a new image, one should generally change the tag.
88# While removing the image from the registry would also work, that's not
89# recommended except for ephemeral images during development: Replacing
90# an image after a significant amount of time might pull in newer
91# versions of gcc/clang or other packages, which might break the build
92# with older commits using the same tag.
93#
94# After merging a change resulting in generating a new image to the
95# main repository, it's recommended to remove the image from the source
96# repository's container registry, so that the image from the main
97# repository's registry will be used there as well.
Michel Dänzer8a199922019-09-06 17:04:47 +020098
Eric Engestrom81b98e92019-10-14 23:04:14 +010099.container:
100 stage: container
101 extends:
102 - .ci-run-policy
103 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100104 DEBIAN_VERSION: buster-slim
105 REPO_SUFFIX: $CI_JOB_NAME
Michel Dänzer506e9d52019-11-07 20:08:03 +0100106 DEBIAN_EXEC: 'bash .gitlab-ci/container/${CI_JOB_NAME}.sh'
Eric Engestrom81b98e92019-10-14 23:04:14 +0100107 # no need to pull the whole repo to build the container image
108 GIT_STRATEGY: none
109
Michel Dänzerc6c76522019-11-11 18:13:28 +0100110# Debian 10 based x86 build image
Michel Dänzer3a48f452019-11-13 17:43:41 +0100111x86_build:
Michel Dänzere426f402019-09-06 17:35:52 +0200112 extends:
113 - .debian@container-ifnot-exists
Eric Engestrom81b98e92019-10-14 23:04:14 +0100114 - .container
Michel Dänzerc6c76522019-11-11 18:13:28 +0100115 variables:
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100116 DEBIAN_TAG: &x86_build "2020-01-14"
Eric Engestrom46d23c02019-01-20 11:26:53 +0000117
Michel Dänzer3a48f452019-11-13 17:43:41 +0100118.use-x86_build:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100119 variables:
120 TAG: *x86_build
121 image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG"
Michel Dänzereb86cba2019-10-10 15:27:17 +0200122 needs:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100123 - x86_build
Michel Dänzereb86cba2019-10-10 15:27:17 +0200124
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100125# Debian 10 based x86 test image for GL
126x86_test-gl:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100127 extends: x86_build
Michel Dänzeraebf43d2019-11-05 18:52:24 +0100128 variables:
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100129 DEBIAN_TAG: &x86_test-gl "2020-01-14"
Michel Dänzeraebf43d2019-11-05 18:52:24 +0100130
Samuel Pitoisetf2a594f2019-11-18 09:23:18 +0100131# Debian 10 based x86 test image for VK
132x86_test-vk:
133 extends: x86_build
134 variables:
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100135 DEBIAN_TAG: &x86_test-vk "2020-01-14"
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100136 # Can only be triggered manually on personal branches because RADV is the only
137 # driver that does Vulkan testing at the moment.
138 rules:
139 # Never build the test image for VK by default in the main project.
140 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
141 when: never
142 # Never build the test image for VK by default for merge requests.
143 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
144 when: never
145 # Otherwise, allow building it manually for personal branches.
146 - when: manual
147
Samuel Pitoisetf2a594f2019-11-18 09:23:18 +0100148
Michel Dänzerc6c76522019-11-11 18:13:28 +0100149# Debian 9 based x86 build image (old LLVM)
Michel Dänzer3a48f452019-11-13 17:43:41 +0100150x86_build_old:
151 extends: x86_build
Michel Dänzer8a199922019-09-06 17:04:47 +0200152 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100153 DEBIAN_TAG: &x86_build_old "2019-09-18"
154 DEBIAN_VERSION: stretch-slim
Michel Dänzer8a199922019-09-06 17:04:47 +0200155
Michel Dänzer3a48f452019-11-13 17:43:41 +0100156.use-x86_build_old:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100157 variables:
158 TAG: *x86_build_old
159 image: "$CI_REGISTRY_IMAGE/debian/x86_build_old:$TAG"
Michel Dänzer88319f22019-09-18 16:17:01 +0200160 needs:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100161 - x86_build_old
Michel Dänzer88319f22019-09-18 16:17:01 +0200162
Michel Dänzerc6c76522019-11-11 18:13:28 +0100163# Debian 10 based ARM build image
Michel Dänzer3a48f452019-11-13 17:43:41 +0100164arm_build:
Michel Dänzere426f402019-09-06 17:35:52 +0200165 extends:
166 - .debian@container-ifnot-exists@arm64v8
Eric Engestrom81b98e92019-10-14 23:04:14 +0100167 - .container
Eric Anholt6f0dc082019-06-28 16:35:32 -0700168 variables:
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100169 DEBIAN_TAG: &arm_build "2020-01-14"
Eric Engestrom46d23c02019-01-20 11:26:53 +0000170
Michel Dänzerc6c76522019-11-11 18:13:28 +0100171.use-arm_build:
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100172 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100173 TAG: *arm_build
174 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
175 needs:
176 - arm_build
177
178# Debian 10 based ARM test image
179arm_test:
180 extends: arm_build
181 variables:
Tomeu Vizosod62dd8b2019-12-13 10:20:23 +0100182 DEBIAN_TAG: &arm_test "2019-12-18"
Michel Dänzerc6c76522019-11-11 18:13:28 +0100183
184.use-arm_test:
185 variables:
186 TAG: *arm_test
187 image: "$CI_REGISTRY_IMAGE/debian/arm_test:$TAG"
188 needs:
189 - meson-arm64
190 - arm_test
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100191
Eric Engestrom81b98e92019-10-14 23:04:14 +0100192
Eric Engestrom46d23c02019-01-20 11:26:53 +0000193# BUILD
194
Dylan Baker06e46472019-10-23 14:21:31 -0700195# Shared between windows and Linux
196.build-common:
Eric Engestromaba78c22019-10-14 23:52:58 +0100197 extends: .ci-run-policy
Eric Engestroma0f8a072019-09-11 18:51:46 +0100198 stage: build
Eric Engestrom46d23c02019-01-20 11:26:53 +0000199 artifacts:
Eric Anholtdd3d0b22019-07-24 09:27:48 -0700200 when: always
201 paths:
202 - _build/meson-logs/*.txt
203 # scons:
Michel Dänzer5229f272019-07-26 12:20:41 +0200204 - build/*/config.log
Eric Anholtf60defa2019-04-10 15:59:12 -0700205 - shader-db
Dylan Baker06e46472019-10-23 14:21:31 -0700206
207# Just Linux
208.build-linux:
209 extends: .build-common
Michel Dänzere9de19f2019-04-04 18:01:27 +0200210 variables:
211 CCACHE_COMPILERCHECK: "content"
Michel Dänzer32618ee2019-11-20 09:11:35 +0100212 CCACHE_COMPRESS: "true"
213 CCACHE_DIR: /cache/mesa/ccache
Eric Engestrom23b485c2019-02-12 16:59:27 +0000214 # Use ccache transparently, and print stats before/after
215 before_script:
216 - export PATH="/usr/lib/ccache:$PATH"
217 - export CCACHE_BASEDIR="$PWD"
Michel Dänzer32618ee2019-11-20 09:11:35 +0100218 - ccache --show-stats
Eric Engestrom23b485c2019-02-12 16:59:27 +0000219 after_script:
Eric Engestrom23b485c2019-02-12 16:59:27 +0000220 - ccache --show-stats
Eric Engestrom46d23c02019-01-20 11:26:53 +0000221
Dylan Baker19851c92019-10-23 14:36:19 -0700222.build-windows:
223 extends: .build-common
224 tags:
225 - mesa-windows
226 cache:
227 key: ${CI_JOB_NAME}
228 paths:
229 - subprojects/packagecache
230
Eric Engestrom46d23c02019-01-20 11:26:53 +0000231.meson-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100232 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700233 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100234 - .use-x86_build
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100235 variables:
236 LLVM_VERSION: 9
Eric Engestrom23b485c2019-02-12 16:59:27 +0000237 script:
Michel Dänzercc2b3a92019-05-03 10:49:43 +0200238 - .gitlab-ci/meson-build.sh
Eric Engestrom46d23c02019-01-20 11:26:53 +0000239
Eric Engestrom06b245b2019-01-23 15:46:10 +0000240.scons-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100241 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700242 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100243 - .use-x86_build
Eric Engestrom06b245b2019-01-23 15:46:10 +0000244 variables:
Eric Anholtcb655d22019-11-06 11:14:14 -0800245 SCONSFLAGS: "-j4"
Eric Engestrom06b245b2019-01-23 15:46:10 +0000246 script:
Michel Dänzer0374aac2019-09-12 11:34:43 +0200247 - .gitlab-ci/scons-build.sh
Eric Engestrom06b245b2019-01-23 15:46:10 +0000248
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100249meson-testing:
Michel Dänzere426f402019-09-06 17:35:52 +0200250 extends:
251 - .meson-build
252 - .ci-deqp-artifacts
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200253 variables:
254 UNWIND: "true"
255 DRI_LOADERS: >
256 -D glx=dri
257 -D gbm=true
258 -D egl=true
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100259 -D platforms=x11,drm,surfaceless
260 GALLIUM_ST: >
261 -D dri3=true
262 GALLIUM_DRIVERS: "swrast"
Samuel Pitoiset40c6a562019-11-19 14:46:53 +0100263 VULKAN_DRIVERS: amd
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100264 BUILDTYPE: "debugoptimized"
265 script:
266 - .gitlab-ci/meson-build.sh
267 - .gitlab-ci/prepare-artifacts.sh
268
269meson-main:
270 extends: .meson-build
271 variables:
272 UNWIND: "true"
273 DRI_LOADERS: >
274 -D glx=dri
275 -D gbm=true
276 -D egl=true
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200277 -D platforms=x11,wayland,drm,surfaceless
278 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
279 GALLIUM_ST: >
280 -D dri3=true
281 -D gallium-extra-hud=true
282 -D gallium-vdpau=true
283 -D gallium-xvmc=true
284 -D gallium-omx=bellagio
285 -D gallium-va=true
286 -D gallium-xa=true
287 -D gallium-nine=true
288 -D gallium-opencl=disabled
Samuel Pitoisete6d26d72019-11-19 14:36:02 +0100289 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 +0200290 EXTRA_OPTION: >
291 -D osmesa=gallium
292 -D tools=all
Michel Dänzer59fcb012019-10-23 18:42:53 +0200293 script:
294 - .gitlab-ci/meson-build.sh
295 - .gitlab-ci/run-shader-db.sh
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200296
Michel Dänzere5364462019-09-13 11:59:43 +0200297.meson-cross:
298 extends:
299 - .meson-build
Michel Dänzere5364462019-09-13 11:59:43 +0200300 variables:
301 UNWIND: "false"
302 DRI_LOADERS: >
303 -D glx=disabled
304 -D gbm=false
305 -D egl=true
306 -D platforms=surfaceless
307 -D osmesa=none
308 GALLIUM_ST: >
309 -D dri3=false
310 -D gallium-vdpau=false
311 -D gallium-xvmc=false
312 -D gallium-omx=disabled
313 -D gallium-va=false
314 -D gallium-xa=false
315 -D gallium-nine=false
Michel Dänzere5364462019-09-13 11:59:43 +0200316
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200317.meson-arm:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100318 extends:
319 - .meson-cross
320 - .use-arm_build
Michel Dänzere5364462019-09-13 11:59:43 +0200321 variables:
Michel Dänzere5364462019-09-13 11:59:43 +0200322 VULKAN_DRIVERS: freedreno
Michel Dänzer793f6b32019-10-08 19:48:41 +0200323 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100324 BUILDTYPE: "debugoptimized"
Michel Dänzere5364462019-09-13 11:59:43 +0200325 EXTRA_OPTION: >
Michel Dänzere5364462019-09-13 11:59:43 +0200326 -D I-love-half-baked-turnips=true
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200327 tags:
328 - aarch64
329
330meson-armhf:
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100331 extends:
332 - .meson-arm
333 - .ci-deqp-artifacts
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200334 variables:
335 CROSS: armhf
Michel Dänzer793f6b32019-10-08 19:48:41 +0200336 LLVM_VERSION: "7"
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100337 script:
338 - .gitlab-ci/meson-build.sh
339 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzere5364462019-09-13 11:59:43 +0200340
341meson-arm64:
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200342 extends:
343 - .meson-arm
344 - .ci-deqp-artifacts
Michel Dänzere5364462019-09-13 11:59:43 +0200345 variables:
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100346 LLVM_VERSION: "8"
Samuel Pitoiset47ba2272019-11-12 14:25:16 +0100347 VULKAN_DRIVERS: "freedreno,amd"
Michel Dänzer59fcb012019-10-23 18:42:53 +0200348 script:
349 - .gitlab-ci/meson-build.sh
350 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzere5364462019-09-13 11:59:43 +0200351
Michel Dänzera2cce702019-03-20 15:58:31 +0100352meson-clang:
353 extends: .meson-build
354 variables:
355 UNWIND: "true"
Samuel Pitoiset73621762019-11-19 14:37:32 +0100356 DRI_LOADERS: >
357 -D glvnd=true
Michel Dänzera2cce702019-03-20 15:58:31 +0100358 DRI_DRIVERS: "auto"
359 GALLIUM_DRIVERS: "auto"
Eric Engestrom47f419d2019-05-01 12:09:26 +0100360 VULKAN_DRIVERS: intel,amd,freedreno
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100361 CC: "ccache clang-9"
362 CXX: "ccache clang++-9"
Michel Dänzera2cce702019-03-20 15:58:31 +0100363
Michel Dänzeraaf1b092019-10-30 09:38:20 +0100364.meson-windows:
Dylan Baker19851c92019-10-23 14:36:19 -0700365 extends:
366 - .build-windows
367 before_script:
368 - $ENV:ARCH = "x86"
369 - $ENV:VERSION = "2019\Community"
370 script:
371 - cmd /C .gitlab-ci\meson-build.bat
372
Michel Dänzer82b30092019-05-03 18:19:25 +0200373scons-swr:
374 extends: .scons-build
Eric Engestrom46d23c02019-01-20 11:26:53 +0000375 variables:
Michel Dänzer82b30092019-05-03 18:19:25 +0200376 SCONS_TARGET: "swr=1"
377 SCONS_CHECK_COMMAND: "true"
378 LLVM_VERSION: "6.0"
379
380scons-win64:
381 extends: .scons-build
382 variables:
383 SCONS_TARGET: platform=windows machine=x86_64
384 SCONS_CHECK_COMMAND: "true"
Eric Engestrom89a74672019-01-21 09:42:37 +0000385
Michel Dänzer68977152019-05-03 10:58:48 +0200386meson-clover:
Eric Engestromb5a70af2019-01-28 18:05:22 +0000387 extends: .meson-build
388 variables:
389 UNWIND: "true"
390 DRI_LOADERS: >
391 -D glx=disabled
392 -D egl=false
393 -D gbm=false
394 GALLIUM_ST: >
395 -D dri3=false
396 -D gallium-vdpau=false
397 -D gallium-xvmc=false
398 -D gallium-omx=disabled
399 -D gallium-va=false
400 -D gallium-xa=false
401 -D gallium-nine=false
402 -D gallium-opencl=icd
Michel Dänzer68977152019-05-03 10:58:48 +0200403 script:
404 - export GALLIUM_DRIVERS="r600,radeonsi"
405 - .gitlab-ci/meson-build.sh
Samuel Pitoiset7d1c0912019-08-21 11:45:25 +0200406 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
Michel Dänzer68977152019-05-03 10:58:48 +0200407 - export GALLIUM_DRIVERS="i915,r600"
Michel Dänzer8a199922019-09-06 17:04:47 +0200408 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
409 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
410
411meson-clover-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200412 extends:
413 - meson-clover
Michel Dänzer3a48f452019-11-13 17:43:41 +0100414 - .use-x86_build_old
Michel Dänzer8a199922019-09-06 17:04:47 +0200415 variables:
416 UNWIND: "false"
417 DRI_LOADERS: >
418 -D glx=disabled
419 -D egl=false
420 -D gbm=false
421 -D platforms=drm,surfaceless
422 GALLIUM_DRIVERS: "i915,r600"
423 script:
Michel Dänzer68977152019-05-03 10:58:48 +0200424 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
425 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
426 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
Eric Engestrom8dab7072019-01-28 18:09:24 +0000427
Michel Dänzer82b30092019-05-03 18:19:25 +0200428meson-vulkan:
429 extends: .meson-build
430 variables:
431 UNWIND: "false"
432 DRI_LOADERS: >
433 -D glx=disabled
434 -D gbm=false
435 -D egl=false
436 -D platforms=x11,wayland,drm
437 -D osmesa=none
438 GALLIUM_ST: >
439 -D dri3=true
440 -D gallium-vdpau=false
441 -D gallium-xvmc=false
442 -D gallium-omx=disabled
443 -D gallium-va=false
444 -D gallium-xa=false
445 -D gallium-nine=false
446 -D gallium-opencl=disabled
Michel Dänzer75cc8c02019-09-25 12:56:58 +0200447 -D b_sanitize=undefined
448 -D c_args=-fno-sanitize-recover=all
449 -D cpp_args=-fno-sanitize-recover=all
450 UBSAN_OPTIONS: "print_stacktrace=1"
Michel Dänzer82b30092019-05-03 18:19:25 +0200451 VULKAN_DRIVERS: intel,amd,freedreno
Eric Engestrom5f8d29a2019-05-08 18:17:23 +0200452 EXTRA_OPTION: >
453 -D vulkan-overlay-layer=true
Michel Dänzer82b30092019-05-03 18:19:25 +0200454
Eric Anholt030aa6e2019-08-07 14:05:51 -0700455# While the main point of this build is testing the i386 cross build,
456# we also use this one to test some other options that are exclusive
457# with meson-main's choices (classic swrast and osmesa)
Eric Anholt11aa32a2019-07-11 12:58:28 -0700458meson-i386:
459 extends: .meson-cross
460 variables:
Eric Engestrom1c82fa02019-08-09 23:46:50 +0100461 CROSS: i386
Eric Anholt11aa32a2019-07-11 12:58:28 -0700462 VULKAN_DRIVERS: intel
Eric Anholt030aa6e2019-08-07 14:05:51 -0700463 DRI_DRIVERS: "swrast"
464 GALLIUM_DRIVERS: "iris"
Eric Anholt11aa32a2019-07-11 12:58:28 -0700465 EXTRA_OPTION: >
Eric Anholt11aa32a2019-07-11 12:58:28 -0700466 -D vulkan-overlay-layer=true
Eric Anholt030aa6e2019-08-07 14:05:51 -0700467 -D llvm=false
468 -D osmesa=classic
Eric Anholtf6e59912019-12-16 21:23:02 -0800469 -D werror=true
Eric Anholt11aa32a2019-07-11 12:58:28 -0700470
Dylan Baker449f8312019-10-11 09:04:14 -0700471meson-mingw32-x86_64:
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700472 extends: .meson-build
473 variables:
474 UNWIND: "false"
475 DRI_DRIVERS: ""
476 GALLIUM_DRIVERS: "swrast"
477 EXTRA_OPTION: >
478 -Dllvm=false
479 -Dosmesa=gallium
480 --cross-file=.gitlab-ci/x86_64-w64-mingw32
481
Michel Dänzer88e57962019-09-12 11:45:13 +0200482scons:
Eric Engestromd4c6d4d2019-01-28 16:30:36 +0000483 extends: .scons-build
484 variables:
485 SCONS_TARGET: "llvm=1"
Dylan Baker54053bc2019-10-21 09:29:23 -0700486 SCONS_CHECK_COMMAND: "scons llvm=1 force_scons=1 check"
Michel Dänzerbaa50242019-09-12 11:38:06 +0200487 script:
Dylan Baker54053bc2019-10-21 09:29:23 -0700488 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100489 - LLVM_VERSION=9 .gitlab-ci/scons-build.sh
Michel Dänzer8a199922019-09-06 17:04:47 +0200490
491scons-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200492 extends:
493 - scons
Michel Dänzer3a48f452019-11-13 17:43:41 +0100494 - .use-x86_build_old
Michel Dänzerbaa50242019-09-12 11:38:06 +0200495 script:
496 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
Eric Anholt46daaca2019-06-28 16:35:32 -0700497
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100498.test:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200499 extends:
500 - .ci-run-policy
Eric Anholt46daaca2019-06-28 16:35:32 -0700501 stage: test
Eric Anholt46daaca2019-06-28 16:35:32 -0700502 variables:
503 GIT_STRATEGY: none # testing doesn't build anything from source
Michel Dänzer576f7b62019-10-22 17:16:52 +0200504 before_script:
Eric Anholt46daaca2019-06-28 16:35:32 -0700505 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
506 - rm -rf install
507 - tar -xf artifacts/install.tar
Samuel Pitoiseteab328f2019-11-14 14:00:46 +0100508 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
Eric Anholt46daaca2019-06-28 16:35:32 -0700509 artifacts:
Rob Clarkfdaf7772019-11-17 11:33:01 -0800510 when: always
Eric Anholt46daaca2019-06-28 16:35:32 -0700511 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
512 paths:
513 - results/
Michel Dänzercccb68b2019-09-13 11:13:12 +0200514 dependencies:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100515 - meson-testing
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100516
517.test-gl:
518 extends:
519 - .test
520 variables:
521 TAG: *x86_test-gl
522 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
Michel Dänzerc5aa2712019-10-22 11:19:17 +0200523 needs:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100524 - meson-testing
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100525 - x86_test-gl
Eric Anholt46daaca2019-06-28 16:35:32 -0700526
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100527.test-vk:
528 extends:
529 - .test
530 variables:
531 TAG: *x86_test-vk
532 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
533 needs:
534 - meson-testing
535 - x86_test-vk
536
Michel Dänzer576f7b62019-10-22 17:16:52 +0200537.piglit-test:
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100538 extends: .test-gl
Michel Dänzera3b3d3b2019-11-25 18:42:10 +0100539 artifacts:
540 when: on_failure
541 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
542 paths:
543 - summary/
Michel Dänzer576f7b62019-10-22 17:16:52 +0200544 variables:
545 LIBGL_ALWAYS_SOFTWARE: 1
546 PIGLIT_NO_WINDOW: 1
547 script:
548 - artifacts/piglit/run.sh
549
550piglit-quick_gl:
551 extends: .piglit-test
552 variables:
553 LP_NUM_THREADS: 0
Dave Airliee6b2af52019-12-03 15:23:45 +1000554 NIR_VALIDATE: 0
Michel Dänzer576f7b62019-10-22 17:16:52 +0200555 PIGLIT_OPTIONS: >
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100556 --process-isolation false
Michel Dänzer576f7b62019-10-22 17:16:52 +0200557 -x arb_gpu_shader5
Eric Anholt3097efe2019-12-04 16:13:38 -0800558 -x egl_ext_device_
559 -x egl_ext_platform_device
Matt Turner17c9ec92020-01-21 15:23:39 -0800560 -x ext_timer_query@time-elapsed
Michel Dänzer576f7b62019-10-22 17:16:52 +0200561 -x glx-multithread-clearbuffer
562 -x glx-multithread-shader-compile
563 -x max-texture-size
564 -x maxsize
565 PIGLIT_PROFILES: quick_gl
566
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100567piglit-glslparser:
568 extends: .piglit-test
569 variables:
570 LP_NUM_THREADS: 0
Dave Airliee6b2af52019-12-03 15:23:45 +1000571 NIR_VALIDATE: 0
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100572 PIGLIT_PROFILES: glslparser
573
574piglit-quick_shader:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200575 extends: .piglit-test
576 variables:
577 LP_NUM_THREADS: 1
Dave Airliee6b2af52019-12-03 15:23:45 +1000578 NIR_VALIDATE: 0
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100579 PIGLIT_PROFILES: quick_shader
Michel Dänzer576f7b62019-10-22 17:16:52 +0200580
Samuel Pitoiset16b999b2019-11-19 08:39:00 +0100581.deqp-test:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200582 variables:
583 DEQP_SKIPS: deqp-default-skips.txt
584 script:
585 - ./artifacts/deqp-runner.sh
586
Samuel Pitoiset16b999b2019-11-19 08:39:00 +0100587.deqp-test-gl:
588 extends:
589 - .test-gl
590 - .deqp-test
591
592.deqp-test-vk:
593 extends:
594 - .test-vk
595 - .deqp-test
596 variables:
597 DEQP_VER: vk
598
Eric Anholt46daaca2019-06-28 16:35:32 -0700599test-llvmpipe-gles2:
Eric Anholt46daaca2019-06-28 16:35:32 -0700600 variables:
601 DEQP_VER: gles2
Eric Anholtf08c8102019-11-04 10:54:41 -0800602 DEQP_PARALLEL: 4
Dave Airliee6b2af52019-12-03 15:23:45 +1000603 NIR_VALIDATE: 0
Eric Anholtf08c8102019-11-04 10:54:41 -0800604 # Don't use threads inside llvmpipe, we've already got all 4 cores
605 # busy with DEQP_PARALLEL.
606 LP_NUM_THREADS: 0
Eric Anholt46daaca2019-06-28 16:35:32 -0700607 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
608 LIBGL_ALWAYS_SOFTWARE: "true"
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100609 extends: .deqp-test-gl
Eric Anholt553cd822019-08-09 10:32:40 -0700610
611test-softpipe-gles2:
Michel Dänzer128581d2019-09-11 18:55:43 +0200612 extends: test-llvmpipe-gles2
Eric Anholt553cd822019-08-09 10:32:40 -0700613 variables:
Eric Anholt553cd822019-08-09 10:32:40 -0700614 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
Eric Anholtf08c8102019-11-04 10:54:41 -0800615 DEQP_SKIPS: deqp-softpipe-skips.txt
Eric Anholt553cd822019-08-09 10:32:40 -0700616 GALLIUM_DRIVER: "softpipe"
Eric Anholt553cd822019-08-09 10:32:40 -0700617
Eric Anholt52843ec2019-11-05 10:31:29 -0800618test-softpipe-gles3:
619 parallel: 2
Eric Anholt553cd822019-08-09 10:32:40 -0700620 variables:
621 DEQP_VER: gles3
Eric Anholt52843ec2019-11-05 10:31:29 -0800622 extends: test-softpipe-gles2
623
624test-softpipe-gles31:
625 parallel: 4
626 variables:
627 DEQP_VER: gles31
628 extends: test-softpipe-gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700629
Michel Dänzer128581d2019-09-11 18:55:43 +0200630arm64_a630_gles2:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100631 extends:
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100632 - .deqp-test-gl
Michel Dänzerc6c76522019-11-11 18:13:28 +0100633 - .use-arm_test
Eric Anholt6f0dc082019-06-28 16:35:32 -0700634 variables:
635 DEQP_VER: gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700636 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
637 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
638 NIR_VALIDATE: 0
Eric Anholtdd76a6f2019-11-21 05:12:58 -0800639 DEQP_PARALLEL: 4
Rob Clarkfdaf7772019-11-17 11:33:01 -0800640 FLAKES_CHANNEL: "#freedreno-ci"
Eric Anholt6f0dc082019-06-28 16:35:32 -0700641 tags:
642 - mesa-cheza
643 dependencies:
644 - meson-arm64
Eric Anholt6f0dc082019-06-28 16:35:32 -0700645
Michel Dänzer128581d2019-09-11 18:55:43 +0200646arm64_a630_gles31:
647 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700648 variables:
Michel Dänzer128581d2019-09-11 18:55:43 +0200649 DEQP_VER: gles31
Eric Anholt6f0dc082019-06-28 16:35:32 -0700650
651arm64_a630_gles3:
Michel Dänzer128581d2019-09-11 18:55:43 +0200652 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700653 variables:
654 DEQP_VER: gles3
655
Michel Dänzer128581d2019-09-11 18:55:43 +0200656arm64_a306_gles2:
Michel Dänzer128581d2019-09-11 18:55:43 +0200657 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700658 variables:
Michel Dänzer128581d2019-09-11 18:55:43 +0200659 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
660 DEQP_SKIPS: deqp-default-skips.txt
Michel Dänzer128581d2019-09-11 18:55:43 +0200661 tags:
662 - db410c
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100663
664# RADV CI
665.test-radv:
666 variables:
667 VK_DRIVER: radeon
Samuel Pitoisetff2e11b2019-12-06 17:07:35 +0100668 RADV_DEBUG: checkir
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100669 # Can only be triggered manually on personal branches because RADV is the only
670 # driver that does Vulkan testing at the moment.
671 rules:
672 # Never test RADV by default in the main project.
673 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
674 when: never
675 # Never test RADV by default for merge requests.
676 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
677 when: never
678 # Otherwise, allow testing RADV if the test image for VK has been manually
679 # started.
680 - when: on_success
681
682radv_polaris10_vkcts:
683 extends:
684 - .deqp-test-vk
685 - .test-radv
686 variables:
687 DEQP_PARALLEL: 4
688 DEQP_SKIPS: deqp-radv-polaris10-skips.txt
689 tags:
690 - polaris10