blob: ceb78f363fecf6295a078dd94f307bd01e5c70e8 [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
Eric Engestrom9b58ab82019-09-25 20:18:27 +010017 DEBIAN_TAG: "2019-10-30"
Michel Dänzerb4d3ae22019-11-04 09:54:09 +010018 DEBIAN_ARM64_TAG: "arm64v8-2019-11-06"
19 DEBIAN_ARM64_TEST_TAG: "arm64v8-test-2019-11-06"
Michel Dänzer8a199922019-09-06 17:04:47 +020020 STRETCH_TAG: "2019-09-18"
21 DEBIAN_VERSION: buster-slim
22 STRETCH_VERSION: stretch-slim
Michel Dänzerd00b1c42019-04-02 16:56:54 +020023 DEBIAN_IMAGE: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_TAG"
Michel Dänzer8a199922019-09-06 17:04:47 +020024 DEBIAN_ARM64_IMAGE: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_ARM64_TAG"
Michel Dänzerb4d3ae22019-11-04 09:54:09 +010025 DEBIAN_ARM64_TEST_IMAGE: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_ARM64_TEST_TAG"
Michel Dänzer8a199922019-09-06 17:04:47 +020026 STRETCH_IMAGE: "$CI_REGISTRY_IMAGE/debian/$STRETCH_VERSION:$STRETCH_TAG"
Benjamin Tissoires7f8a9a12019-04-02 09:24:00 +020027
28include:
29 - project: 'wayland/ci-templates'
Michel Dänzer2259b452019-09-06 17:01:50 +020030 ref: 1f7f57c64ff4ebbf7292e3b7a13600518b8cb24c
Michel Dänzerd00b1c42019-04-02 16:56:54 +020031 file: '/templates/debian.yml'
Eric Engestrom329f5cd2019-01-20 11:21:45 +000032
Tomeu Vizoso7b01f722019-09-18 16:03:36 +020033include:
Dylan Baker19851c92019-10-23 14:36:19 -070034 - local: '.gitlab-ci/lava-gitlab-ci.yml'
Tomeu Vizoso7b01f722019-09-18 16:03:36 +020035
Eric Engestrom329f5cd2019-01-20 11:21:45 +000036stages:
Eric Engestrom81b98e92019-10-14 23:04:14 +010037 - container
Eric Engestroma0f8a072019-09-11 18:51:46 +010038 - build
Eric Anholt46daaca2019-06-28 16:35:32 -070039 - test
Eric Engestrom329f5cd2019-01-20 11:21:45 +000040
41
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000042# When to automatically run the CI
Michel Dänzere426f402019-09-06 17:35:52 +020043.ci-run-policy:
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000044 only:
Michel Dänzer2a38fc12019-10-25 18:59:56 +020045 refs:
46 - branches@mesa/mesa
47 - merge_requests
48 - /^ci([-/].*)?$/
49 changes:
50 - VERSION
51 - bin/**/*
52 # GitLab CI
53 - .gitlab-ci.yml
54 - .gitlab-ci/**/*
55 # Meson
56 - meson*
57 - build-support/**/*
58 - subprojects/**/*
59 # SCons
60 - SConstruct
61 - scons/**/*
62 - common.py
63 # Source code
64 - include/**/*
65 - src/**/*
Michel Dänzer6140ed32019-03-26 18:39:41 +010066 retry:
67 max: 2
68 when:
69 - runner_system_failure
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000070
Michel Dänzere426f402019-09-06 17:35:52 +020071.ci-deqp-artifacts:
Eric Anholt46daaca2019-06-28 16:35:32 -070072 artifacts:
73 when: always
74 untracked: false
75 paths:
76 # Watch out! Artifacts are relative to the build dir.
77 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
78 - artifacts
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000079
Michel Dänzer8a199922019-09-06 17:04:47 +020080# Build the normal CI native and cross-build docker images.
81
Eric Engestrom81b98e92019-10-14 23:04:14 +010082.container:
83 stage: container
84 extends:
85 - .ci-run-policy
86 variables:
87 # no need to pull the whole repo to build the container image
88 GIT_STRATEGY: none
89
Michel Dänzer163ec5d2019-10-08 19:46:11 +020090debian-10:amd64:
Michel Dänzere426f402019-09-06 17:35:52 +020091 extends:
92 - .debian@container-ifnot-exists
Eric Engestrom81b98e92019-10-14 23:04:14 +010093 - .container
Eric Engestrom329f5cd2019-01-20 11:21:45 +000094 variables:
Michel Dänzerd00b1c42019-04-02 16:56:54 +020095 DEBIAN_EXEC: 'bash .gitlab-ci/debian-install.sh'
Eric Engestrom46d23c02019-01-20 11:26:53 +000096
Michel Dänzer163ec5d2019-10-08 19:46:11 +020097.use-debian-10:amd64:
Michel Dänzereb86cba2019-10-10 15:27:17 +020098 image: $DEBIAN_IMAGE
99 needs:
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200100 - debian-10:amd64
Michel Dänzereb86cba2019-10-10 15:27:17 +0200101
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200102debian-9:amd64:
103 extends: debian-10:amd64
Michel Dänzer8a199922019-09-06 17:04:47 +0200104 variables:
105 DEBIAN_TAG: $STRETCH_TAG
106 DEBIAN_VERSION: $STRETCH_VERSION
107 DEBIAN_IMAGE: $STRETCH_IMAGE
108 DEBIAN_EXEC: 'bash .gitlab-ci/debian-stretch-install.sh'
109
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200110.use-debian-9:amd64:
Michel Dänzer88319f22019-09-18 16:17:01 +0200111 image: $STRETCH_IMAGE
112 needs:
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200113 - debian-9:amd64
Michel Dänzer88319f22019-09-18 16:17:01 +0200114
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200115debian-10:arm64:
Michel Dänzere426f402019-09-06 17:35:52 +0200116 extends:
117 - .debian@container-ifnot-exists@arm64v8
Eric Engestrom81b98e92019-10-14 23:04:14 +0100118 - .container
Eric Anholt6f0dc082019-06-28 16:35:32 -0700119 variables:
120 DEBIAN_TAG: "$DEBIAN_ARM64_TAG"
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200121 DEBIAN_EXEC: 'bash .gitlab-ci/debian-arm64-install.sh'
Eric Engestrom46d23c02019-01-20 11:26:53 +0000122
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100123debian-10-test:arm64:
124 extends:
125 - .debian@container-ifnot-exists@arm64v8
126 - .container
127 variables:
128 DEBIAN_TAG: "$DEBIAN_ARM64_TEST_TAG"
129 DEBIAN_EXEC: 'bash .gitlab-ci/debian-arm64-test-install.sh'
130
Eric Engestrom81b98e92019-10-14 23:04:14 +0100131
Eric Engestrom46d23c02019-01-20 11:26:53 +0000132# BUILD
133
Dylan Baker06e46472019-10-23 14:21:31 -0700134# Shared between windows and Linux
135.build-common:
Eric Engestromaba78c22019-10-14 23:52:58 +0100136 extends: .ci-run-policy
Eric Engestroma0f8a072019-09-11 18:51:46 +0100137 stage: build
Eric Engestrom46d23c02019-01-20 11:26:53 +0000138 artifacts:
Eric Anholtdd3d0b22019-07-24 09:27:48 -0700139 when: always
140 paths:
141 - _build/meson-logs/*.txt
142 # scons:
Michel Dänzer5229f272019-07-26 12:20:41 +0200143 - build/*/config.log
Eric Anholtf60defa2019-04-10 15:59:12 -0700144 - shader-db
Dylan Baker06e46472019-10-23 14:21:31 -0700145
146# Just Linux
147.build-linux:
148 extends: .build-common
149 cache:
150 key: ${CI_JOB_NAME}
151 paths:
152 - ccache
Michel Dänzere9de19f2019-04-04 18:01:27 +0200153 variables:
154 CCACHE_COMPILERCHECK: "content"
Eric Engestrom23b485c2019-02-12 16:59:27 +0000155 # Use ccache transparently, and print stats before/after
156 before_script:
157 - export PATH="/usr/lib/ccache:$PATH"
158 - export CCACHE_BASEDIR="$PWD"
Eric Anholtcb655d22019-11-06 11:14:14 -0800159 - export CCACHE_DIR="$PWD/ccache"
160 - ccache --max-size=1500M
161 - ccache --zero-stats || true
Eric Engestrom23b485c2019-02-12 16:59:27 +0000162 - ccache --show-stats || true
163 after_script:
Eric Anholtcb655d22019-11-06 11:14:14 -0800164 - export CCACHE_DIR="$PWD/ccache"
Eric Engestrom23b485c2019-02-12 16:59:27 +0000165 - ccache --show-stats
Eric Engestrom46d23c02019-01-20 11:26:53 +0000166
Dylan Baker19851c92019-10-23 14:36:19 -0700167.build-windows:
168 extends: .build-common
169 tags:
170 - mesa-windows
171 cache:
172 key: ${CI_JOB_NAME}
173 paths:
174 - subprojects/packagecache
175
Eric Engestrom46d23c02019-01-20 11:26:53 +0000176.meson-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100177 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700178 - .build-linux
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200179 - .use-debian-10:amd64
Eric Engestrom23b485c2019-02-12 16:59:27 +0000180 script:
Michel Dänzercc2b3a92019-05-03 10:49:43 +0200181 - .gitlab-ci/meson-build.sh
Eric Engestrom46d23c02019-01-20 11:26:53 +0000182
Eric Engestrom06b245b2019-01-23 15:46:10 +0000183.scons-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100184 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700185 - .build-linux
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200186 - .use-debian-10:amd64
Eric Engestrom06b245b2019-01-23 15:46:10 +0000187 variables:
Eric Anholtcb655d22019-11-06 11:14:14 -0800188 SCONSFLAGS: "-j4"
Eric Engestrom06b245b2019-01-23 15:46:10 +0000189 script:
Michel Dänzer0374aac2019-09-12 11:34:43 +0200190 - .gitlab-ci/scons-build.sh
Eric Engestrom06b245b2019-01-23 15:46:10 +0000191
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200192meson-main:
Michel Dänzere426f402019-09-06 17:35:52 +0200193 extends:
194 - .meson-build
195 - .ci-deqp-artifacts
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200196 variables:
197 UNWIND: "true"
198 DRI_LOADERS: >
199 -D glx=dri
200 -D gbm=true
201 -D egl=true
202 -D platforms=x11,wayland,drm,surfaceless
203 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
204 GALLIUM_ST: >
205 -D dri3=true
206 -D gallium-extra-hud=true
207 -D gallium-vdpau=true
208 -D gallium-xvmc=true
209 -D gallium-omx=bellagio
210 -D gallium-va=true
211 -D gallium-xa=true
212 -D gallium-nine=true
213 -D gallium-opencl=disabled
Erik Faye-Lund3d529c12019-10-22 09:08:11 +0200214 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200215 LLVM_VERSION: "7"
216 EXTRA_OPTION: >
217 -D osmesa=gallium
218 -D tools=all
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200219 BUILDTYPE: "debugoptimized"
Michel Dänzer59fcb012019-10-23 18:42:53 +0200220 script:
221 - .gitlab-ci/meson-build.sh
222 - .gitlab-ci/run-shader-db.sh
223 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200224
Michel Dänzere5364462019-09-13 11:59:43 +0200225.meson-cross:
226 extends:
227 - .meson-build
Michel Dänzere5364462019-09-13 11:59:43 +0200228 variables:
229 UNWIND: "false"
230 DRI_LOADERS: >
231 -D glx=disabled
232 -D gbm=false
233 -D egl=true
234 -D platforms=surfaceless
235 -D osmesa=none
236 GALLIUM_ST: >
237 -D dri3=false
238 -D gallium-vdpau=false
239 -D gallium-xvmc=false
240 -D gallium-omx=disabled
241 -D gallium-va=false
242 -D gallium-xa=false
243 -D gallium-nine=false
Michel Dänzere5364462019-09-13 11:59:43 +0200244
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200245.meson-arm:
Michel Dänzere5364462019-09-13 11:59:43 +0200246 extends: .meson-cross
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200247 image: $DEBIAN_ARM64_IMAGE
Michel Dänzere5364462019-09-13 11:59:43 +0200248 variables:
Michel Dänzere5364462019-09-13 11:59:43 +0200249 VULKAN_DRIVERS: freedreno
Michel Dänzer793f6b32019-10-08 19:48:41 +0200250 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
Michel Dänzere5364462019-09-13 11:59:43 +0200251 EXTRA_OPTION: >
Michel Dänzere5364462019-09-13 11:59:43 +0200252 -D I-love-half-baked-turnips=true
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200253 needs:
254 - debian-10:arm64
255 tags:
256 - aarch64
257
258meson-armhf:
259 extends: .meson-arm
260 variables:
261 CROSS: armhf
Michel Dänzer793f6b32019-10-08 19:48:41 +0200262 LLVM_VERSION: "7"
Michel Dänzere5364462019-09-13 11:59:43 +0200263
264meson-arm64:
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200265 extends:
266 - .meson-arm
267 - .ci-deqp-artifacts
Michel Dänzere5364462019-09-13 11:59:43 +0200268 variables:
Michel Dänzere5364462019-09-13 11:59:43 +0200269 BUILDTYPE: "debugoptimized"
Michel Dänzer59fcb012019-10-23 18:42:53 +0200270 script:
271 - .gitlab-ci/meson-build.sh
272 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzere5364462019-09-13 11:59:43 +0200273
Michel Dänzera2cce702019-03-20 15:58:31 +0100274# NOTE: Building SWR is 2x (yes two) times slower than all the other
275# gallium drivers combined.
276# Start this early so that it doesn't limit the total run time.
Eric Engestrom41407c62019-03-08 16:33:07 +0000277#
Eric Anholt030aa6e2019-08-07 14:05:51 -0700278# We also stick the glvnd build here, since we want non-glvnd in
279# meson-main for actual driver CI.
Eric Engestrom1291c682019-04-16 18:06:53 +0200280meson-swr-glvnd:
Michel Dänzera2cce702019-03-20 15:58:31 +0100281 extends: .meson-build
282 variables:
283 UNWIND: "true"
284 DRI_LOADERS: >
Eric Engestrom1291c682019-04-16 18:06:53 +0200285 -D glvnd=true
286 -D egl=true
Michel Dänzera2cce702019-03-20 15:58:31 +0100287 GALLIUM_ST: >
Eric Engestrom41407c62019-03-08 16:33:07 +0000288 -D dri3=true
Michel Dänzera2cce702019-03-20 15:58:31 +0100289 -D gallium-vdpau=false
290 -D gallium-xvmc=false
291 -D gallium-omx=disabled
292 -D gallium-va=false
293 -D gallium-xa=false
Eric Anholt030aa6e2019-08-07 14:05:51 -0700294 -D gallium-nine=false
Michel Dänzera2cce702019-03-20 15:58:31 +0100295 -D gallium-opencl=disabled
Eric Anholt030aa6e2019-08-07 14:05:51 -0700296 GALLIUM_DRIVERS: "swr,iris"
Michel Dänzera2cce702019-03-20 15:58:31 +0100297 LLVM_VERSION: "6.0"
298
299meson-clang:
300 extends: .meson-build
301 variables:
302 UNWIND: "true"
303 DRI_DRIVERS: "auto"
304 GALLIUM_DRIVERS: "auto"
Eric Engestrom47f419d2019-05-01 12:09:26 +0100305 VULKAN_DRIVERS: intel,amd,freedreno
Michel Dänzer3fca2b72019-04-05 10:36:29 +0200306 CC: "ccache clang-8"
307 CXX: "ccache clang++-8"
Michel Dänzera2cce702019-03-20 15:58:31 +0100308
Michel Dänzeraaf1b092019-10-30 09:38:20 +0100309.meson-windows:
Dylan Baker19851c92019-10-23 14:36:19 -0700310 extends:
311 - .build-windows
312 before_script:
313 - $ENV:ARCH = "x86"
314 - $ENV:VERSION = "2019\Community"
315 script:
316 - cmd /C .gitlab-ci\meson-build.bat
317
Michel Dänzer82b30092019-05-03 18:19:25 +0200318scons-swr:
319 extends: .scons-build
Eric Engestrom46d23c02019-01-20 11:26:53 +0000320 variables:
Michel Dänzer82b30092019-05-03 18:19:25 +0200321 SCONS_TARGET: "swr=1"
322 SCONS_CHECK_COMMAND: "true"
323 LLVM_VERSION: "6.0"
324
325scons-win64:
326 extends: .scons-build
327 variables:
328 SCONS_TARGET: platform=windows machine=x86_64
329 SCONS_CHECK_COMMAND: "true"
Eric Engestrom89a74672019-01-21 09:42:37 +0000330
Michel Dänzer68977152019-05-03 10:58:48 +0200331meson-clover:
Eric Engestromb5a70af2019-01-28 18:05:22 +0000332 extends: .meson-build
333 variables:
334 UNWIND: "true"
335 DRI_LOADERS: >
336 -D glx=disabled
337 -D egl=false
338 -D gbm=false
339 GALLIUM_ST: >
340 -D dri3=false
341 -D gallium-vdpau=false
342 -D gallium-xvmc=false
343 -D gallium-omx=disabled
344 -D gallium-va=false
345 -D gallium-xa=false
346 -D gallium-nine=false
347 -D gallium-opencl=icd
Michel Dänzer68977152019-05-03 10:58:48 +0200348 script:
349 - export GALLIUM_DRIVERS="r600,radeonsi"
350 - .gitlab-ci/meson-build.sh
Samuel Pitoiset7d1c0912019-08-21 11:45:25 +0200351 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
Michel Dänzer68977152019-05-03 10:58:48 +0200352 - export GALLIUM_DRIVERS="i915,r600"
Michel Dänzer8a199922019-09-06 17:04:47 +0200353 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
354 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
355
356meson-clover-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200357 extends:
358 - meson-clover
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200359 - .use-debian-9:amd64
Michel Dänzer8a199922019-09-06 17:04:47 +0200360 variables:
361 UNWIND: "false"
362 DRI_LOADERS: >
363 -D glx=disabled
364 -D egl=false
365 -D gbm=false
366 -D platforms=drm,surfaceless
367 GALLIUM_DRIVERS: "i915,r600"
368 script:
Michel Dänzer68977152019-05-03 10:58:48 +0200369 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
370 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
371 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
Eric Engestrom8dab7072019-01-28 18:09:24 +0000372
Michel Dänzer82b30092019-05-03 18:19:25 +0200373meson-vulkan:
374 extends: .meson-build
375 variables:
376 UNWIND: "false"
377 DRI_LOADERS: >
378 -D glx=disabled
379 -D gbm=false
380 -D egl=false
381 -D platforms=x11,wayland,drm
382 -D osmesa=none
383 GALLIUM_ST: >
384 -D dri3=true
385 -D gallium-vdpau=false
386 -D gallium-xvmc=false
387 -D gallium-omx=disabled
388 -D gallium-va=false
389 -D gallium-xa=false
390 -D gallium-nine=false
391 -D gallium-opencl=disabled
Michel Dänzer75cc8c02019-09-25 12:56:58 +0200392 -D b_sanitize=undefined
393 -D c_args=-fno-sanitize-recover=all
394 -D cpp_args=-fno-sanitize-recover=all
395 UBSAN_OPTIONS: "print_stacktrace=1"
Michel Dänzer82b30092019-05-03 18:19:25 +0200396 VULKAN_DRIVERS: intel,amd,freedreno
Samuel Pitoiset7d1c0912019-08-21 11:45:25 +0200397 LLVM_VERSION: "8"
Eric Engestrom5f8d29a2019-05-08 18:17:23 +0200398 EXTRA_OPTION: >
399 -D vulkan-overlay-layer=true
Michel Dänzer82b30092019-05-03 18:19:25 +0200400
Eric Anholt030aa6e2019-08-07 14:05:51 -0700401# While the main point of this build is testing the i386 cross build,
402# we also use this one to test some other options that are exclusive
403# with meson-main's choices (classic swrast and osmesa)
Eric Anholt11aa32a2019-07-11 12:58:28 -0700404meson-i386:
405 extends: .meson-cross
406 variables:
Eric Engestrom1c82fa02019-08-09 23:46:50 +0100407 CROSS: i386
Eric Anholt11aa32a2019-07-11 12:58:28 -0700408 VULKAN_DRIVERS: intel
Eric Anholt030aa6e2019-08-07 14:05:51 -0700409 DRI_DRIVERS: "swrast"
410 GALLIUM_DRIVERS: "iris"
Eric Anholt11aa32a2019-07-11 12:58:28 -0700411 EXTRA_OPTION: >
Eric Anholt11aa32a2019-07-11 12:58:28 -0700412 -D vulkan-overlay-layer=true
Eric Anholt030aa6e2019-08-07 14:05:51 -0700413 -D llvm=false
414 -D osmesa=classic
Eric Anholt11aa32a2019-07-11 12:58:28 -0700415
Dylan Baker449f8312019-10-11 09:04:14 -0700416meson-mingw32-x86_64:
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700417 extends: .meson-build
418 variables:
419 UNWIND: "false"
420 DRI_DRIVERS: ""
421 GALLIUM_DRIVERS: "swrast"
422 EXTRA_OPTION: >
423 -Dllvm=false
424 -Dosmesa=gallium
425 --cross-file=.gitlab-ci/x86_64-w64-mingw32
426
Michel Dänzer88e57962019-09-12 11:45:13 +0200427scons:
Eric Engestromd4c6d4d2019-01-28 16:30:36 +0000428 extends: .scons-build
429 variables:
430 SCONS_TARGET: "llvm=1"
Dylan Baker54053bc2019-10-21 09:29:23 -0700431 SCONS_CHECK_COMMAND: "scons llvm=1 force_scons=1 check"
Michel Dänzerbaa50242019-09-12 11:38:06 +0200432 script:
Dylan Baker54053bc2019-10-21 09:29:23 -0700433 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
Michel Dänzerbaa50242019-09-12 11:38:06 +0200434 - LLVM_VERSION=6.0 .gitlab-ci/scons-build.sh
435 - LLVM_VERSION=7 .gitlab-ci/scons-build.sh
436 - LLVM_VERSION=8 .gitlab-ci/scons-build.sh
Michel Dänzer8a199922019-09-06 17:04:47 +0200437
438scons-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200439 extends:
440 - scons
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200441 - .use-debian-9:amd64
Michel Dänzerbaa50242019-09-12 11:38:06 +0200442 script:
443 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
444 - LLVM_VERSION=4.0 .gitlab-ci/scons-build.sh
445 - LLVM_VERSION=5.0 .gitlab-ci/scons-build.sh
Eric Anholt46daaca2019-06-28 16:35:32 -0700446
Eric Engestrom3bcd54f2019-10-14 23:53:15 +0100447.test:
448 extends: .ci-run-policy
Eric Anholt46daaca2019-06-28 16:35:32 -0700449 stage: test
Eric Anholt46daaca2019-06-28 16:35:32 -0700450 variables:
451 GIT_STRATEGY: none # testing doesn't build anything from source
Eric Engestrom3bcd54f2019-10-14 23:53:15 +0100452
453.deqp-test:
454 extends:
455 - .test
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200456 - .use-debian-10:amd64
Eric Engestrom3bcd54f2019-10-14 23:53:15 +0100457 variables:
Eric Anholt46daaca2019-06-28 16:35:32 -0700458 DEQP_SKIPS: deqp-default-skips.txt
459 script:
460 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
461 - rm -rf install
462 - tar -xf artifacts/install.tar
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100463 - LD_LIBRARY_PATH=install/lib ldd install/lib/{*,dri/swrast_dri}.so
Eric Anholt46daaca2019-06-28 16:35:32 -0700464 - ./artifacts/deqp-runner.sh
465 artifacts:
466 when: on_failure
467 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
468 paths:
469 - results/
Michel Dänzercccb68b2019-09-13 11:13:12 +0200470 dependencies:
471 - meson-main
Michel Dänzerc5aa2712019-10-22 11:19:17 +0200472 needs:
473 - meson-main
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200474 - debian-10:amd64
Eric Anholt46daaca2019-06-28 16:35:32 -0700475
476test-llvmpipe-gles2:
477 parallel: 4
478 variables:
479 DEQP_VER: gles2
480 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
481 LIBGL_ALWAYS_SOFTWARE: "true"
482 DEQP_RENDERER_MATCH: "llvmpipe"
483 extends: .deqp-test
Eric Anholt553cd822019-08-09 10:32:40 -0700484
485test-softpipe-gles2:
Michel Dänzer128581d2019-09-11 18:55:43 +0200486 extends: test-llvmpipe-gles2
Eric Anholt553cd822019-08-09 10:32:40 -0700487 variables:
Eric Anholt553cd822019-08-09 10:32:40 -0700488 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
Eric Anholt553cd822019-08-09 10:32:40 -0700489 DEQP_RENDERER_MATCH: "softpipe"
490 GALLIUM_DRIVER: "softpipe"
Eric Anholt553cd822019-08-09 10:32:40 -0700491
492# The GLES2 CTS run takes about 8 minutes of CPU time, while GLES3 is
493# 25 minutes. Until we can get its runtime down, just do a partial
494# (every 10 tests) run.
495test-softpipe-gles3-limited:
496 variables:
497 DEQP_VER: gles3
498 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
499 LIBGL_ALWAYS_SOFTWARE: "true"
500 DEQP_RENDERER_MATCH: "softpipe"
501 GALLIUM_DRIVER: "softpipe"
502 CI_NODE_INDEX: 1
503 CI_NODE_TOTAL: 10
504 extends: .deqp-test
Eric Anholt6f0dc082019-06-28 16:35:32 -0700505
Michel Dänzer128581d2019-09-11 18:55:43 +0200506arm64_a630_gles2:
Eric Anholt6f0dc082019-06-28 16:35:32 -0700507 extends: .deqp-test
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100508 image: $DEBIAN_ARM64_TEST_IMAGE
Eric Anholt6f0dc082019-06-28 16:35:32 -0700509 variables:
510 DEQP_VER: gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700511 DEQP_RENDERER_MATCH: "FD630"
512 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
513 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
514 NIR_VALIDATE: 0
515 tags:
516 - mesa-cheza
517 dependencies:
518 - meson-arm64
Michel Dänzerf2b80512019-09-18 16:28:41 +0200519 needs:
520 - meson-arm64
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100521 - debian-10-test:arm64
Eric Anholt6f0dc082019-06-28 16:35:32 -0700522
Michel Dänzer128581d2019-09-11 18:55:43 +0200523arm64_a630_gles31:
524 extends: arm64_a630_gles2
525 parallel: 4
Eric Anholt6f0dc082019-06-28 16:35:32 -0700526 variables:
Michel Dänzer128581d2019-09-11 18:55:43 +0200527 DEQP_VER: gles31
Eric Anholt6f0dc082019-06-28 16:35:32 -0700528
529arm64_a630_gles3:
530 parallel: 6
Michel Dänzer128581d2019-09-11 18:55:43 +0200531 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700532 variables:
533 DEQP_VER: gles3
534
Michel Dänzer128581d2019-09-11 18:55:43 +0200535arm64_a306_gles2:
Eric Anholt6f0dc082019-06-28 16:35:32 -0700536 parallel: 4
Michel Dänzer128581d2019-09-11 18:55:43 +0200537 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700538 variables:
Michel Dänzer128581d2019-09-11 18:55:43 +0200539 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
540 DEQP_SKIPS: deqp-default-skips.txt
541 DEQP_RENDERER_MATCH: "FD307"
542 tags:
543 - db410c