blob: 9aea544a87bdf40debb09a83fdb9c960160fd449 [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'
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:
Michel Dänzer41797a12019-09-26 09:27:27 +020021 rules:
22 - when: on_success
Michel Dänzer6140ed32019-03-26 18:39:41 +010023 retry:
24 max: 2
25 when:
26 - runner_system_failure
Eric Engestromac78ca42019-11-12 23:42:21 +000027 # Cancel CI run if a newer commit is pushed to the same branch
28 interruptible: true
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000029
Michel Dänzere426f402019-09-06 17:35:52 +020030.ci-deqp-artifacts:
Eric Anholt46daaca2019-06-28 16:35:32 -070031 artifacts:
32 when: always
33 untracked: false
34 paths:
35 # Watch out! Artifacts are relative to the build dir.
36 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
37 - artifacts
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000038
Michel Dänzerc6c76522019-11-11 18:13:28 +010039# Build the "normal" (non-LAVA) CI docker images.
40#
41# DEBIAN_TAG is the tag of the docker image used by later stage jobs. If the
42# image doesn't exist yet, the container stage job generates it.
43#
44# In order to generate a new image, one should generally change the tag.
45# While removing the image from the registry would also work, that's not
46# recommended except for ephemeral images during development: Replacing
47# an image after a significant amount of time might pull in newer
48# versions of gcc/clang or other packages, which might break the build
49# with older commits using the same tag.
50#
51# After merging a change resulting in generating a new image to the
52# main repository, it's recommended to remove the image from the source
53# repository's container registry, so that the image from the main
54# repository's registry will be used there as well.
Michel Dänzer8a199922019-09-06 17:04:47 +020055
Eric Engestrom81b98e92019-10-14 23:04:14 +010056.container:
57 stage: container
58 extends:
59 - .ci-run-policy
Michel Dänzer41797a12019-09-26 09:27:27 +020060 rules:
61 # Run pipeline by default for merge requests changing files affecting it
62 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
63 changes:
64 - VERSION
65 - bin/**/*
66 # GitLab CI
67 - .gitlab-ci.yml
68 - .gitlab-ci/**/*
69 # Meson
70 - meson*
71 - build-support/**/*
72 - subprojects/**/*
73 # SCons
74 - SConstruct
75 - scons/**/*
76 - common.py
77 # Source code
78 - include/**/*
79 - src/**/*
80 when: on_success
81 # Always run pipeline by default in the main project
82 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
83 when: on_success
84 # Otherwise, allow triggering jobs manually
85 - when: manual
Eric Engestrom81b98e92019-10-14 23:04:14 +010086 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +010087 DEBIAN_VERSION: buster-slim
88 REPO_SUFFIX: $CI_JOB_NAME
Michel Dänzer506e9d52019-11-07 20:08:03 +010089 DEBIAN_EXEC: 'bash .gitlab-ci/container/${CI_JOB_NAME}.sh'
Eric Engestrom81b98e92019-10-14 23:04:14 +010090 # no need to pull the whole repo to build the container image
91 GIT_STRATEGY: none
92
Michel Dänzerc6c76522019-11-11 18:13:28 +010093# Debian 10 based x86 build image
Michel Dänzer3a48f452019-11-13 17:43:41 +010094x86_build:
Michel Dänzere426f402019-09-06 17:35:52 +020095 extends:
96 - .debian@container-ifnot-exists
Eric Engestrom81b98e92019-10-14 23:04:14 +010097 - .container
Michel Dänzerc6c76522019-11-11 18:13:28 +010098 variables:
99 DEBIAN_TAG: &x86_build "2019-11-13"
Eric Engestrom46d23c02019-01-20 11:26:53 +0000100
Michel Dänzer3a48f452019-11-13 17:43:41 +0100101.use-x86_build:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100102 variables:
103 TAG: *x86_build
104 image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG"
Michel Dänzereb86cba2019-10-10 15:27:17 +0200105 needs:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100106 - x86_build
Michel Dänzereb86cba2019-10-10 15:27:17 +0200107
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100108# Debian 10 based x86 test image for GL
109x86_test-gl:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100110 extends: x86_build
Michel Dänzeraebf43d2019-11-05 18:52:24 +0100111 variables:
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100112 DEBIAN_TAG: &x86_test-gl "2019-12-05"
Michel Dänzeraebf43d2019-11-05 18:52:24 +0100113
Michel Dänzerc6c76522019-11-11 18:13:28 +0100114# Debian 9 based x86 build image (old LLVM)
Michel Dänzer3a48f452019-11-13 17:43:41 +0100115x86_build_old:
116 extends: x86_build
Michel Dänzer8a199922019-09-06 17:04:47 +0200117 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100118 DEBIAN_TAG: &x86_build_old "2019-09-18"
119 DEBIAN_VERSION: stretch-slim
Michel Dänzer8a199922019-09-06 17:04:47 +0200120
Michel Dänzer3a48f452019-11-13 17:43:41 +0100121.use-x86_build_old:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100122 variables:
123 TAG: *x86_build_old
124 image: "$CI_REGISTRY_IMAGE/debian/x86_build_old:$TAG"
Michel Dänzer88319f22019-09-18 16:17:01 +0200125 needs:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100126 - x86_build_old
Michel Dänzer88319f22019-09-18 16:17:01 +0200127
Michel Dänzerc6c76522019-11-11 18:13:28 +0100128# Debian 10 based ARM build image
Michel Dänzer3a48f452019-11-13 17:43:41 +0100129arm_build:
Michel Dänzere426f402019-09-06 17:35:52 +0200130 extends:
131 - .debian@container-ifnot-exists@arm64v8
Eric Engestrom81b98e92019-10-14 23:04:14 +0100132 - .container
Eric Anholt6f0dc082019-06-28 16:35:32 -0700133 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100134 DEBIAN_TAG: &arm_build "2019-11-13"
Eric Engestrom46d23c02019-01-20 11:26:53 +0000135
Michel Dänzerc6c76522019-11-11 18:13:28 +0100136.use-arm_build:
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100137 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100138 TAG: *arm_build
139 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
140 needs:
141 - arm_build
142
143# Debian 10 based ARM test image
144arm_test:
145 extends: arm_build
146 variables:
Rob Clark8af75512019-11-22 13:30:18 -0800147 DEBIAN_TAG: &arm_test "2019-11-22"
Michel Dänzerc6c76522019-11-11 18:13:28 +0100148
149.use-arm_test:
150 variables:
151 TAG: *arm_test
152 image: "$CI_REGISTRY_IMAGE/debian/arm_test:$TAG"
153 needs:
154 - meson-arm64
155 - arm_test
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100156
Eric Engestrom81b98e92019-10-14 23:04:14 +0100157
Eric Engestrom46d23c02019-01-20 11:26:53 +0000158# BUILD
159
Dylan Baker06e46472019-10-23 14:21:31 -0700160# Shared between windows and Linux
161.build-common:
Eric Engestromaba78c22019-10-14 23:52:58 +0100162 extends: .ci-run-policy
Eric Engestroma0f8a072019-09-11 18:51:46 +0100163 stage: build
Eric Engestrom46d23c02019-01-20 11:26:53 +0000164 artifacts:
Eric Anholtdd3d0b22019-07-24 09:27:48 -0700165 when: always
166 paths:
167 - _build/meson-logs/*.txt
168 # scons:
Michel Dänzer5229f272019-07-26 12:20:41 +0200169 - build/*/config.log
Eric Anholtf60defa2019-04-10 15:59:12 -0700170 - shader-db
Dylan Baker06e46472019-10-23 14:21:31 -0700171
172# Just Linux
173.build-linux:
174 extends: .build-common
Michel Dänzere9de19f2019-04-04 18:01:27 +0200175 variables:
176 CCACHE_COMPILERCHECK: "content"
Michel Dänzer32618ee2019-11-20 09:11:35 +0100177 CCACHE_COMPRESS: "true"
178 CCACHE_DIR: /cache/mesa/ccache
Eric Engestrom23b485c2019-02-12 16:59:27 +0000179 # Use ccache transparently, and print stats before/after
180 before_script:
181 - export PATH="/usr/lib/ccache:$PATH"
182 - export CCACHE_BASEDIR="$PWD"
Michel Dänzer32618ee2019-11-20 09:11:35 +0100183 - ccache --show-stats
Eric Engestrom23b485c2019-02-12 16:59:27 +0000184 after_script:
Eric Engestrom23b485c2019-02-12 16:59:27 +0000185 - ccache --show-stats
Eric Engestrom46d23c02019-01-20 11:26:53 +0000186
Dylan Baker19851c92019-10-23 14:36:19 -0700187.build-windows:
188 extends: .build-common
189 tags:
190 - mesa-windows
191 cache:
192 key: ${CI_JOB_NAME}
193 paths:
194 - subprojects/packagecache
195
Eric Engestrom46d23c02019-01-20 11:26:53 +0000196.meson-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100197 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700198 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100199 - .use-x86_build
Eric Engestrom23b485c2019-02-12 16:59:27 +0000200 script:
Michel Dänzercc2b3a92019-05-03 10:49:43 +0200201 - .gitlab-ci/meson-build.sh
Eric Engestrom46d23c02019-01-20 11:26:53 +0000202
Eric Engestrom06b245b2019-01-23 15:46:10 +0000203.scons-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100204 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700205 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100206 - .use-x86_build
Eric Engestrom06b245b2019-01-23 15:46:10 +0000207 variables:
Eric Anholtcb655d22019-11-06 11:14:14 -0800208 SCONSFLAGS: "-j4"
Eric Engestrom06b245b2019-01-23 15:46:10 +0000209 script:
Michel Dänzer0374aac2019-09-12 11:34:43 +0200210 - .gitlab-ci/scons-build.sh
Eric Engestrom06b245b2019-01-23 15:46:10 +0000211
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100212meson-testing:
Michel Dänzere426f402019-09-06 17:35:52 +0200213 extends:
214 - .meson-build
215 - .ci-deqp-artifacts
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200216 variables:
217 UNWIND: "true"
218 DRI_LOADERS: >
219 -D glx=dri
220 -D gbm=true
221 -D egl=true
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100222 -D platforms=x11,drm,surfaceless
223 GALLIUM_ST: >
224 -D dri3=true
225 GALLIUM_DRIVERS: "swrast"
226 LLVM_VERSION: "7"
227 BUILDTYPE: "debugoptimized"
228 script:
229 - .gitlab-ci/meson-build.sh
230 - .gitlab-ci/prepare-artifacts.sh
231
232meson-main:
233 extends: .meson-build
234 variables:
235 UNWIND: "true"
236 DRI_LOADERS: >
237 -D glx=dri
238 -D gbm=true
239 -D egl=true
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200240 -D platforms=x11,wayland,drm,surfaceless
241 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
242 GALLIUM_ST: >
243 -D dri3=true
244 -D gallium-extra-hud=true
245 -D gallium-vdpau=true
246 -D gallium-xvmc=true
247 -D gallium-omx=bellagio
248 -D gallium-va=true
249 -D gallium-xa=true
250 -D gallium-nine=true
251 -D gallium-opencl=disabled
Samuel Pitoisete6d26d72019-11-19 14:36:02 +0100252 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 +0200253 LLVM_VERSION: "7"
254 EXTRA_OPTION: >
255 -D osmesa=gallium
256 -D tools=all
Michel Dänzer59fcb012019-10-23 18:42:53 +0200257 script:
258 - .gitlab-ci/meson-build.sh
259 - .gitlab-ci/run-shader-db.sh
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200260
Michel Dänzere5364462019-09-13 11:59:43 +0200261.meson-cross:
262 extends:
263 - .meson-build
Michel Dänzere5364462019-09-13 11:59:43 +0200264 variables:
265 UNWIND: "false"
266 DRI_LOADERS: >
267 -D glx=disabled
268 -D gbm=false
269 -D egl=true
270 -D platforms=surfaceless
271 -D osmesa=none
272 GALLIUM_ST: >
273 -D dri3=false
274 -D gallium-vdpau=false
275 -D gallium-xvmc=false
276 -D gallium-omx=disabled
277 -D gallium-va=false
278 -D gallium-xa=false
279 -D gallium-nine=false
Michel Dänzere5364462019-09-13 11:59:43 +0200280
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200281.meson-arm:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100282 extends:
283 - .meson-cross
284 - .use-arm_build
Michel Dänzere5364462019-09-13 11:59:43 +0200285 variables:
Michel Dänzere5364462019-09-13 11:59:43 +0200286 VULKAN_DRIVERS: freedreno
Michel Dänzer793f6b32019-10-08 19:48:41 +0200287 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
Michel Dänzere5364462019-09-13 11:59:43 +0200288 EXTRA_OPTION: >
Michel Dänzere5364462019-09-13 11:59:43 +0200289 -D I-love-half-baked-turnips=true
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200290 tags:
291 - aarch64
292
293meson-armhf:
294 extends: .meson-arm
295 variables:
296 CROSS: armhf
Michel Dänzer793f6b32019-10-08 19:48:41 +0200297 LLVM_VERSION: "7"
Michel Dänzere5364462019-09-13 11:59:43 +0200298
299meson-arm64:
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200300 extends:
301 - .meson-arm
302 - .ci-deqp-artifacts
Michel Dänzere5364462019-09-13 11:59:43 +0200303 variables:
Michel Dänzere5364462019-09-13 11:59:43 +0200304 BUILDTYPE: "debugoptimized"
Samuel Pitoiset47ba2272019-11-12 14:25:16 +0100305 VULKAN_DRIVERS: "freedreno,amd"
Michel Dänzer59fcb012019-10-23 18:42:53 +0200306 script:
307 - .gitlab-ci/meson-build.sh
308 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzere5364462019-09-13 11:59:43 +0200309
Michel Dänzera2cce702019-03-20 15:58:31 +0100310meson-clang:
311 extends: .meson-build
312 variables:
313 UNWIND: "true"
Samuel Pitoiset73621762019-11-19 14:37:32 +0100314 DRI_LOADERS: >
315 -D glvnd=true
Michel Dänzera2cce702019-03-20 15:58:31 +0100316 DRI_DRIVERS: "auto"
317 GALLIUM_DRIVERS: "auto"
Eric Engestrom47f419d2019-05-01 12:09:26 +0100318 VULKAN_DRIVERS: intel,amd,freedreno
Michel Dänzer3fca2b72019-04-05 10:36:29 +0200319 CC: "ccache clang-8"
320 CXX: "ccache clang++-8"
Michel Dänzera2cce702019-03-20 15:58:31 +0100321
Michel Dänzeraaf1b092019-10-30 09:38:20 +0100322.meson-windows:
Dylan Baker19851c92019-10-23 14:36:19 -0700323 extends:
324 - .build-windows
325 before_script:
326 - $ENV:ARCH = "x86"
327 - $ENV:VERSION = "2019\Community"
328 script:
329 - cmd /C .gitlab-ci\meson-build.bat
330
Michel Dänzer82b30092019-05-03 18:19:25 +0200331scons-swr:
332 extends: .scons-build
Eric Engestrom46d23c02019-01-20 11:26:53 +0000333 variables:
Michel Dänzer82b30092019-05-03 18:19:25 +0200334 SCONS_TARGET: "swr=1"
335 SCONS_CHECK_COMMAND: "true"
336 LLVM_VERSION: "6.0"
337
338scons-win64:
339 extends: .scons-build
340 variables:
341 SCONS_TARGET: platform=windows machine=x86_64
342 SCONS_CHECK_COMMAND: "true"
Eric Engestrom89a74672019-01-21 09:42:37 +0000343
Michel Dänzer68977152019-05-03 10:58:48 +0200344meson-clover:
Eric Engestromb5a70af2019-01-28 18:05:22 +0000345 extends: .meson-build
346 variables:
347 UNWIND: "true"
348 DRI_LOADERS: >
349 -D glx=disabled
350 -D egl=false
351 -D gbm=false
352 GALLIUM_ST: >
353 -D dri3=false
354 -D gallium-vdpau=false
355 -D gallium-xvmc=false
356 -D gallium-omx=disabled
357 -D gallium-va=false
358 -D gallium-xa=false
359 -D gallium-nine=false
360 -D gallium-opencl=icd
Michel Dänzer68977152019-05-03 10:58:48 +0200361 script:
362 - export GALLIUM_DRIVERS="r600,radeonsi"
363 - .gitlab-ci/meson-build.sh
Samuel Pitoiset7d1c0912019-08-21 11:45:25 +0200364 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
Michel Dänzer68977152019-05-03 10:58:48 +0200365 - export GALLIUM_DRIVERS="i915,r600"
Michel Dänzer8a199922019-09-06 17:04:47 +0200366 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
367 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
368
369meson-clover-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200370 extends:
371 - meson-clover
Michel Dänzer3a48f452019-11-13 17:43:41 +0100372 - .use-x86_build_old
Michel Dänzer8a199922019-09-06 17:04:47 +0200373 variables:
374 UNWIND: "false"
375 DRI_LOADERS: >
376 -D glx=disabled
377 -D egl=false
378 -D gbm=false
379 -D platforms=drm,surfaceless
380 GALLIUM_DRIVERS: "i915,r600"
381 script:
Michel Dänzer68977152019-05-03 10:58:48 +0200382 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
383 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
384 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
Eric Engestrom8dab7072019-01-28 18:09:24 +0000385
Michel Dänzer82b30092019-05-03 18:19:25 +0200386meson-vulkan:
387 extends: .meson-build
388 variables:
389 UNWIND: "false"
390 DRI_LOADERS: >
391 -D glx=disabled
392 -D gbm=false
393 -D egl=false
394 -D platforms=x11,wayland,drm
395 -D osmesa=none
396 GALLIUM_ST: >
397 -D dri3=true
398 -D gallium-vdpau=false
399 -D gallium-xvmc=false
400 -D gallium-omx=disabled
401 -D gallium-va=false
402 -D gallium-xa=false
403 -D gallium-nine=false
404 -D gallium-opencl=disabled
Michel Dänzer75cc8c02019-09-25 12:56:58 +0200405 -D b_sanitize=undefined
406 -D c_args=-fno-sanitize-recover=all
407 -D cpp_args=-fno-sanitize-recover=all
408 UBSAN_OPTIONS: "print_stacktrace=1"
Michel Dänzer82b30092019-05-03 18:19:25 +0200409 VULKAN_DRIVERS: intel,amd,freedreno
Samuel Pitoiset7d1c0912019-08-21 11:45:25 +0200410 LLVM_VERSION: "8"
Eric Engestrom5f8d29a2019-05-08 18:17:23 +0200411 EXTRA_OPTION: >
412 -D vulkan-overlay-layer=true
Michel Dänzer82b30092019-05-03 18:19:25 +0200413
Eric Anholt030aa6e2019-08-07 14:05:51 -0700414# While the main point of this build is testing the i386 cross build,
415# we also use this one to test some other options that are exclusive
416# with meson-main's choices (classic swrast and osmesa)
Eric Anholt11aa32a2019-07-11 12:58:28 -0700417meson-i386:
418 extends: .meson-cross
419 variables:
Eric Engestrom1c82fa02019-08-09 23:46:50 +0100420 CROSS: i386
Eric Anholt11aa32a2019-07-11 12:58:28 -0700421 VULKAN_DRIVERS: intel
Eric Anholt030aa6e2019-08-07 14:05:51 -0700422 DRI_DRIVERS: "swrast"
423 GALLIUM_DRIVERS: "iris"
Eric Anholt11aa32a2019-07-11 12:58:28 -0700424 EXTRA_OPTION: >
Eric Anholt11aa32a2019-07-11 12:58:28 -0700425 -D vulkan-overlay-layer=true
Eric Anholt030aa6e2019-08-07 14:05:51 -0700426 -D llvm=false
427 -D osmesa=classic
Eric Anholt11aa32a2019-07-11 12:58:28 -0700428
Dylan Baker449f8312019-10-11 09:04:14 -0700429meson-mingw32-x86_64:
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700430 extends: .meson-build
431 variables:
432 UNWIND: "false"
433 DRI_DRIVERS: ""
434 GALLIUM_DRIVERS: "swrast"
435 EXTRA_OPTION: >
436 -Dllvm=false
437 -Dosmesa=gallium
438 --cross-file=.gitlab-ci/x86_64-w64-mingw32
439
Michel Dänzer88e57962019-09-12 11:45:13 +0200440scons:
Eric Engestromd4c6d4d2019-01-28 16:30:36 +0000441 extends: .scons-build
442 variables:
443 SCONS_TARGET: "llvm=1"
Dylan Baker54053bc2019-10-21 09:29:23 -0700444 SCONS_CHECK_COMMAND: "scons llvm=1 force_scons=1 check"
Michel Dänzerbaa50242019-09-12 11:38:06 +0200445 script:
Dylan Baker54053bc2019-10-21 09:29:23 -0700446 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
Michel Dänzerbaa50242019-09-12 11:38:06 +0200447 - LLVM_VERSION=8 .gitlab-ci/scons-build.sh
Michel Dänzer8a199922019-09-06 17:04:47 +0200448
449scons-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200450 extends:
451 - scons
Michel Dänzer3a48f452019-11-13 17:43:41 +0100452 - .use-x86_build_old
Michel Dänzerbaa50242019-09-12 11:38:06 +0200453 script:
454 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
Eric Anholt46daaca2019-06-28 16:35:32 -0700455
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100456.test-gl:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200457 extends:
458 - .ci-run-policy
Eric Anholt46daaca2019-06-28 16:35:32 -0700459 stage: test
Eric Anholt46daaca2019-06-28 16:35:32 -0700460 variables:
461 GIT_STRATEGY: none # testing doesn't build anything from source
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100462 TAG: *x86_test-gl
463 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
Michel Dänzer576f7b62019-10-22 17:16:52 +0200464 before_script:
Eric Anholt46daaca2019-06-28 16:35:32 -0700465 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
466 - rm -rf install
467 - tar -xf artifacts/install.tar
Samuel Pitoiseteab328f2019-11-14 14:00:46 +0100468 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
Eric Anholt46daaca2019-06-28 16:35:32 -0700469 artifacts:
Rob Clarkfdaf7772019-11-17 11:33:01 -0800470 when: always
Eric Anholt46daaca2019-06-28 16:35:32 -0700471 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
472 paths:
473 - results/
Michel Dänzercccb68b2019-09-13 11:13:12 +0200474 dependencies:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100475 - meson-testing
Michel Dänzerc5aa2712019-10-22 11:19:17 +0200476 needs:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100477 - meson-testing
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100478 - x86_test-gl
Eric Anholt46daaca2019-06-28 16:35:32 -0700479
Michel Dänzer576f7b62019-10-22 17:16:52 +0200480.piglit-test:
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100481 extends: .test-gl
Michel Dänzera3b3d3b2019-11-25 18:42:10 +0100482 artifacts:
483 when: on_failure
484 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
485 paths:
486 - summary/
Michel Dänzer576f7b62019-10-22 17:16:52 +0200487 variables:
488 LIBGL_ALWAYS_SOFTWARE: 1
489 PIGLIT_NO_WINDOW: 1
490 script:
491 - artifacts/piglit/run.sh
492
493piglit-quick_gl:
494 extends: .piglit-test
495 variables:
496 LP_NUM_THREADS: 0
497 PIGLIT_OPTIONS: >
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100498 --process-isolation false
Michel Dänzer576f7b62019-10-22 17:16:52 +0200499 -x arb_gpu_shader5
Eric Anholt3097efe2019-12-04 16:13:38 -0800500 -x egl_ext_device_
501 -x egl_ext_platform_device
Michel Dänzer576f7b62019-10-22 17:16:52 +0200502 -x glx-multithread-clearbuffer
503 -x glx-multithread-shader-compile
504 -x max-texture-size
505 -x maxsize
506 PIGLIT_PROFILES: quick_gl
507
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100508piglit-glslparser:
509 extends: .piglit-test
510 variables:
511 LP_NUM_THREADS: 0
512 PIGLIT_PROFILES: glslparser
513
514piglit-quick_shader:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200515 extends: .piglit-test
516 variables:
517 LP_NUM_THREADS: 1
518 PIGLIT_OPTIONS: >
519 -x spec@arb_arrays_of_arrays@execution@ubo
520 -x spec@arb_gpu_shader_int64@execution$$
521 -x spec@arb_separate_shader_objects@execution
522 -x spec@arb_separate_shader_objects@linker
523 -x spec@arb_shader_storage_buffer_object@execution
524 -x spec@glsl-1.50@execution@built-in-functions
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100525 PIGLIT_PROFILES: quick_shader
Michel Dänzer576f7b62019-10-22 17:16:52 +0200526
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100527.deqp-test-gl:
528 extends: .test-gl
Michel Dänzer576f7b62019-10-22 17:16:52 +0200529 variables:
530 DEQP_SKIPS: deqp-default-skips.txt
531 script:
532 - ./artifacts/deqp-runner.sh
533
Eric Anholt46daaca2019-06-28 16:35:32 -0700534test-llvmpipe-gles2:
Eric Anholt46daaca2019-06-28 16:35:32 -0700535 variables:
536 DEQP_VER: gles2
Eric Anholtf08c8102019-11-04 10:54:41 -0800537 DEQP_PARALLEL: 4
538 # Don't use threads inside llvmpipe, we've already got all 4 cores
539 # busy with DEQP_PARALLEL.
540 LP_NUM_THREADS: 0
Eric Anholt46daaca2019-06-28 16:35:32 -0700541 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
542 LIBGL_ALWAYS_SOFTWARE: "true"
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100543 extends: .deqp-test-gl
Eric Anholt553cd822019-08-09 10:32:40 -0700544
545test-softpipe-gles2:
Michel Dänzer128581d2019-09-11 18:55:43 +0200546 extends: test-llvmpipe-gles2
Eric Anholt553cd822019-08-09 10:32:40 -0700547 variables:
Eric Anholt553cd822019-08-09 10:32:40 -0700548 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
Eric Anholtf08c8102019-11-04 10:54:41 -0800549 DEQP_SKIPS: deqp-softpipe-skips.txt
Eric Anholt553cd822019-08-09 10:32:40 -0700550 GALLIUM_DRIVER: "softpipe"
Eric Anholt553cd822019-08-09 10:32:40 -0700551
Eric Anholt52843ec2019-11-05 10:31:29 -0800552test-softpipe-gles3:
553 parallel: 2
Eric Anholt553cd822019-08-09 10:32:40 -0700554 variables:
555 DEQP_VER: gles3
Eric Anholt52843ec2019-11-05 10:31:29 -0800556 extends: test-softpipe-gles2
557
558test-softpipe-gles31:
559 parallel: 4
560 variables:
561 DEQP_VER: gles31
562 extends: test-softpipe-gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700563
Michel Dänzer128581d2019-09-11 18:55:43 +0200564arm64_a630_gles2:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100565 extends:
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100566 - .deqp-test-gl
Michel Dänzerc6c76522019-11-11 18:13:28 +0100567 - .use-arm_test
Eric Anholt6f0dc082019-06-28 16:35:32 -0700568 variables:
569 DEQP_VER: gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700570 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
571 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
572 NIR_VALIDATE: 0
Eric Anholtdd76a6f2019-11-21 05:12:58 -0800573 DEQP_PARALLEL: 4
Rob Clarkfdaf7772019-11-17 11:33:01 -0800574 FLAKES_CHANNEL: "#freedreno-ci"
Eric Anholt6f0dc082019-06-28 16:35:32 -0700575 tags:
576 - mesa-cheza
577 dependencies:
578 - meson-arm64
Eric Anholt6f0dc082019-06-28 16:35:32 -0700579
Michel Dänzer128581d2019-09-11 18:55:43 +0200580arm64_a630_gles31:
581 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700582 variables:
Michel Dänzer128581d2019-09-11 18:55:43 +0200583 DEQP_VER: gles31
Eric Anholt6f0dc082019-06-28 16:35:32 -0700584
585arm64_a630_gles3:
Michel Dänzer128581d2019-09-11 18:55:43 +0200586 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700587 variables:
588 DEQP_VER: gles3
589
Michel Dänzer128581d2019-09-11 18:55:43 +0200590arm64_a306_gles2:
Michel Dänzer128581d2019-09-11 18:55:43 +0200591 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700592 variables:
Michel Dänzer128581d2019-09-11 18:55:43 +0200593 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
594 DEQP_SKIPS: deqp-default-skips.txt
Michel Dänzer128581d2019-09-11 18:55:43 +0200595 tags:
596 - db410c