blob: 5e58f8144099a3826f35374f456ef7bfca3d1c49 [file] [log] [blame]
Eric Engestrom329f5cd2019-01-20 11:21:45 +00001# This is the tag of the docker image used for the build jobs. If the
Eric Engestroma0f8a072019-09-11 18:51:46 +01002# image doesn't exist yet, the containers stage generates it.
Eric Engestrom329f5cd2019-01-20 11:21:45 +00003#
4# In order to generate a new image, one should generally change the tag.
5# While removing the image from the registry would also work, that's not
6# recommended except for ephemeral images during development: Replacing
7# an image after a significant amount of time might pull in newer
8# versions of gcc/clang or other packages, which might break the build
9# with older commits using the same tag.
10#
11# After merging a change resulting in generating a new image to the
12# main repository, it's recommended to remove the image from the source
13# repository's container registry, so that the image from the main
14# repository's registry will be used there as well.
Eric Engestrom329f5cd2019-01-20 11:21:45 +000015variables:
Benjamin Tissoires7f8a9a12019-04-02 09:24:00 +020016 UPSTREAM_REPO: mesa/mesa
Michel Dänzer163ec5d2019-10-08 19:46:11 +020017 DEBIAN_TAG: "2019-10-22"
18 DEBIAN_ARM64_TAG: "arm64v8-2019-10-22"
Michel Dänzer8a199922019-09-06 17:04:47 +020019 STRETCH_TAG: "2019-09-18"
20 DEBIAN_VERSION: buster-slim
21 STRETCH_VERSION: stretch-slim
Michel Dänzerd00b1c42019-04-02 16:56:54 +020022 DEBIAN_IMAGE: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_TAG"
Michel Dänzer8a199922019-09-06 17:04:47 +020023 DEBIAN_ARM64_IMAGE: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_ARM64_TAG"
24 STRETCH_IMAGE: "$CI_REGISTRY_IMAGE/debian/$STRETCH_VERSION:$STRETCH_TAG"
Benjamin Tissoires7f8a9a12019-04-02 09:24:00 +020025
26include:
27 - project: 'wayland/ci-templates'
Michel Dänzer2259b452019-09-06 17:01:50 +020028 ref: 1f7f57c64ff4ebbf7292e3b7a13600518b8cb24c
Michel Dänzerd00b1c42019-04-02 16:56:54 +020029 file: '/templates/debian.yml'
Eric Engestrom329f5cd2019-01-20 11:21:45 +000030
Tomeu Vizoso7b01f722019-09-18 16:03:36 +020031include:
Tomeu Vizoso555c0de2019-09-18 16:43:30 +020032 - local: '/.gitlab-ci/lava-gitlab-ci.yml'
Tomeu Vizoso7b01f722019-09-18 16:03:36 +020033
Eric Engestrom329f5cd2019-01-20 11:21:45 +000034stages:
Eric Engestrom81b98e92019-10-14 23:04:14 +010035 - container
Eric Engestroma0f8a072019-09-11 18:51:46 +010036 - build
Eric Anholt46daaca2019-06-28 16:35:32 -070037 - test
Eric Engestrom329f5cd2019-01-20 11:21:45 +000038
39
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000040# When to automatically run the CI
Michel Dänzere426f402019-09-06 17:35:52 +020041.ci-run-policy:
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000042 only:
Michel Dänzerb48e64f2019-04-10 10:33:13 +020043 - branches@mesa/mesa
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000044 - merge_requests
45 - /^ci([-/].*)?$/
Michel Dänzer6140ed32019-03-26 18:39:41 +010046 retry:
47 max: 2
48 when:
49 - runner_system_failure
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000050
Michel Dänzere426f402019-09-06 17:35:52 +020051.ci-deqp-artifacts:
Eric Anholt46daaca2019-06-28 16:35:32 -070052 artifacts:
53 when: always
54 untracked: false
55 paths:
56 # Watch out! Artifacts are relative to the build dir.
57 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
58 - artifacts
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000059
Michel Dänzer8a199922019-09-06 17:04:47 +020060# Build the normal CI native and cross-build docker images.
61
Eric Engestrom81b98e92019-10-14 23:04:14 +010062.container:
63 stage: container
64 extends:
65 - .ci-run-policy
66 variables:
67 # no need to pull the whole repo to build the container image
68 GIT_STRATEGY: none
69
Michel Dänzer163ec5d2019-10-08 19:46:11 +020070debian-10:amd64:
Michel Dänzere426f402019-09-06 17:35:52 +020071 extends:
72 - .debian@container-ifnot-exists
Eric Engestrom81b98e92019-10-14 23:04:14 +010073 - .container
Eric Engestrom329f5cd2019-01-20 11:21:45 +000074 variables:
Michel Dänzerd00b1c42019-04-02 16:56:54 +020075 DEBIAN_EXEC: 'bash .gitlab-ci/debian-install.sh'
Eric Engestrom46d23c02019-01-20 11:26:53 +000076
Michel Dänzer163ec5d2019-10-08 19:46:11 +020077.use-debian-10:amd64:
Michel Dänzereb86cba2019-10-10 15:27:17 +020078 image: $DEBIAN_IMAGE
79 needs:
Michel Dänzer163ec5d2019-10-08 19:46:11 +020080 - debian-10:amd64
Michel Dänzereb86cba2019-10-10 15:27:17 +020081
Michel Dänzer163ec5d2019-10-08 19:46:11 +020082debian-9:amd64:
83 extends: debian-10:amd64
Michel Dänzer8a199922019-09-06 17:04:47 +020084 variables:
85 DEBIAN_TAG: $STRETCH_TAG
86 DEBIAN_VERSION: $STRETCH_VERSION
87 DEBIAN_IMAGE: $STRETCH_IMAGE
88 DEBIAN_EXEC: 'bash .gitlab-ci/debian-stretch-install.sh'
89
Michel Dänzer163ec5d2019-10-08 19:46:11 +020090.use-debian-9:amd64:
Michel Dänzer88319f22019-09-18 16:17:01 +020091 image: $STRETCH_IMAGE
92 needs:
Michel Dänzer163ec5d2019-10-08 19:46:11 +020093 - debian-9:amd64
Michel Dänzer88319f22019-09-18 16:17:01 +020094
Michel Dänzer163ec5d2019-10-08 19:46:11 +020095debian-10:arm64:
Michel Dänzere426f402019-09-06 17:35:52 +020096 extends:
97 - .debian@container-ifnot-exists@arm64v8
Eric Engestrom81b98e92019-10-14 23:04:14 +010098 - .container
Eric Anholt6f0dc082019-06-28 16:35:32 -070099 variables:
100 DEBIAN_TAG: "$DEBIAN_ARM64_TAG"
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200101 DEBIAN_EXEC: 'bash .gitlab-ci/debian-arm64-install.sh'
Eric Engestrom46d23c02019-01-20 11:26:53 +0000102
Eric Engestrom81b98e92019-10-14 23:04:14 +0100103
Eric Engestrom46d23c02019-01-20 11:26:53 +0000104# BUILD
105
Dylan Baker06e46472019-10-23 14:21:31 -0700106# Shared between windows and Linux
107.build-common:
Eric Engestromaba78c22019-10-14 23:52:58 +0100108 extends: .ci-run-policy
Eric Engestroma0f8a072019-09-11 18:51:46 +0100109 stage: build
Eric Engestrom46d23c02019-01-20 11:26:53 +0000110 artifacts:
Eric Anholtdd3d0b22019-07-24 09:27:48 -0700111 when: always
112 paths:
113 - _build/meson-logs/*.txt
114 # scons:
Michel Dänzer5229f272019-07-26 12:20:41 +0200115 - build/*/config.log
Eric Anholtf60defa2019-04-10 15:59:12 -0700116 - shader-db
Dylan Baker06e46472019-10-23 14:21:31 -0700117
118# Just Linux
119.build-linux:
120 extends: .build-common
121 cache:
122 key: ${CI_JOB_NAME}
123 paths:
124 - ccache
Michel Dänzere9de19f2019-04-04 18:01:27 +0200125 variables:
126 CCACHE_COMPILERCHECK: "content"
Eric Engestrom23b485c2019-02-12 16:59:27 +0000127 # Use ccache transparently, and print stats before/after
128 before_script:
129 - export PATH="/usr/lib/ccache:$PATH"
130 - export CCACHE_BASEDIR="$PWD"
131 - export CCACHE_DIR="$PWD/ccache"
Michel Dänzer4712fdf2019-10-01 16:00:16 +0200132 - ccache --max-size=1500M
Eric Engestrom23b485c2019-02-12 16:59:27 +0000133 - ccache --zero-stats || true
134 - ccache --show-stats || true
135 after_script:
Eric Anholt46daaca2019-06-28 16:35:32 -0700136 # In case the install dir is being saved as artifacts, tar it up
137 # so that symlinks and hardlinks aren't each packed separately in
138 # the zip file.
139 - if [ -d install ]; then
140 tar -cf artifacts/install.tar install;
141 fi
Eric Engestrom23b485c2019-02-12 16:59:27 +0000142 - export CCACHE_DIR="$PWD/ccache"
143 - ccache --show-stats
Eric Engestrom46d23c02019-01-20 11:26:53 +0000144
145.meson-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100146 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700147 - .build-linux
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200148 - .use-debian-10:amd64
Eric Engestrom23b485c2019-02-12 16:59:27 +0000149 script:
Michel Dänzercc2b3a92019-05-03 10:49:43 +0200150 - .gitlab-ci/meson-build.sh
Eric Engestrom46d23c02019-01-20 11:26:53 +0000151
Eric Engestrom06b245b2019-01-23 15:46:10 +0000152.scons-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100153 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700154 - .build-linux
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200155 - .use-debian-10:amd64
Eric Engestrom06b245b2019-01-23 15:46:10 +0000156 variables:
157 SCONSFLAGS: "-j4"
158 script:
Michel Dänzer0374aac2019-09-12 11:34:43 +0200159 - .gitlab-ci/scons-build.sh
Eric Engestrom06b245b2019-01-23 15:46:10 +0000160
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200161meson-main:
Michel Dänzere426f402019-09-06 17:35:52 +0200162 extends:
163 - .meson-build
164 - .ci-deqp-artifacts
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200165 variables:
166 UNWIND: "true"
167 DRI_LOADERS: >
168 -D glx=dri
169 -D gbm=true
170 -D egl=true
171 -D platforms=x11,wayland,drm,surfaceless
172 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
173 GALLIUM_ST: >
174 -D dri3=true
175 -D gallium-extra-hud=true
176 -D gallium-vdpau=true
177 -D gallium-xvmc=true
178 -D gallium-omx=bellagio
179 -D gallium-va=true
180 -D gallium-xa=true
181 -D gallium-nine=true
182 -D gallium-opencl=disabled
183 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima"
184 LLVM_VERSION: "7"
185 EXTRA_OPTION: >
186 -D osmesa=gallium
187 -D tools=all
188 MESON_SHADERDB: "true"
189 BUILDTYPE: "debugoptimized"
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200190
Michel Dänzere5364462019-09-13 11:59:43 +0200191.meson-cross:
192 extends:
193 - .meson-build
Michel Dänzere5364462019-09-13 11:59:43 +0200194 variables:
195 UNWIND: "false"
196 DRI_LOADERS: >
197 -D glx=disabled
198 -D gbm=false
199 -D egl=true
200 -D platforms=surfaceless
201 -D osmesa=none
202 GALLIUM_ST: >
203 -D dri3=false
204 -D gallium-vdpau=false
205 -D gallium-xvmc=false
206 -D gallium-omx=disabled
207 -D gallium-va=false
208 -D gallium-xa=false
209 -D gallium-nine=false
Michel Dänzere5364462019-09-13 11:59:43 +0200210
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200211.meson-arm:
Michel Dänzere5364462019-09-13 11:59:43 +0200212 extends: .meson-cross
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200213 image: $DEBIAN_ARM64_IMAGE
Michel Dänzere5364462019-09-13 11:59:43 +0200214 variables:
Michel Dänzere5364462019-09-13 11:59:43 +0200215 VULKAN_DRIVERS: freedreno
Michel Dänzer793f6b32019-10-08 19:48:41 +0200216 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
Michel Dänzere5364462019-09-13 11:59:43 +0200217 EXTRA_OPTION: >
Michel Dänzere5364462019-09-13 11:59:43 +0200218 -D I-love-half-baked-turnips=true
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200219 needs:
220 - debian-10:arm64
221 tags:
222 - aarch64
223
224meson-armhf:
225 extends: .meson-arm
226 variables:
227 CROSS: armhf
Michel Dänzer793f6b32019-10-08 19:48:41 +0200228 LLVM_VERSION: "7"
Michel Dänzere5364462019-09-13 11:59:43 +0200229
230meson-arm64:
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200231 extends:
232 - .meson-arm
233 - .ci-deqp-artifacts
Michel Dänzere5364462019-09-13 11:59:43 +0200234 variables:
Michel Dänzere5364462019-09-13 11:59:43 +0200235 BUILDTYPE: "debugoptimized"
236
Michel Dänzera2cce702019-03-20 15:58:31 +0100237# NOTE: Building SWR is 2x (yes two) times slower than all the other
238# gallium drivers combined.
239# Start this early so that it doesn't limit the total run time.
Eric Engestrom41407c62019-03-08 16:33:07 +0000240#
Eric Anholt030aa6e2019-08-07 14:05:51 -0700241# We also stick the glvnd build here, since we want non-glvnd in
242# meson-main for actual driver CI.
Eric Engestrom1291c682019-04-16 18:06:53 +0200243meson-swr-glvnd:
Michel Dänzera2cce702019-03-20 15:58:31 +0100244 extends: .meson-build
245 variables:
246 UNWIND: "true"
247 DRI_LOADERS: >
Eric Engestrom1291c682019-04-16 18:06:53 +0200248 -D glvnd=true
249 -D egl=true
Michel Dänzera2cce702019-03-20 15:58:31 +0100250 GALLIUM_ST: >
Eric Engestrom41407c62019-03-08 16:33:07 +0000251 -D dri3=true
Michel Dänzera2cce702019-03-20 15:58:31 +0100252 -D gallium-vdpau=false
253 -D gallium-xvmc=false
254 -D gallium-omx=disabled
255 -D gallium-va=false
256 -D gallium-xa=false
Eric Anholt030aa6e2019-08-07 14:05:51 -0700257 -D gallium-nine=false
Michel Dänzera2cce702019-03-20 15:58:31 +0100258 -D gallium-opencl=disabled
Eric Anholt030aa6e2019-08-07 14:05:51 -0700259 GALLIUM_DRIVERS: "swr,iris"
Michel Dänzera2cce702019-03-20 15:58:31 +0100260 LLVM_VERSION: "6.0"
261
262meson-clang:
263 extends: .meson-build
264 variables:
265 UNWIND: "true"
266 DRI_DRIVERS: "auto"
267 GALLIUM_DRIVERS: "auto"
Eric Engestrom47f419d2019-05-01 12:09:26 +0100268 VULKAN_DRIVERS: intel,amd,freedreno
Michel Dänzer3fca2b72019-04-05 10:36:29 +0200269 CC: "ccache clang-8"
270 CXX: "ccache clang++-8"
Michel Dänzera2cce702019-03-20 15:58:31 +0100271
Michel Dänzer82b30092019-05-03 18:19:25 +0200272scons-swr:
273 extends: .scons-build
Eric Engestrom46d23c02019-01-20 11:26:53 +0000274 variables:
Michel Dänzer82b30092019-05-03 18:19:25 +0200275 SCONS_TARGET: "swr=1"
276 SCONS_CHECK_COMMAND: "true"
277 LLVM_VERSION: "6.0"
278
279scons-win64:
280 extends: .scons-build
281 variables:
282 SCONS_TARGET: platform=windows machine=x86_64
283 SCONS_CHECK_COMMAND: "true"
Eric Engestrom89a74672019-01-21 09:42:37 +0000284
Michel Dänzer68977152019-05-03 10:58:48 +0200285meson-clover:
Eric Engestromb5a70af2019-01-28 18:05:22 +0000286 extends: .meson-build
287 variables:
288 UNWIND: "true"
289 DRI_LOADERS: >
290 -D glx=disabled
291 -D egl=false
292 -D gbm=false
293 GALLIUM_ST: >
294 -D dri3=false
295 -D gallium-vdpau=false
296 -D gallium-xvmc=false
297 -D gallium-omx=disabled
298 -D gallium-va=false
299 -D gallium-xa=false
300 -D gallium-nine=false
301 -D gallium-opencl=icd
Michel Dänzer68977152019-05-03 10:58:48 +0200302 script:
303 - export GALLIUM_DRIVERS="r600,radeonsi"
304 - .gitlab-ci/meson-build.sh
Samuel Pitoiset7d1c0912019-08-21 11:45:25 +0200305 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
Michel Dänzer68977152019-05-03 10:58:48 +0200306 - export GALLIUM_DRIVERS="i915,r600"
Michel Dänzer8a199922019-09-06 17:04:47 +0200307 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
308 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
309
310meson-clover-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200311 extends:
312 - meson-clover
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200313 - .use-debian-9:amd64
Michel Dänzer8a199922019-09-06 17:04:47 +0200314 variables:
315 UNWIND: "false"
316 DRI_LOADERS: >
317 -D glx=disabled
318 -D egl=false
319 -D gbm=false
320 -D platforms=drm,surfaceless
321 GALLIUM_DRIVERS: "i915,r600"
322 script:
Michel Dänzer68977152019-05-03 10:58:48 +0200323 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
324 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
325 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
Eric Engestrom8dab7072019-01-28 18:09:24 +0000326
Michel Dänzer82b30092019-05-03 18:19:25 +0200327meson-vulkan:
328 extends: .meson-build
329 variables:
330 UNWIND: "false"
331 DRI_LOADERS: >
332 -D glx=disabled
333 -D gbm=false
334 -D egl=false
335 -D platforms=x11,wayland,drm
336 -D osmesa=none
337 GALLIUM_ST: >
338 -D dri3=true
339 -D gallium-vdpau=false
340 -D gallium-xvmc=false
341 -D gallium-omx=disabled
342 -D gallium-va=false
343 -D gallium-xa=false
344 -D gallium-nine=false
345 -D gallium-opencl=disabled
Michel Dänzer75cc8c02019-09-25 12:56:58 +0200346 -D b_sanitize=undefined
347 -D c_args=-fno-sanitize-recover=all
348 -D cpp_args=-fno-sanitize-recover=all
349 UBSAN_OPTIONS: "print_stacktrace=1"
Michel Dänzer82b30092019-05-03 18:19:25 +0200350 VULKAN_DRIVERS: intel,amd,freedreno
Samuel Pitoiset7d1c0912019-08-21 11:45:25 +0200351 LLVM_VERSION: "8"
Eric Engestrom5f8d29a2019-05-08 18:17:23 +0200352 EXTRA_OPTION: >
353 -D vulkan-overlay-layer=true
Michel Dänzer82b30092019-05-03 18:19:25 +0200354
Eric Anholt030aa6e2019-08-07 14:05:51 -0700355# While the main point of this build is testing the i386 cross build,
356# we also use this one to test some other options that are exclusive
357# with meson-main's choices (classic swrast and osmesa)
Eric Anholt11aa32a2019-07-11 12:58:28 -0700358meson-i386:
359 extends: .meson-cross
360 variables:
Eric Engestrom1c82fa02019-08-09 23:46:50 +0100361 CROSS: i386
Eric Anholt11aa32a2019-07-11 12:58:28 -0700362 VULKAN_DRIVERS: intel
Eric Anholt030aa6e2019-08-07 14:05:51 -0700363 DRI_DRIVERS: "swrast"
364 GALLIUM_DRIVERS: "iris"
Eric Anholt11aa32a2019-07-11 12:58:28 -0700365 EXTRA_OPTION: >
Eric Anholt11aa32a2019-07-11 12:58:28 -0700366 -D vulkan-overlay-layer=true
Eric Anholt030aa6e2019-08-07 14:05:51 -0700367 -D llvm=false
368 -D osmesa=classic
Eric Anholt11aa32a2019-07-11 12:58:28 -0700369
Dylan Baker449f8312019-10-11 09:04:14 -0700370meson-mingw32-x86_64:
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700371 extends: .meson-build
372 variables:
373 UNWIND: "false"
374 DRI_DRIVERS: ""
375 GALLIUM_DRIVERS: "swrast"
376 EXTRA_OPTION: >
377 -Dllvm=false
378 -Dosmesa=gallium
379 --cross-file=.gitlab-ci/x86_64-w64-mingw32
380
Michel Dänzer88e57962019-09-12 11:45:13 +0200381scons:
Eric Engestromd4c6d4d2019-01-28 16:30:36 +0000382 extends: .scons-build
383 variables:
384 SCONS_TARGET: "llvm=1"
Dylan Baker54053bc2019-10-21 09:29:23 -0700385 SCONS_CHECK_COMMAND: "scons llvm=1 force_scons=1 check"
Michel Dänzerbaa50242019-09-12 11:38:06 +0200386 script:
Dylan Baker54053bc2019-10-21 09:29:23 -0700387 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
Michel Dänzerbaa50242019-09-12 11:38:06 +0200388 - LLVM_VERSION=6.0 .gitlab-ci/scons-build.sh
389 - LLVM_VERSION=7 .gitlab-ci/scons-build.sh
390 - LLVM_VERSION=8 .gitlab-ci/scons-build.sh
Michel Dänzer8a199922019-09-06 17:04:47 +0200391
392scons-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200393 extends:
394 - scons
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200395 - .use-debian-9:amd64
Michel Dänzerbaa50242019-09-12 11:38:06 +0200396 script:
397 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
398 - LLVM_VERSION=4.0 .gitlab-ci/scons-build.sh
399 - LLVM_VERSION=5.0 .gitlab-ci/scons-build.sh
Eric Anholt46daaca2019-06-28 16:35:32 -0700400
Eric Engestrom3bcd54f2019-10-14 23:53:15 +0100401.test:
402 extends: .ci-run-policy
Eric Anholt46daaca2019-06-28 16:35:32 -0700403 stage: test
Eric Anholt46daaca2019-06-28 16:35:32 -0700404 variables:
405 GIT_STRATEGY: none # testing doesn't build anything from source
Eric Engestrom3bcd54f2019-10-14 23:53:15 +0100406
407.deqp-test:
408 extends:
409 - .test
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200410 - .use-debian-10:amd64
Eric Engestrom3bcd54f2019-10-14 23:53:15 +0100411 variables:
Eric Anholt46daaca2019-06-28 16:35:32 -0700412 DEQP_SKIPS: deqp-default-skips.txt
413 script:
414 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
415 - rm -rf install
416 - tar -xf artifacts/install.tar
417 - ./artifacts/deqp-runner.sh
418 artifacts:
419 when: on_failure
420 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
421 paths:
422 - results/
Michel Dänzercccb68b2019-09-13 11:13:12 +0200423 dependencies:
424 - meson-main
Michel Dänzerc5aa2712019-10-22 11:19:17 +0200425 needs:
426 - meson-main
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200427 - debian-10:amd64
Eric Anholt46daaca2019-06-28 16:35:32 -0700428
429test-llvmpipe-gles2:
430 parallel: 4
431 variables:
432 DEQP_VER: gles2
433 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
434 LIBGL_ALWAYS_SOFTWARE: "true"
435 DEQP_RENDERER_MATCH: "llvmpipe"
436 extends: .deqp-test
Eric Anholt553cd822019-08-09 10:32:40 -0700437
438test-softpipe-gles2:
Michel Dänzer128581d2019-09-11 18:55:43 +0200439 extends: test-llvmpipe-gles2
Eric Anholt553cd822019-08-09 10:32:40 -0700440 variables:
Eric Anholt553cd822019-08-09 10:32:40 -0700441 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
Eric Anholt553cd822019-08-09 10:32:40 -0700442 DEQP_RENDERER_MATCH: "softpipe"
443 GALLIUM_DRIVER: "softpipe"
Eric Anholt553cd822019-08-09 10:32:40 -0700444
445# The GLES2 CTS run takes about 8 minutes of CPU time, while GLES3 is
446# 25 minutes. Until we can get its runtime down, just do a partial
447# (every 10 tests) run.
448test-softpipe-gles3-limited:
449 variables:
450 DEQP_VER: gles3
451 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
452 LIBGL_ALWAYS_SOFTWARE: "true"
453 DEQP_RENDERER_MATCH: "softpipe"
454 GALLIUM_DRIVER: "softpipe"
455 CI_NODE_INDEX: 1
456 CI_NODE_TOTAL: 10
457 extends: .deqp-test
Eric Anholt6f0dc082019-06-28 16:35:32 -0700458
Michel Dänzer128581d2019-09-11 18:55:43 +0200459arm64_a630_gles2:
Eric Anholt6f0dc082019-06-28 16:35:32 -0700460 extends: .deqp-test
Eric Anholt6f0dc082019-06-28 16:35:32 -0700461 image: $DEBIAN_ARM64_IMAGE
462 variables:
463 DEQP_VER: gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700464 DEQP_RENDERER_MATCH: "FD630"
465 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
466 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
467 NIR_VALIDATE: 0
468 tags:
469 - mesa-cheza
470 dependencies:
471 - meson-arm64
Michel Dänzerf2b80512019-09-18 16:28:41 +0200472 needs:
473 - meson-arm64
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200474 - debian-10:arm64
Eric Anholt6f0dc082019-06-28 16:35:32 -0700475
Michel Dänzer128581d2019-09-11 18:55:43 +0200476arm64_a630_gles31:
477 extends: arm64_a630_gles2
478 parallel: 4
Eric Anholt6f0dc082019-06-28 16:35:32 -0700479 variables:
Michel Dänzer128581d2019-09-11 18:55:43 +0200480 DEQP_VER: gles31
Eric Anholt6f0dc082019-06-28 16:35:32 -0700481
482arm64_a630_gles3:
483 parallel: 6
Michel Dänzer128581d2019-09-11 18:55:43 +0200484 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700485 variables:
486 DEQP_VER: gles3
487
Michel Dänzer128581d2019-09-11 18:55:43 +0200488arm64_a306_gles2:
Eric Anholt6f0dc082019-06-28 16:35:32 -0700489 parallel: 4
Michel Dänzer128581d2019-09-11 18:55:43 +0200490 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700491 variables:
Michel Dänzer128581d2019-09-11 18:55:43 +0200492 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
493 DEQP_SKIPS: deqp-default-skips.txt
494 DEQP_RENDERER_MATCH: "FD307"
495 tags:
496 - db410c