blob: 6e5f6922c14b5ce28b9fc73c3741755a29008176 [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änzerc6c76522019-11-11 18:13:28 +01007 ref: f69acac60d5dde0410124fd5674764600821b7a6
Michel Dänzerd00b1c42019-04-02 16:56:54 +02008 file: '/templates/debian.yml'
Eric Engestrom329f5cd2019-01-20 11:21:45 +00009
Tomeu Vizoso7b01f722019-09-18 16:03:36 +020010include:
Dylan Baker19851c92019-10-23 14:36:19 -070011 - local: '.gitlab-ci/lava-gitlab-ci.yml'
Tomeu Vizoso7b01f722019-09-18 16:03:36 +020012
Eric Engestrom329f5cd2019-01-20 11:21:45 +000013stages:
Eric Engestrom81b98e92019-10-14 23:04:14 +010014 - container
Eric Engestroma0f8a072019-09-11 18:51:46 +010015 - build
Eric Anholt46daaca2019-06-28 16:35:32 -070016 - test
Eric Engestrom329f5cd2019-01-20 11:21:45 +000017
18
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000019# When to automatically run the CI
Michel Dänzere426f402019-09-06 17:35:52 +020020.ci-run-policy:
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000021 only:
Michel Dänzer2a38fc12019-10-25 18:59:56 +020022 refs:
23 - branches@mesa/mesa
24 - merge_requests
25 - /^ci([-/].*)?$/
26 changes:
27 - VERSION
28 - bin/**/*
29 # GitLab CI
30 - .gitlab-ci.yml
31 - .gitlab-ci/**/*
32 # Meson
33 - meson*
34 - build-support/**/*
35 - subprojects/**/*
36 # SCons
37 - SConstruct
38 - scons/**/*
39 - common.py
40 # Source code
41 - include/**/*
42 - src/**/*
Michel Dänzer6140ed32019-03-26 18:39:41 +010043 retry:
44 max: 2
45 when:
46 - runner_system_failure
Eric Engestromac78ca42019-11-12 23:42:21 +000047 # Cancel CI run if a newer commit is pushed to the same branch
48 interruptible: true
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000049
Michel Dänzere426f402019-09-06 17:35:52 +020050.ci-deqp-artifacts:
Eric Anholt46daaca2019-06-28 16:35:32 -070051 artifacts:
52 when: always
53 untracked: false
54 paths:
55 # Watch out! Artifacts are relative to the build dir.
56 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
57 - artifacts
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000058
Michel Dänzerc6c76522019-11-11 18:13:28 +010059# Build the "normal" (non-LAVA) CI docker images.
60#
61# DEBIAN_TAG is the tag of the docker image used by later stage jobs. If the
62# image doesn't exist yet, the container stage job generates it.
63#
64# In order to generate a new image, one should generally change the tag.
65# While removing the image from the registry would also work, that's not
66# recommended except for ephemeral images during development: Replacing
67# an image after a significant amount of time might pull in newer
68# versions of gcc/clang or other packages, which might break the build
69# with older commits using the same tag.
70#
71# After merging a change resulting in generating a new image to the
72# main repository, it's recommended to remove the image from the source
73# repository's container registry, so that the image from the main
74# repository's registry will be used there as well.
Michel Dänzer8a199922019-09-06 17:04:47 +020075
Eric Engestrom81b98e92019-10-14 23:04:14 +010076.container:
77 stage: container
78 extends:
79 - .ci-run-policy
80 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +010081 DEBIAN_VERSION: buster-slim
82 REPO_SUFFIX: $CI_JOB_NAME
Michel Dänzer506e9d52019-11-07 20:08:03 +010083 DEBIAN_EXEC: 'bash .gitlab-ci/container/${CI_JOB_NAME}.sh'
Eric Engestrom81b98e92019-10-14 23:04:14 +010084 # no need to pull the whole repo to build the container image
85 GIT_STRATEGY: none
86
Michel Dänzerc6c76522019-11-11 18:13:28 +010087# Debian 10 based x86 build image
Michel Dänzer3a48f452019-11-13 17:43:41 +010088x86_build:
Michel Dänzere426f402019-09-06 17:35:52 +020089 extends:
90 - .debian@container-ifnot-exists
Eric Engestrom81b98e92019-10-14 23:04:14 +010091 - .container
Michel Dänzerc6c76522019-11-11 18:13:28 +010092 variables:
93 DEBIAN_TAG: &x86_build "2019-11-13"
Eric Engestrom46d23c02019-01-20 11:26:53 +000094
Michel Dänzer3a48f452019-11-13 17:43:41 +010095.use-x86_build:
Michel Dänzerc6c76522019-11-11 18:13:28 +010096 variables:
97 TAG: *x86_build
98 image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG"
Michel Dänzereb86cba2019-10-10 15:27:17 +020099 needs:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100100 - x86_build
Michel Dänzereb86cba2019-10-10 15:27:17 +0200101
Michel Dänzerc6c76522019-11-11 18:13:28 +0100102# Debian 10 based x86 test image
Michel Dänzer3a48f452019-11-13 17:43:41 +0100103x86_test:
104 extends: x86_build
Michel Dänzeraebf43d2019-11-05 18:52:24 +0100105 variables:
Rob Clark8af75512019-11-22 13:30:18 -0800106 DEBIAN_TAG: &x86_test "2019-11-22"
Michel Dänzeraebf43d2019-11-05 18:52:24 +0100107
Michel Dänzerc6c76522019-11-11 18:13:28 +0100108# Debian 9 based x86 build image (old LLVM)
Michel Dänzer3a48f452019-11-13 17:43:41 +0100109x86_build_old:
110 extends: x86_build
Michel Dänzer8a199922019-09-06 17:04:47 +0200111 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100112 DEBIAN_TAG: &x86_build_old "2019-09-18"
113 DEBIAN_VERSION: stretch-slim
Michel Dänzer8a199922019-09-06 17:04:47 +0200114
Michel Dänzer3a48f452019-11-13 17:43:41 +0100115.use-x86_build_old:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100116 variables:
117 TAG: *x86_build_old
118 image: "$CI_REGISTRY_IMAGE/debian/x86_build_old:$TAG"
Michel Dänzer88319f22019-09-18 16:17:01 +0200119 needs:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100120 - x86_build_old
Michel Dänzer88319f22019-09-18 16:17:01 +0200121
Michel Dänzerc6c76522019-11-11 18:13:28 +0100122# Debian 10 based ARM build image
Michel Dänzer3a48f452019-11-13 17:43:41 +0100123arm_build:
Michel Dänzere426f402019-09-06 17:35:52 +0200124 extends:
125 - .debian@container-ifnot-exists@arm64v8
Eric Engestrom81b98e92019-10-14 23:04:14 +0100126 - .container
Eric Anholt6f0dc082019-06-28 16:35:32 -0700127 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100128 DEBIAN_TAG: &arm_build "2019-11-13"
Eric Engestrom46d23c02019-01-20 11:26:53 +0000129
Michel Dänzerc6c76522019-11-11 18:13:28 +0100130.use-arm_build:
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100131 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100132 TAG: *arm_build
133 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
134 needs:
135 - arm_build
136
137# Debian 10 based ARM test image
138arm_test:
139 extends: arm_build
140 variables:
Rob Clark8af75512019-11-22 13:30:18 -0800141 DEBIAN_TAG: &arm_test "2019-11-22"
Michel Dänzerc6c76522019-11-11 18:13:28 +0100142
143.use-arm_test:
144 variables:
145 TAG: *arm_test
146 image: "$CI_REGISTRY_IMAGE/debian/arm_test:$TAG"
147 needs:
148 - meson-arm64
149 - arm_test
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100150
Eric Engestrom81b98e92019-10-14 23:04:14 +0100151
Eric Engestrom46d23c02019-01-20 11:26:53 +0000152# BUILD
153
Dylan Baker06e46472019-10-23 14:21:31 -0700154# Shared between windows and Linux
155.build-common:
Eric Engestromaba78c22019-10-14 23:52:58 +0100156 extends: .ci-run-policy
Eric Engestroma0f8a072019-09-11 18:51:46 +0100157 stage: build
Eric Engestrom46d23c02019-01-20 11:26:53 +0000158 artifacts:
Eric Anholtdd3d0b22019-07-24 09:27:48 -0700159 when: always
160 paths:
161 - _build/meson-logs/*.txt
162 # scons:
Michel Dänzer5229f272019-07-26 12:20:41 +0200163 - build/*/config.log
Eric Anholtf60defa2019-04-10 15:59:12 -0700164 - shader-db
Dylan Baker06e46472019-10-23 14:21:31 -0700165
166# Just Linux
167.build-linux:
168 extends: .build-common
Michel Dänzere9de19f2019-04-04 18:01:27 +0200169 variables:
170 CCACHE_COMPILERCHECK: "content"
Michel Dänzer32618ee2019-11-20 09:11:35 +0100171 CCACHE_COMPRESS: "true"
172 CCACHE_DIR: /cache/mesa/ccache
Eric Engestrom23b485c2019-02-12 16:59:27 +0000173 # Use ccache transparently, and print stats before/after
174 before_script:
175 - export PATH="/usr/lib/ccache:$PATH"
176 - export CCACHE_BASEDIR="$PWD"
Michel Dänzer32618ee2019-11-20 09:11:35 +0100177 - ccache --show-stats
Eric Engestrom23b485c2019-02-12 16:59:27 +0000178 after_script:
Eric Engestrom23b485c2019-02-12 16:59:27 +0000179 - ccache --show-stats
Eric Engestrom46d23c02019-01-20 11:26:53 +0000180
Dylan Baker19851c92019-10-23 14:36:19 -0700181.build-windows:
182 extends: .build-common
183 tags:
184 - mesa-windows
185 cache:
186 key: ${CI_JOB_NAME}
187 paths:
188 - subprojects/packagecache
189
Eric Engestrom46d23c02019-01-20 11:26:53 +0000190.meson-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100191 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700192 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100193 - .use-x86_build
Eric Engestrom23b485c2019-02-12 16:59:27 +0000194 script:
Michel Dänzercc2b3a92019-05-03 10:49:43 +0200195 - .gitlab-ci/meson-build.sh
Eric Engestrom46d23c02019-01-20 11:26:53 +0000196
Eric Engestrom06b245b2019-01-23 15:46:10 +0000197.scons-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100198 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700199 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100200 - .use-x86_build
Eric Engestrom06b245b2019-01-23 15:46:10 +0000201 variables:
Eric Anholtcb655d22019-11-06 11:14:14 -0800202 SCONSFLAGS: "-j4"
Eric Engestrom06b245b2019-01-23 15:46:10 +0000203 script:
Michel Dänzer0374aac2019-09-12 11:34:43 +0200204 - .gitlab-ci/scons-build.sh
Eric Engestrom06b245b2019-01-23 15:46:10 +0000205
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100206meson-testing:
Michel Dänzere426f402019-09-06 17:35:52 +0200207 extends:
208 - .meson-build
209 - .ci-deqp-artifacts
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200210 variables:
211 UNWIND: "true"
212 DRI_LOADERS: >
213 -D glx=dri
214 -D gbm=true
215 -D egl=true
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100216 -D platforms=x11,drm,surfaceless
217 GALLIUM_ST: >
218 -D dri3=true
219 GALLIUM_DRIVERS: "swrast"
220 LLVM_VERSION: "7"
221 BUILDTYPE: "debugoptimized"
222 script:
223 - .gitlab-ci/meson-build.sh
224 - .gitlab-ci/prepare-artifacts.sh
225
226meson-main:
227 extends: .meson-build
228 variables:
229 UNWIND: "true"
230 DRI_LOADERS: >
231 -D glx=dri
232 -D gbm=true
233 -D egl=true
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200234 -D platforms=x11,wayland,drm,surfaceless
235 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
236 GALLIUM_ST: >
237 -D dri3=true
238 -D gallium-extra-hud=true
239 -D gallium-vdpau=true
240 -D gallium-xvmc=true
241 -D gallium-omx=bellagio
242 -D gallium-va=true
243 -D gallium-xa=true
244 -D gallium-nine=true
245 -D gallium-opencl=disabled
Samuel Pitoisete6d26d72019-11-19 14:36:02 +0100246 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 +0200247 LLVM_VERSION: "7"
248 EXTRA_OPTION: >
249 -D osmesa=gallium
250 -D tools=all
Michel Dänzer59fcb012019-10-23 18:42:53 +0200251 script:
252 - .gitlab-ci/meson-build.sh
253 - .gitlab-ci/run-shader-db.sh
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200254
Michel Dänzere5364462019-09-13 11:59:43 +0200255.meson-cross:
256 extends:
257 - .meson-build
Michel Dänzere5364462019-09-13 11:59:43 +0200258 variables:
259 UNWIND: "false"
260 DRI_LOADERS: >
261 -D glx=disabled
262 -D gbm=false
263 -D egl=true
264 -D platforms=surfaceless
265 -D osmesa=none
266 GALLIUM_ST: >
267 -D dri3=false
268 -D gallium-vdpau=false
269 -D gallium-xvmc=false
270 -D gallium-omx=disabled
271 -D gallium-va=false
272 -D gallium-xa=false
273 -D gallium-nine=false
Michel Dänzere5364462019-09-13 11:59:43 +0200274
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200275.meson-arm:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100276 extends:
277 - .meson-cross
278 - .use-arm_build
Michel Dänzere5364462019-09-13 11:59:43 +0200279 variables:
Michel Dänzere5364462019-09-13 11:59:43 +0200280 VULKAN_DRIVERS: freedreno
Michel Dänzer793f6b32019-10-08 19:48:41 +0200281 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
Michel Dänzere5364462019-09-13 11:59:43 +0200282 EXTRA_OPTION: >
Michel Dänzere5364462019-09-13 11:59:43 +0200283 -D I-love-half-baked-turnips=true
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200284 tags:
285 - aarch64
286
287meson-armhf:
288 extends: .meson-arm
289 variables:
290 CROSS: armhf
Michel Dänzer793f6b32019-10-08 19:48:41 +0200291 LLVM_VERSION: "7"
Michel Dänzere5364462019-09-13 11:59:43 +0200292
293meson-arm64:
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200294 extends:
295 - .meson-arm
296 - .ci-deqp-artifacts
Michel Dänzere5364462019-09-13 11:59:43 +0200297 variables:
Michel Dänzere5364462019-09-13 11:59:43 +0200298 BUILDTYPE: "debugoptimized"
Samuel Pitoiset47ba2272019-11-12 14:25:16 +0100299 VULKAN_DRIVERS: "freedreno,amd"
Michel Dänzer59fcb012019-10-23 18:42:53 +0200300 script:
301 - .gitlab-ci/meson-build.sh
302 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzere5364462019-09-13 11:59:43 +0200303
Michel Dänzera2cce702019-03-20 15:58:31 +0100304meson-clang:
305 extends: .meson-build
306 variables:
307 UNWIND: "true"
Samuel Pitoiset73621762019-11-19 14:37:32 +0100308 DRI_LOADERS: >
309 -D glvnd=true
Michel Dänzera2cce702019-03-20 15:58:31 +0100310 DRI_DRIVERS: "auto"
311 GALLIUM_DRIVERS: "auto"
Eric Engestrom47f419d2019-05-01 12:09:26 +0100312 VULKAN_DRIVERS: intel,amd,freedreno
Michel Dänzer3fca2b72019-04-05 10:36:29 +0200313 CC: "ccache clang-8"
314 CXX: "ccache clang++-8"
Michel Dänzera2cce702019-03-20 15:58:31 +0100315
Michel Dänzeraaf1b092019-10-30 09:38:20 +0100316.meson-windows:
Dylan Baker19851c92019-10-23 14:36:19 -0700317 extends:
318 - .build-windows
319 before_script:
320 - $ENV:ARCH = "x86"
321 - $ENV:VERSION = "2019\Community"
322 script:
323 - cmd /C .gitlab-ci\meson-build.bat
324
Michel Dänzer82b30092019-05-03 18:19:25 +0200325scons-swr:
326 extends: .scons-build
Eric Engestrom46d23c02019-01-20 11:26:53 +0000327 variables:
Michel Dänzer82b30092019-05-03 18:19:25 +0200328 SCONS_TARGET: "swr=1"
329 SCONS_CHECK_COMMAND: "true"
330 LLVM_VERSION: "6.0"
331
332scons-win64:
333 extends: .scons-build
334 variables:
335 SCONS_TARGET: platform=windows machine=x86_64
336 SCONS_CHECK_COMMAND: "true"
Eric Engestrom89a74672019-01-21 09:42:37 +0000337
Michel Dänzer68977152019-05-03 10:58:48 +0200338meson-clover:
Eric Engestromb5a70af2019-01-28 18:05:22 +0000339 extends: .meson-build
340 variables:
341 UNWIND: "true"
342 DRI_LOADERS: >
343 -D glx=disabled
344 -D egl=false
345 -D gbm=false
346 GALLIUM_ST: >
347 -D dri3=false
348 -D gallium-vdpau=false
349 -D gallium-xvmc=false
350 -D gallium-omx=disabled
351 -D gallium-va=false
352 -D gallium-xa=false
353 -D gallium-nine=false
354 -D gallium-opencl=icd
Michel Dänzer68977152019-05-03 10:58:48 +0200355 script:
356 - export GALLIUM_DRIVERS="r600,radeonsi"
357 - .gitlab-ci/meson-build.sh
Samuel Pitoiset7d1c0912019-08-21 11:45:25 +0200358 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
Michel Dänzer68977152019-05-03 10:58:48 +0200359 - export GALLIUM_DRIVERS="i915,r600"
Michel Dänzer8a199922019-09-06 17:04:47 +0200360 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
361 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
362
363meson-clover-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200364 extends:
365 - meson-clover
Michel Dänzer3a48f452019-11-13 17:43:41 +0100366 - .use-x86_build_old
Michel Dänzer8a199922019-09-06 17:04:47 +0200367 variables:
368 UNWIND: "false"
369 DRI_LOADERS: >
370 -D glx=disabled
371 -D egl=false
372 -D gbm=false
373 -D platforms=drm,surfaceless
374 GALLIUM_DRIVERS: "i915,r600"
375 script:
Michel Dänzer68977152019-05-03 10:58:48 +0200376 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
377 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
378 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
Eric Engestrom8dab7072019-01-28 18:09:24 +0000379
Michel Dänzer82b30092019-05-03 18:19:25 +0200380meson-vulkan:
381 extends: .meson-build
382 variables:
383 UNWIND: "false"
384 DRI_LOADERS: >
385 -D glx=disabled
386 -D gbm=false
387 -D egl=false
388 -D platforms=x11,wayland,drm
389 -D osmesa=none
390 GALLIUM_ST: >
391 -D dri3=true
392 -D gallium-vdpau=false
393 -D gallium-xvmc=false
394 -D gallium-omx=disabled
395 -D gallium-va=false
396 -D gallium-xa=false
397 -D gallium-nine=false
398 -D gallium-opencl=disabled
Michel Dänzer75cc8c02019-09-25 12:56:58 +0200399 -D b_sanitize=undefined
400 -D c_args=-fno-sanitize-recover=all
401 -D cpp_args=-fno-sanitize-recover=all
402 UBSAN_OPTIONS: "print_stacktrace=1"
Michel Dänzer82b30092019-05-03 18:19:25 +0200403 VULKAN_DRIVERS: intel,amd,freedreno
Samuel Pitoiset7d1c0912019-08-21 11:45:25 +0200404 LLVM_VERSION: "8"
Eric Engestrom5f8d29a2019-05-08 18:17:23 +0200405 EXTRA_OPTION: >
406 -D vulkan-overlay-layer=true
Michel Dänzer82b30092019-05-03 18:19:25 +0200407
Eric Anholt030aa6e2019-08-07 14:05:51 -0700408# While the main point of this build is testing the i386 cross build,
409# we also use this one to test some other options that are exclusive
410# with meson-main's choices (classic swrast and osmesa)
Eric Anholt11aa32a2019-07-11 12:58:28 -0700411meson-i386:
412 extends: .meson-cross
413 variables:
Eric Engestrom1c82fa02019-08-09 23:46:50 +0100414 CROSS: i386
Eric Anholt11aa32a2019-07-11 12:58:28 -0700415 VULKAN_DRIVERS: intel
Eric Anholt030aa6e2019-08-07 14:05:51 -0700416 DRI_DRIVERS: "swrast"
417 GALLIUM_DRIVERS: "iris"
Eric Anholt11aa32a2019-07-11 12:58:28 -0700418 EXTRA_OPTION: >
Eric Anholt11aa32a2019-07-11 12:58:28 -0700419 -D vulkan-overlay-layer=true
Eric Anholt030aa6e2019-08-07 14:05:51 -0700420 -D llvm=false
421 -D osmesa=classic
Eric Anholt11aa32a2019-07-11 12:58:28 -0700422
Dylan Baker449f8312019-10-11 09:04:14 -0700423meson-mingw32-x86_64:
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700424 extends: .meson-build
425 variables:
426 UNWIND: "false"
427 DRI_DRIVERS: ""
428 GALLIUM_DRIVERS: "swrast"
429 EXTRA_OPTION: >
430 -Dllvm=false
431 -Dosmesa=gallium
432 --cross-file=.gitlab-ci/x86_64-w64-mingw32
433
Michel Dänzer88e57962019-09-12 11:45:13 +0200434scons:
Eric Engestromd4c6d4d2019-01-28 16:30:36 +0000435 extends: .scons-build
436 variables:
437 SCONS_TARGET: "llvm=1"
Dylan Baker54053bc2019-10-21 09:29:23 -0700438 SCONS_CHECK_COMMAND: "scons llvm=1 force_scons=1 check"
Michel Dänzerbaa50242019-09-12 11:38:06 +0200439 script:
Dylan Baker54053bc2019-10-21 09:29:23 -0700440 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
Michel Dänzerbaa50242019-09-12 11:38:06 +0200441 - LLVM_VERSION=8 .gitlab-ci/scons-build.sh
Michel Dänzer8a199922019-09-06 17:04:47 +0200442
443scons-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200444 extends:
445 - scons
Michel Dänzer3a48f452019-11-13 17:43:41 +0100446 - .use-x86_build_old
Michel Dänzerbaa50242019-09-12 11:38:06 +0200447 script:
448 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
Eric Anholt46daaca2019-06-28 16:35:32 -0700449
Eric Engestrom3bcd54f2019-10-14 23:53:15 +0100450.test:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200451 extends:
452 - .ci-run-policy
Eric Anholt46daaca2019-06-28 16:35:32 -0700453 stage: test
Eric Anholt46daaca2019-06-28 16:35:32 -0700454 variables:
455 GIT_STRATEGY: none # testing doesn't build anything from source
Michel Dänzerc6c76522019-11-11 18:13:28 +0100456 TAG: *x86_test
457 image: "$CI_REGISTRY_IMAGE/debian/x86_test:$TAG"
Michel Dänzer576f7b62019-10-22 17:16:52 +0200458 before_script:
Eric Anholt46daaca2019-06-28 16:35:32 -0700459 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
460 - rm -rf install
461 - tar -xf artifacts/install.tar
Samuel Pitoiseteab328f2019-11-14 14:00:46 +0100462 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
Eric Anholt46daaca2019-06-28 16:35:32 -0700463 artifacts:
Rob Clarkfdaf7772019-11-17 11:33:01 -0800464 when: always
Eric Anholt46daaca2019-06-28 16:35:32 -0700465 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
466 paths:
467 - results/
Michel Dänzercccb68b2019-09-13 11:13:12 +0200468 dependencies:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100469 - meson-testing
Michel Dänzerc5aa2712019-10-22 11:19:17 +0200470 needs:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100471 - meson-testing
Michel Dänzer3a48f452019-11-13 17:43:41 +0100472 - x86_test
Eric Anholt46daaca2019-06-28 16:35:32 -0700473
Michel Dänzer576f7b62019-10-22 17:16:52 +0200474.piglit-test:
475 extends: .test
Michel Dänzera3b3d3b2019-11-25 18:42:10 +0100476 artifacts:
477 when: on_failure
478 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
479 paths:
480 - summary/
Michel Dänzer576f7b62019-10-22 17:16:52 +0200481 variables:
482 LIBGL_ALWAYS_SOFTWARE: 1
483 PIGLIT_NO_WINDOW: 1
484 script:
485 - artifacts/piglit/run.sh
486
487piglit-quick_gl:
488 extends: .piglit-test
489 variables:
490 LP_NUM_THREADS: 0
491 PIGLIT_OPTIONS: >
492 -x arb_gpu_shader5
493 -x glx-multithread-clearbuffer
494 -x glx-multithread-shader-compile
495 -x max-texture-size
496 -x maxsize
497 PIGLIT_PROFILES: quick_gl
498
499piglit-glslparser+quick_shader:
500 extends: .piglit-test
501 variables:
502 LP_NUM_THREADS: 1
503 PIGLIT_OPTIONS: >
504 -x spec@arb_arrays_of_arrays@execution@ubo
505 -x spec@arb_gpu_shader_int64@execution$$
506 -x spec@arb_separate_shader_objects@execution
507 -x spec@arb_separate_shader_objects@linker
508 -x spec@arb_shader_storage_buffer_object@execution
509 -x spec@glsl-1.50@execution@built-in-functions
510 PIGLIT_PROFILES: "glslparser quick_shader"
511 PIGLIT_RESULTS: "glslparser+quick_shader"
512
513.deqp-test:
514 extends: .test
515 variables:
516 DEQP_SKIPS: deqp-default-skips.txt
517 script:
518 - ./artifacts/deqp-runner.sh
Rob Clark9f422cb2019-11-17 12:04:50 -0800519 artifacts:
520 reports:
521 junit: results/results.xml
Michel Dänzer576f7b62019-10-22 17:16:52 +0200522
Eric Anholt46daaca2019-06-28 16:35:32 -0700523test-llvmpipe-gles2:
Eric Anholt46daaca2019-06-28 16:35:32 -0700524 variables:
525 DEQP_VER: gles2
Eric Anholtf08c8102019-11-04 10:54:41 -0800526 DEQP_PARALLEL: 4
527 # Don't use threads inside llvmpipe, we've already got all 4 cores
528 # busy with DEQP_PARALLEL.
529 LP_NUM_THREADS: 0
Eric Anholt46daaca2019-06-28 16:35:32 -0700530 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
531 LIBGL_ALWAYS_SOFTWARE: "true"
Eric Anholt46daaca2019-06-28 16:35:32 -0700532 extends: .deqp-test
Eric Anholt553cd822019-08-09 10:32:40 -0700533
534test-softpipe-gles2:
Michel Dänzer128581d2019-09-11 18:55:43 +0200535 extends: test-llvmpipe-gles2
Eric Anholt553cd822019-08-09 10:32:40 -0700536 variables:
Eric Anholt553cd822019-08-09 10:32:40 -0700537 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
Eric Anholtf08c8102019-11-04 10:54:41 -0800538 DEQP_SKIPS: deqp-softpipe-skips.txt
Eric Anholt553cd822019-08-09 10:32:40 -0700539 GALLIUM_DRIVER: "softpipe"
Eric Anholt553cd822019-08-09 10:32:40 -0700540
Eric Anholt52843ec2019-11-05 10:31:29 -0800541test-softpipe-gles3:
542 parallel: 2
Eric Anholt553cd822019-08-09 10:32:40 -0700543 variables:
544 DEQP_VER: gles3
Eric Anholt52843ec2019-11-05 10:31:29 -0800545 extends: test-softpipe-gles2
546
547test-softpipe-gles31:
548 parallel: 4
549 variables:
550 DEQP_VER: gles31
551 extends: test-softpipe-gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700552
Michel Dänzer128581d2019-09-11 18:55:43 +0200553arm64_a630_gles2:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100554 extends:
555 - .deqp-test
556 - .use-arm_test
Eric Anholt6f0dc082019-06-28 16:35:32 -0700557 variables:
558 DEQP_VER: gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700559 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
560 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
561 NIR_VALIDATE: 0
Eric Anholtdd76a6f2019-11-21 05:12:58 -0800562 DEQP_PARALLEL: 4
Rob Clarkfdaf7772019-11-17 11:33:01 -0800563 FLAKES_CHANNEL: "#freedreno-ci"
Eric Anholt6f0dc082019-06-28 16:35:32 -0700564 tags:
565 - mesa-cheza
566 dependencies:
567 - meson-arm64
Eric Anholt6f0dc082019-06-28 16:35:32 -0700568
Michel Dänzer128581d2019-09-11 18:55:43 +0200569arm64_a630_gles31:
570 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700571 variables:
Michel Dänzer128581d2019-09-11 18:55:43 +0200572 DEQP_VER: gles31
Eric Anholt6f0dc082019-06-28 16:35:32 -0700573
574arm64_a630_gles3:
Michel Dänzer128581d2019-09-11 18:55:43 +0200575 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700576 variables:
577 DEQP_VER: gles3
578
Michel Dänzer128581d2019-09-11 18:55:43 +0200579arm64_a306_gles2:
Michel Dänzer128581d2019-09-11 18:55:43 +0200580 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700581 variables:
Michel Dänzer128581d2019-09-11 18:55:43 +0200582 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
583 DEQP_SKIPS: deqp-default-skips.txt
Michel Dänzer128581d2019-09-11 18:55:43 +0200584 tags:
585 - db410c