blob: 46cacb60e39bb496217c0bc84ed6039bd00d5282 [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
48 - if: '$CI_PROJECT_PATH != "mesa/mesa"'
49 if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
50 when: manual
51 # Otherwise, most jobs won't run
52 - when: never
Michel Dänzer6140ed32019-03-26 18:39:41 +010053 retry:
54 max: 2
55 when:
56 - runner_system_failure
Eric Engestromac78ca42019-11-12 23:42:21 +000057 # Cancel CI run if a newer commit is pushed to the same branch
58 interruptible: true
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000059
Michel Dänzer8775b742020-01-13 09:45:57 +010060success:
61 stage: success
62 image: debian:stable-slim
63 only:
64 - merge_requests
65 except:
66 changes:
67 *paths
Michel Dänzer2dd0cc62020-01-20 18:34:34 +010068 variables:
69 GIT_STRATEGY: none
Michel Dänzer8775b742020-01-13 09:45:57 +010070 script:
71 - echo "Dummy job to make sure every merge request pipeline runs at least one job"
72
73
Michel Dänzere426f402019-09-06 17:35:52 +020074.ci-deqp-artifacts:
Eric Anholt46daaca2019-06-28 16:35:32 -070075 artifacts:
76 when: always
77 untracked: false
78 paths:
79 # Watch out! Artifacts are relative to the build dir.
80 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
81 - artifacts
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000082
Tomeu Vizoso22d97642019-12-17 11:50:14 +010083# Build the CI docker images.
Michel Dänzerc6c76522019-11-11 18:13:28 +010084#
85# DEBIAN_TAG is the tag of the docker image used by later stage jobs. If the
86# image doesn't exist yet, the container stage job generates it.
87#
88# In order to generate a new image, one should generally change the tag.
89# While removing the image from the registry would also work, that's not
90# recommended except for ephemeral images during development: Replacing
91# an image after a significant amount of time might pull in newer
92# versions of gcc/clang or other packages, which might break the build
93# with older commits using the same tag.
94#
95# After merging a change resulting in generating a new image to the
96# main repository, it's recommended to remove the image from the source
97# repository's container registry, so that the image from the main
98# repository's registry will be used there as well.
Michel Dänzer8a199922019-09-06 17:04:47 +020099
Eric Engestrom81b98e92019-10-14 23:04:14 +0100100.container:
101 stage: container
102 extends:
103 - .ci-run-policy
104 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100105 DEBIAN_VERSION: buster-slim
106 REPO_SUFFIX: $CI_JOB_NAME
Michel Dänzer506e9d52019-11-07 20:08:03 +0100107 DEBIAN_EXEC: 'bash .gitlab-ci/container/${CI_JOB_NAME}.sh'
Eric Engestrom81b98e92019-10-14 23:04:14 +0100108 # no need to pull the whole repo to build the container image
109 GIT_STRATEGY: none
110
Michel Dänzerc6c76522019-11-11 18:13:28 +0100111# Debian 10 based x86 build image
Michel Dänzer3a48f452019-11-13 17:43:41 +0100112x86_build:
Michel Dänzere426f402019-09-06 17:35:52 +0200113 extends:
114 - .debian@container-ifnot-exists
Eric Engestrom81b98e92019-10-14 23:04:14 +0100115 - .container
Michel Dänzerc6c76522019-11-11 18:13:28 +0100116 variables:
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100117 DEBIAN_TAG: &x86_build "2020-01-14"
Eric Engestrom46d23c02019-01-20 11:26:53 +0000118
Michel Dänzer3a48f452019-11-13 17:43:41 +0100119.use-x86_build:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100120 variables:
121 TAG: *x86_build
122 image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG"
Michel Dänzereb86cba2019-10-10 15:27:17 +0200123 needs:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100124 - x86_build
Michel Dänzereb86cba2019-10-10 15:27:17 +0200125
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100126# Debian 10 based x86 test image for GL
127x86_test-gl:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100128 extends: x86_build
Michel Dänzeraebf43d2019-11-05 18:52:24 +0100129 variables:
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100130 DEBIAN_TAG: &x86_test-gl "2020-01-14"
Michel Dänzeraebf43d2019-11-05 18:52:24 +0100131
Samuel Pitoisetf2a594f2019-11-18 09:23:18 +0100132# Debian 10 based x86 test image for VK
133x86_test-vk:
134 extends: x86_build
135 variables:
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100136 DEBIAN_TAG: &x86_test-vk "2020-01-14"
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100137 # Can only be triggered manually on personal branches because RADV is the only
138 # driver that does Vulkan testing at the moment.
139 rules:
140 # Never build the test image for VK by default in the main project.
141 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
142 when: never
143 # Never build the test image for VK by default for merge requests.
144 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
145 when: never
146 # Otherwise, allow building it manually for personal branches.
147 - when: manual
148
Samuel Pitoisetf2a594f2019-11-18 09:23:18 +0100149
Michel Dänzerc6c76522019-11-11 18:13:28 +0100150# Debian 9 based x86 build image (old LLVM)
Michel Dänzer3a48f452019-11-13 17:43:41 +0100151x86_build_old:
152 extends: x86_build
Michel Dänzer8a199922019-09-06 17:04:47 +0200153 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100154 DEBIAN_TAG: &x86_build_old "2019-09-18"
155 DEBIAN_VERSION: stretch-slim
Michel Dänzer8a199922019-09-06 17:04:47 +0200156
Michel Dänzer3a48f452019-11-13 17:43:41 +0100157.use-x86_build_old:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100158 variables:
159 TAG: *x86_build_old
160 image: "$CI_REGISTRY_IMAGE/debian/x86_build_old:$TAG"
Michel Dänzer88319f22019-09-18 16:17:01 +0200161 needs:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100162 - x86_build_old
Michel Dänzer88319f22019-09-18 16:17:01 +0200163
Michel Dänzerc6c76522019-11-11 18:13:28 +0100164# Debian 10 based ARM build image
Michel Dänzer3a48f452019-11-13 17:43:41 +0100165arm_build:
Michel Dänzere426f402019-09-06 17:35:52 +0200166 extends:
167 - .debian@container-ifnot-exists@arm64v8
Eric Engestrom81b98e92019-10-14 23:04:14 +0100168 - .container
Eric Anholt6f0dc082019-06-28 16:35:32 -0700169 variables:
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100170 DEBIAN_TAG: &arm_build "2020-01-14"
Eric Engestrom46d23c02019-01-20 11:26:53 +0000171
Michel Dänzerc6c76522019-11-11 18:13:28 +0100172.use-arm_build:
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100173 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100174 TAG: *arm_build
175 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
176 needs:
177 - arm_build
178
179# Debian 10 based ARM test image
180arm_test:
181 extends: arm_build
182 variables:
Tomeu Vizosod62dd8b2019-12-13 10:20:23 +0100183 DEBIAN_TAG: &arm_test "2019-12-18"
Michel Dänzerc6c76522019-11-11 18:13:28 +0100184
185.use-arm_test:
186 variables:
187 TAG: *arm_test
188 image: "$CI_REGISTRY_IMAGE/debian/arm_test:$TAG"
189 needs:
190 - meson-arm64
191 - arm_test
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100192
Eric Engestrom81b98e92019-10-14 23:04:14 +0100193
Eric Engestrom46d23c02019-01-20 11:26:53 +0000194# BUILD
195
Dylan Baker06e46472019-10-23 14:21:31 -0700196# Shared between windows and Linux
197.build-common:
Eric Engestromaba78c22019-10-14 23:52:58 +0100198 extends: .ci-run-policy
Eric Engestroma0f8a072019-09-11 18:51:46 +0100199 stage: build
Eric Engestrom46d23c02019-01-20 11:26:53 +0000200 artifacts:
Eric Anholtdd3d0b22019-07-24 09:27:48 -0700201 when: always
202 paths:
203 - _build/meson-logs/*.txt
204 # scons:
Michel Dänzer5229f272019-07-26 12:20:41 +0200205 - build/*/config.log
Eric Anholtf60defa2019-04-10 15:59:12 -0700206 - shader-db
Dylan Baker06e46472019-10-23 14:21:31 -0700207
208# Just Linux
209.build-linux:
210 extends: .build-common
Michel Dänzere9de19f2019-04-04 18:01:27 +0200211 variables:
212 CCACHE_COMPILERCHECK: "content"
Michel Dänzer32618ee2019-11-20 09:11:35 +0100213 CCACHE_COMPRESS: "true"
214 CCACHE_DIR: /cache/mesa/ccache
Eric Engestrom23b485c2019-02-12 16:59:27 +0000215 # Use ccache transparently, and print stats before/after
216 before_script:
217 - export PATH="/usr/lib/ccache:$PATH"
218 - export CCACHE_BASEDIR="$PWD"
Michel Dänzer32618ee2019-11-20 09:11:35 +0100219 - ccache --show-stats
Eric Engestrom23b485c2019-02-12 16:59:27 +0000220 after_script:
Eric Engestrom23b485c2019-02-12 16:59:27 +0000221 - ccache --show-stats
Eric Engestrom46d23c02019-01-20 11:26:53 +0000222
Dylan Baker19851c92019-10-23 14:36:19 -0700223.build-windows:
224 extends: .build-common
225 tags:
226 - mesa-windows
227 cache:
228 key: ${CI_JOB_NAME}
229 paths:
230 - subprojects/packagecache
231
Eric Engestrom46d23c02019-01-20 11:26:53 +0000232.meson-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100233 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700234 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100235 - .use-x86_build
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100236 variables:
237 LLVM_VERSION: 9
Eric Engestrom23b485c2019-02-12 16:59:27 +0000238 script:
Michel Dänzercc2b3a92019-05-03 10:49:43 +0200239 - .gitlab-ci/meson-build.sh
Eric Engestrom46d23c02019-01-20 11:26:53 +0000240
Eric Engestrom06b245b2019-01-23 15:46:10 +0000241.scons-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100242 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700243 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100244 - .use-x86_build
Eric Engestrom06b245b2019-01-23 15:46:10 +0000245 variables:
Eric Anholtcb655d22019-11-06 11:14:14 -0800246 SCONSFLAGS: "-j4"
Eric Engestrom06b245b2019-01-23 15:46:10 +0000247 script:
Michel Dänzer0374aac2019-09-12 11:34:43 +0200248 - .gitlab-ci/scons-build.sh
Eric Engestrom06b245b2019-01-23 15:46:10 +0000249
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100250meson-testing:
Michel Dänzere426f402019-09-06 17:35:52 +0200251 extends:
252 - .meson-build
253 - .ci-deqp-artifacts
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200254 variables:
255 UNWIND: "true"
256 DRI_LOADERS: >
257 -D glx=dri
258 -D gbm=true
259 -D egl=true
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100260 -D platforms=x11,drm,surfaceless
261 GALLIUM_ST: >
262 -D dri3=true
263 GALLIUM_DRIVERS: "swrast"
Samuel Pitoiset40c6a562019-11-19 14:46:53 +0100264 VULKAN_DRIVERS: amd
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100265 BUILDTYPE: "debugoptimized"
266 script:
267 - .gitlab-ci/meson-build.sh
268 - .gitlab-ci/prepare-artifacts.sh
269
270meson-main:
271 extends: .meson-build
272 variables:
273 UNWIND: "true"
274 DRI_LOADERS: >
275 -D glx=dri
276 -D gbm=true
277 -D egl=true
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200278 -D platforms=x11,wayland,drm,surfaceless
279 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
280 GALLIUM_ST: >
281 -D dri3=true
282 -D gallium-extra-hud=true
283 -D gallium-vdpau=true
284 -D gallium-xvmc=true
285 -D gallium-omx=bellagio
286 -D gallium-va=true
287 -D gallium-xa=true
288 -D gallium-nine=true
289 -D gallium-opencl=disabled
Samuel Pitoisete6d26d72019-11-19 14:36:02 +0100290 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 +0200291 EXTRA_OPTION: >
292 -D osmesa=gallium
293 -D tools=all
Michel Dänzer59fcb012019-10-23 18:42:53 +0200294 script:
295 - .gitlab-ci/meson-build.sh
296 - .gitlab-ci/run-shader-db.sh
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200297
Michel Dänzere5364462019-09-13 11:59:43 +0200298.meson-cross:
299 extends:
300 - .meson-build
Michel Dänzere5364462019-09-13 11:59:43 +0200301 variables:
302 UNWIND: "false"
303 DRI_LOADERS: >
304 -D glx=disabled
305 -D gbm=false
306 -D egl=true
307 -D platforms=surfaceless
308 -D osmesa=none
309 GALLIUM_ST: >
310 -D dri3=false
311 -D gallium-vdpau=false
312 -D gallium-xvmc=false
313 -D gallium-omx=disabled
314 -D gallium-va=false
315 -D gallium-xa=false
316 -D gallium-nine=false
Michel Dänzere5364462019-09-13 11:59:43 +0200317
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200318.meson-arm:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100319 extends:
320 - .meson-cross
321 - .use-arm_build
Michel Dänzere5364462019-09-13 11:59:43 +0200322 variables:
Michel Dänzere5364462019-09-13 11:59:43 +0200323 VULKAN_DRIVERS: freedreno
Michel Dänzer793f6b32019-10-08 19:48:41 +0200324 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100325 BUILDTYPE: "debugoptimized"
Michel Dänzere5364462019-09-13 11:59:43 +0200326 EXTRA_OPTION: >
Michel Dänzere5364462019-09-13 11:59:43 +0200327 -D I-love-half-baked-turnips=true
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200328 tags:
329 - aarch64
330
331meson-armhf:
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100332 extends:
333 - .meson-arm
334 - .ci-deqp-artifacts
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200335 variables:
336 CROSS: armhf
Michel Dänzer793f6b32019-10-08 19:48:41 +0200337 LLVM_VERSION: "7"
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100338 script:
339 - .gitlab-ci/meson-build.sh
340 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzere5364462019-09-13 11:59:43 +0200341
342meson-arm64:
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200343 extends:
344 - .meson-arm
345 - .ci-deqp-artifacts
Michel Dänzere5364462019-09-13 11:59:43 +0200346 variables:
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100347 LLVM_VERSION: "8"
Samuel Pitoiset47ba2272019-11-12 14:25:16 +0100348 VULKAN_DRIVERS: "freedreno,amd"
Michel Dänzer59fcb012019-10-23 18:42:53 +0200349 script:
350 - .gitlab-ci/meson-build.sh
351 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzere5364462019-09-13 11:59:43 +0200352
Michel Dänzera2cce702019-03-20 15:58:31 +0100353meson-clang:
354 extends: .meson-build
355 variables:
356 UNWIND: "true"
Samuel Pitoiset73621762019-11-19 14:37:32 +0100357 DRI_LOADERS: >
358 -D glvnd=true
Michel Dänzera2cce702019-03-20 15:58:31 +0100359 DRI_DRIVERS: "auto"
360 GALLIUM_DRIVERS: "auto"
Eric Engestrom47f419d2019-05-01 12:09:26 +0100361 VULKAN_DRIVERS: intel,amd,freedreno
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100362 CC: "ccache clang-9"
363 CXX: "ccache clang++-9"
Michel Dänzera2cce702019-03-20 15:58:31 +0100364
Michel Dänzeraaf1b092019-10-30 09:38:20 +0100365.meson-windows:
Dylan Baker19851c92019-10-23 14:36:19 -0700366 extends:
367 - .build-windows
368 before_script:
369 - $ENV:ARCH = "x86"
370 - $ENV:VERSION = "2019\Community"
371 script:
372 - cmd /C .gitlab-ci\meson-build.bat
373
Michel Dänzer82b30092019-05-03 18:19:25 +0200374scons-swr:
375 extends: .scons-build
Eric Engestrom46d23c02019-01-20 11:26:53 +0000376 variables:
Michel Dänzer82b30092019-05-03 18:19:25 +0200377 SCONS_TARGET: "swr=1"
378 SCONS_CHECK_COMMAND: "true"
379 LLVM_VERSION: "6.0"
380
381scons-win64:
382 extends: .scons-build
383 variables:
384 SCONS_TARGET: platform=windows machine=x86_64
385 SCONS_CHECK_COMMAND: "true"
Eric Engestrom89a74672019-01-21 09:42:37 +0000386
Michel Dänzer68977152019-05-03 10:58:48 +0200387meson-clover:
Eric Engestromb5a70af2019-01-28 18:05:22 +0000388 extends: .meson-build
389 variables:
390 UNWIND: "true"
391 DRI_LOADERS: >
392 -D glx=disabled
393 -D egl=false
394 -D gbm=false
395 GALLIUM_ST: >
396 -D dri3=false
397 -D gallium-vdpau=false
398 -D gallium-xvmc=false
399 -D gallium-omx=disabled
400 -D gallium-va=false
401 -D gallium-xa=false
402 -D gallium-nine=false
403 -D gallium-opencl=icd
Michel Dänzer68977152019-05-03 10:58:48 +0200404 script:
405 - export GALLIUM_DRIVERS="r600,radeonsi"
406 - .gitlab-ci/meson-build.sh
Samuel Pitoiset7d1c0912019-08-21 11:45:25 +0200407 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
Michel Dänzer68977152019-05-03 10:58:48 +0200408 - export GALLIUM_DRIVERS="i915,r600"
Michel Dänzer8a199922019-09-06 17:04:47 +0200409 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
410 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
411
412meson-clover-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200413 extends:
414 - meson-clover
Michel Dänzer3a48f452019-11-13 17:43:41 +0100415 - .use-x86_build_old
Michel Dänzer8a199922019-09-06 17:04:47 +0200416 variables:
417 UNWIND: "false"
418 DRI_LOADERS: >
419 -D glx=disabled
420 -D egl=false
421 -D gbm=false
422 -D platforms=drm,surfaceless
423 GALLIUM_DRIVERS: "i915,r600"
424 script:
Michel Dänzer68977152019-05-03 10:58:48 +0200425 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
426 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
427 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
Eric Engestrom8dab7072019-01-28 18:09:24 +0000428
Michel Dänzer82b30092019-05-03 18:19:25 +0200429meson-vulkan:
430 extends: .meson-build
431 variables:
432 UNWIND: "false"
433 DRI_LOADERS: >
434 -D glx=disabled
435 -D gbm=false
436 -D egl=false
437 -D platforms=x11,wayland,drm
438 -D osmesa=none
439 GALLIUM_ST: >
440 -D dri3=true
441 -D gallium-vdpau=false
442 -D gallium-xvmc=false
443 -D gallium-omx=disabled
444 -D gallium-va=false
445 -D gallium-xa=false
446 -D gallium-nine=false
447 -D gallium-opencl=disabled
Michel Dänzer75cc8c02019-09-25 12:56:58 +0200448 -D b_sanitize=undefined
449 -D c_args=-fno-sanitize-recover=all
450 -D cpp_args=-fno-sanitize-recover=all
451 UBSAN_OPTIONS: "print_stacktrace=1"
Michel Dänzer82b30092019-05-03 18:19:25 +0200452 VULKAN_DRIVERS: intel,amd,freedreno
Eric Engestrom5f8d29a2019-05-08 18:17:23 +0200453 EXTRA_OPTION: >
454 -D vulkan-overlay-layer=true
Michel Dänzer82b30092019-05-03 18:19:25 +0200455
Eric Anholt030aa6e2019-08-07 14:05:51 -0700456# While the main point of this build is testing the i386 cross build,
457# we also use this one to test some other options that are exclusive
458# with meson-main's choices (classic swrast and osmesa)
Eric Anholt11aa32a2019-07-11 12:58:28 -0700459meson-i386:
460 extends: .meson-cross
461 variables:
Eric Engestrom1c82fa02019-08-09 23:46:50 +0100462 CROSS: i386
Eric Anholt11aa32a2019-07-11 12:58:28 -0700463 VULKAN_DRIVERS: intel
Eric Anholt030aa6e2019-08-07 14:05:51 -0700464 DRI_DRIVERS: "swrast"
465 GALLIUM_DRIVERS: "iris"
Eric Anholt11aa32a2019-07-11 12:58:28 -0700466 EXTRA_OPTION: >
Eric Anholt11aa32a2019-07-11 12:58:28 -0700467 -D vulkan-overlay-layer=true
Eric Anholt030aa6e2019-08-07 14:05:51 -0700468 -D llvm=false
469 -D osmesa=classic
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