blob: 70a440cd5b6c91de6bd2b2393ff55ffba0014e3e [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
Samuel Pitoisetf2a594f2019-11-18 09:23:18 +0100114# Debian 10 based x86 test image for VK
115x86_test-vk:
116 extends: x86_build
117 variables:
118 DEBIAN_TAG: &x86_test-vk "2019-11-22"
119
Michel Dänzerc6c76522019-11-11 18:13:28 +0100120# Debian 9 based x86 build image (old LLVM)
Michel Dänzer3a48f452019-11-13 17:43:41 +0100121x86_build_old:
122 extends: x86_build
Michel Dänzer8a199922019-09-06 17:04:47 +0200123 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100124 DEBIAN_TAG: &x86_build_old "2019-09-18"
125 DEBIAN_VERSION: stretch-slim
Michel Dänzer8a199922019-09-06 17:04:47 +0200126
Michel Dänzer3a48f452019-11-13 17:43:41 +0100127.use-x86_build_old:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100128 variables:
129 TAG: *x86_build_old
130 image: "$CI_REGISTRY_IMAGE/debian/x86_build_old:$TAG"
Michel Dänzer88319f22019-09-18 16:17:01 +0200131 needs:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100132 - x86_build_old
Michel Dänzer88319f22019-09-18 16:17:01 +0200133
Michel Dänzerc6c76522019-11-11 18:13:28 +0100134# Debian 10 based ARM build image
Michel Dänzer3a48f452019-11-13 17:43:41 +0100135arm_build:
Michel Dänzere426f402019-09-06 17:35:52 +0200136 extends:
137 - .debian@container-ifnot-exists@arm64v8
Eric Engestrom81b98e92019-10-14 23:04:14 +0100138 - .container
Eric Anholt6f0dc082019-06-28 16:35:32 -0700139 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100140 DEBIAN_TAG: &arm_build "2019-11-13"
Eric Engestrom46d23c02019-01-20 11:26:53 +0000141
Michel Dänzerc6c76522019-11-11 18:13:28 +0100142.use-arm_build:
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100143 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100144 TAG: *arm_build
145 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
146 needs:
147 - arm_build
148
149# Debian 10 based ARM test image
150arm_test:
151 extends: arm_build
152 variables:
Rob Clark8af75512019-11-22 13:30:18 -0800153 DEBIAN_TAG: &arm_test "2019-11-22"
Michel Dänzerc6c76522019-11-11 18:13:28 +0100154
155.use-arm_test:
156 variables:
157 TAG: *arm_test
158 image: "$CI_REGISTRY_IMAGE/debian/arm_test:$TAG"
159 needs:
160 - meson-arm64
161 - arm_test
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100162
Eric Engestrom81b98e92019-10-14 23:04:14 +0100163
Eric Engestrom46d23c02019-01-20 11:26:53 +0000164# BUILD
165
Dylan Baker06e46472019-10-23 14:21:31 -0700166# Shared between windows and Linux
167.build-common:
Eric Engestromaba78c22019-10-14 23:52:58 +0100168 extends: .ci-run-policy
Eric Engestroma0f8a072019-09-11 18:51:46 +0100169 stage: build
Eric Engestrom46d23c02019-01-20 11:26:53 +0000170 artifacts:
Eric Anholtdd3d0b22019-07-24 09:27:48 -0700171 when: always
172 paths:
173 - _build/meson-logs/*.txt
174 # scons:
Michel Dänzer5229f272019-07-26 12:20:41 +0200175 - build/*/config.log
Eric Anholtf60defa2019-04-10 15:59:12 -0700176 - shader-db
Dylan Baker06e46472019-10-23 14:21:31 -0700177
178# Just Linux
179.build-linux:
180 extends: .build-common
Michel Dänzere9de19f2019-04-04 18:01:27 +0200181 variables:
182 CCACHE_COMPILERCHECK: "content"
Michel Dänzer32618ee2019-11-20 09:11:35 +0100183 CCACHE_COMPRESS: "true"
184 CCACHE_DIR: /cache/mesa/ccache
Eric Engestrom23b485c2019-02-12 16:59:27 +0000185 # Use ccache transparently, and print stats before/after
186 before_script:
187 - export PATH="/usr/lib/ccache:$PATH"
188 - export CCACHE_BASEDIR="$PWD"
Michel Dänzer32618ee2019-11-20 09:11:35 +0100189 - ccache --show-stats
Eric Engestrom23b485c2019-02-12 16:59:27 +0000190 after_script:
Eric Engestrom23b485c2019-02-12 16:59:27 +0000191 - ccache --show-stats
Eric Engestrom46d23c02019-01-20 11:26:53 +0000192
Dylan Baker19851c92019-10-23 14:36:19 -0700193.build-windows:
194 extends: .build-common
195 tags:
196 - mesa-windows
197 cache:
198 key: ${CI_JOB_NAME}
199 paths:
200 - subprojects/packagecache
201
Eric Engestrom46d23c02019-01-20 11:26:53 +0000202.meson-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100203 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700204 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100205 - .use-x86_build
Eric Engestrom23b485c2019-02-12 16:59:27 +0000206 script:
Michel Dänzercc2b3a92019-05-03 10:49:43 +0200207 - .gitlab-ci/meson-build.sh
Eric Engestrom46d23c02019-01-20 11:26:53 +0000208
Eric Engestrom06b245b2019-01-23 15:46:10 +0000209.scons-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100210 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700211 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100212 - .use-x86_build
Eric Engestrom06b245b2019-01-23 15:46:10 +0000213 variables:
Eric Anholtcb655d22019-11-06 11:14:14 -0800214 SCONSFLAGS: "-j4"
Eric Engestrom06b245b2019-01-23 15:46:10 +0000215 script:
Michel Dänzer0374aac2019-09-12 11:34:43 +0200216 - .gitlab-ci/scons-build.sh
Eric Engestrom06b245b2019-01-23 15:46:10 +0000217
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100218meson-testing:
Michel Dänzere426f402019-09-06 17:35:52 +0200219 extends:
220 - .meson-build
221 - .ci-deqp-artifacts
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200222 variables:
223 UNWIND: "true"
224 DRI_LOADERS: >
225 -D glx=dri
226 -D gbm=true
227 -D egl=true
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100228 -D platforms=x11,drm,surfaceless
229 GALLIUM_ST: >
230 -D dri3=true
231 GALLIUM_DRIVERS: "swrast"
232 LLVM_VERSION: "7"
233 BUILDTYPE: "debugoptimized"
234 script:
235 - .gitlab-ci/meson-build.sh
236 - .gitlab-ci/prepare-artifacts.sh
237
238meson-main:
239 extends: .meson-build
240 variables:
241 UNWIND: "true"
242 DRI_LOADERS: >
243 -D glx=dri
244 -D gbm=true
245 -D egl=true
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200246 -D platforms=x11,wayland,drm,surfaceless
247 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
248 GALLIUM_ST: >
249 -D dri3=true
250 -D gallium-extra-hud=true
251 -D gallium-vdpau=true
252 -D gallium-xvmc=true
253 -D gallium-omx=bellagio
254 -D gallium-va=true
255 -D gallium-xa=true
256 -D gallium-nine=true
257 -D gallium-opencl=disabled
Samuel Pitoisete6d26d72019-11-19 14:36:02 +0100258 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 +0200259 LLVM_VERSION: "7"
260 EXTRA_OPTION: >
261 -D osmesa=gallium
262 -D tools=all
Michel Dänzer59fcb012019-10-23 18:42:53 +0200263 script:
264 - .gitlab-ci/meson-build.sh
265 - .gitlab-ci/run-shader-db.sh
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200266
Michel Dänzere5364462019-09-13 11:59:43 +0200267.meson-cross:
268 extends:
269 - .meson-build
Michel Dänzere5364462019-09-13 11:59:43 +0200270 variables:
271 UNWIND: "false"
272 DRI_LOADERS: >
273 -D glx=disabled
274 -D gbm=false
275 -D egl=true
276 -D platforms=surfaceless
277 -D osmesa=none
278 GALLIUM_ST: >
279 -D dri3=false
280 -D gallium-vdpau=false
281 -D gallium-xvmc=false
282 -D gallium-omx=disabled
283 -D gallium-va=false
284 -D gallium-xa=false
285 -D gallium-nine=false
Michel Dänzere5364462019-09-13 11:59:43 +0200286
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200287.meson-arm:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100288 extends:
289 - .meson-cross
290 - .use-arm_build
Michel Dänzere5364462019-09-13 11:59:43 +0200291 variables:
Michel Dänzere5364462019-09-13 11:59:43 +0200292 VULKAN_DRIVERS: freedreno
Michel Dänzer793f6b32019-10-08 19:48:41 +0200293 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
Michel Dänzere5364462019-09-13 11:59:43 +0200294 EXTRA_OPTION: >
Michel Dänzere5364462019-09-13 11:59:43 +0200295 -D I-love-half-baked-turnips=true
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200296 tags:
297 - aarch64
298
299meson-armhf:
300 extends: .meson-arm
301 variables:
302 CROSS: armhf
Michel Dänzer793f6b32019-10-08 19:48:41 +0200303 LLVM_VERSION: "7"
Michel Dänzere5364462019-09-13 11:59:43 +0200304
305meson-arm64:
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200306 extends:
307 - .meson-arm
308 - .ci-deqp-artifacts
Michel Dänzere5364462019-09-13 11:59:43 +0200309 variables:
Michel Dänzere5364462019-09-13 11:59:43 +0200310 BUILDTYPE: "debugoptimized"
Samuel Pitoiset47ba2272019-11-12 14:25:16 +0100311 VULKAN_DRIVERS: "freedreno,amd"
Michel Dänzer59fcb012019-10-23 18:42:53 +0200312 script:
313 - .gitlab-ci/meson-build.sh
314 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzere5364462019-09-13 11:59:43 +0200315
Michel Dänzera2cce702019-03-20 15:58:31 +0100316meson-clang:
317 extends: .meson-build
318 variables:
319 UNWIND: "true"
Samuel Pitoiset73621762019-11-19 14:37:32 +0100320 DRI_LOADERS: >
321 -D glvnd=true
Michel Dänzera2cce702019-03-20 15:58:31 +0100322 DRI_DRIVERS: "auto"
323 GALLIUM_DRIVERS: "auto"
Eric Engestrom47f419d2019-05-01 12:09:26 +0100324 VULKAN_DRIVERS: intel,amd,freedreno
Michel Dänzer3fca2b72019-04-05 10:36:29 +0200325 CC: "ccache clang-8"
326 CXX: "ccache clang++-8"
Michel Dänzera2cce702019-03-20 15:58:31 +0100327
Michel Dänzeraaf1b092019-10-30 09:38:20 +0100328.meson-windows:
Dylan Baker19851c92019-10-23 14:36:19 -0700329 extends:
330 - .build-windows
331 before_script:
332 - $ENV:ARCH = "x86"
333 - $ENV:VERSION = "2019\Community"
334 script:
335 - cmd /C .gitlab-ci\meson-build.bat
336
Michel Dänzer82b30092019-05-03 18:19:25 +0200337scons-swr:
338 extends: .scons-build
Eric Engestrom46d23c02019-01-20 11:26:53 +0000339 variables:
Michel Dänzer82b30092019-05-03 18:19:25 +0200340 SCONS_TARGET: "swr=1"
341 SCONS_CHECK_COMMAND: "true"
342 LLVM_VERSION: "6.0"
343
344scons-win64:
345 extends: .scons-build
346 variables:
347 SCONS_TARGET: platform=windows machine=x86_64
348 SCONS_CHECK_COMMAND: "true"
Eric Engestrom89a74672019-01-21 09:42:37 +0000349
Michel Dänzer68977152019-05-03 10:58:48 +0200350meson-clover:
Eric Engestromb5a70af2019-01-28 18:05:22 +0000351 extends: .meson-build
352 variables:
353 UNWIND: "true"
354 DRI_LOADERS: >
355 -D glx=disabled
356 -D egl=false
357 -D gbm=false
358 GALLIUM_ST: >
359 -D dri3=false
360 -D gallium-vdpau=false
361 -D gallium-xvmc=false
362 -D gallium-omx=disabled
363 -D gallium-va=false
364 -D gallium-xa=false
365 -D gallium-nine=false
366 -D gallium-opencl=icd
Michel Dänzer68977152019-05-03 10:58:48 +0200367 script:
368 - export GALLIUM_DRIVERS="r600,radeonsi"
369 - .gitlab-ci/meson-build.sh
Samuel Pitoiset7d1c0912019-08-21 11:45:25 +0200370 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
Michel Dänzer68977152019-05-03 10:58:48 +0200371 - export GALLIUM_DRIVERS="i915,r600"
Michel Dänzer8a199922019-09-06 17:04:47 +0200372 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
373 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
374
375meson-clover-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200376 extends:
377 - meson-clover
Michel Dänzer3a48f452019-11-13 17:43:41 +0100378 - .use-x86_build_old
Michel Dänzer8a199922019-09-06 17:04:47 +0200379 variables:
380 UNWIND: "false"
381 DRI_LOADERS: >
382 -D glx=disabled
383 -D egl=false
384 -D gbm=false
385 -D platforms=drm,surfaceless
386 GALLIUM_DRIVERS: "i915,r600"
387 script:
Michel Dänzer68977152019-05-03 10:58:48 +0200388 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
389 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
390 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
Eric Engestrom8dab7072019-01-28 18:09:24 +0000391
Michel Dänzer82b30092019-05-03 18:19:25 +0200392meson-vulkan:
393 extends: .meson-build
394 variables:
395 UNWIND: "false"
396 DRI_LOADERS: >
397 -D glx=disabled
398 -D gbm=false
399 -D egl=false
400 -D platforms=x11,wayland,drm
401 -D osmesa=none
402 GALLIUM_ST: >
403 -D dri3=true
404 -D gallium-vdpau=false
405 -D gallium-xvmc=false
406 -D gallium-omx=disabled
407 -D gallium-va=false
408 -D gallium-xa=false
409 -D gallium-nine=false
410 -D gallium-opencl=disabled
Michel Dänzer75cc8c02019-09-25 12:56:58 +0200411 -D b_sanitize=undefined
412 -D c_args=-fno-sanitize-recover=all
413 -D cpp_args=-fno-sanitize-recover=all
414 UBSAN_OPTIONS: "print_stacktrace=1"
Michel Dänzer82b30092019-05-03 18:19:25 +0200415 VULKAN_DRIVERS: intel,amd,freedreno
Samuel Pitoiset7d1c0912019-08-21 11:45:25 +0200416 LLVM_VERSION: "8"
Eric Engestrom5f8d29a2019-05-08 18:17:23 +0200417 EXTRA_OPTION: >
418 -D vulkan-overlay-layer=true
Michel Dänzer82b30092019-05-03 18:19:25 +0200419
Eric Anholt030aa6e2019-08-07 14:05:51 -0700420# While the main point of this build is testing the i386 cross build,
421# we also use this one to test some other options that are exclusive
422# with meson-main's choices (classic swrast and osmesa)
Eric Anholt11aa32a2019-07-11 12:58:28 -0700423meson-i386:
424 extends: .meson-cross
425 variables:
Eric Engestrom1c82fa02019-08-09 23:46:50 +0100426 CROSS: i386
Eric Anholt11aa32a2019-07-11 12:58:28 -0700427 VULKAN_DRIVERS: intel
Eric Anholt030aa6e2019-08-07 14:05:51 -0700428 DRI_DRIVERS: "swrast"
429 GALLIUM_DRIVERS: "iris"
Eric Anholt11aa32a2019-07-11 12:58:28 -0700430 EXTRA_OPTION: >
Eric Anholt11aa32a2019-07-11 12:58:28 -0700431 -D vulkan-overlay-layer=true
Eric Anholt030aa6e2019-08-07 14:05:51 -0700432 -D llvm=false
433 -D osmesa=classic
Eric Anholt11aa32a2019-07-11 12:58:28 -0700434
Dylan Baker449f8312019-10-11 09:04:14 -0700435meson-mingw32-x86_64:
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700436 extends: .meson-build
437 variables:
438 UNWIND: "false"
439 DRI_DRIVERS: ""
440 GALLIUM_DRIVERS: "swrast"
441 EXTRA_OPTION: >
442 -Dllvm=false
443 -Dosmesa=gallium
444 --cross-file=.gitlab-ci/x86_64-w64-mingw32
445
Michel Dänzer88e57962019-09-12 11:45:13 +0200446scons:
Eric Engestromd4c6d4d2019-01-28 16:30:36 +0000447 extends: .scons-build
448 variables:
449 SCONS_TARGET: "llvm=1"
Dylan Baker54053bc2019-10-21 09:29:23 -0700450 SCONS_CHECK_COMMAND: "scons llvm=1 force_scons=1 check"
Michel Dänzerbaa50242019-09-12 11:38:06 +0200451 script:
Dylan Baker54053bc2019-10-21 09:29:23 -0700452 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
Michel Dänzerbaa50242019-09-12 11:38:06 +0200453 - LLVM_VERSION=8 .gitlab-ci/scons-build.sh
Michel Dänzer8a199922019-09-06 17:04:47 +0200454
455scons-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200456 extends:
457 - scons
Michel Dänzer3a48f452019-11-13 17:43:41 +0100458 - .use-x86_build_old
Michel Dänzerbaa50242019-09-12 11:38:06 +0200459 script:
460 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
Eric Anholt46daaca2019-06-28 16:35:32 -0700461
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100462.test-gl:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200463 extends:
464 - .ci-run-policy
Eric Anholt46daaca2019-06-28 16:35:32 -0700465 stage: test
Eric Anholt46daaca2019-06-28 16:35:32 -0700466 variables:
467 GIT_STRATEGY: none # testing doesn't build anything from source
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100468 TAG: *x86_test-gl
469 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
Michel Dänzer576f7b62019-10-22 17:16:52 +0200470 before_script:
Eric Anholt46daaca2019-06-28 16:35:32 -0700471 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
472 - rm -rf install
473 - tar -xf artifacts/install.tar
Samuel Pitoiseteab328f2019-11-14 14:00:46 +0100474 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
Eric Anholt46daaca2019-06-28 16:35:32 -0700475 artifacts:
Rob Clarkfdaf7772019-11-17 11:33:01 -0800476 when: always
Eric Anholt46daaca2019-06-28 16:35:32 -0700477 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
478 paths:
479 - results/
Michel Dänzercccb68b2019-09-13 11:13:12 +0200480 dependencies:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100481 - meson-testing
Michel Dänzerc5aa2712019-10-22 11:19:17 +0200482 needs:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100483 - meson-testing
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100484 - x86_test-gl
Eric Anholt46daaca2019-06-28 16:35:32 -0700485
Michel Dänzer576f7b62019-10-22 17:16:52 +0200486.piglit-test:
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100487 extends: .test-gl
Michel Dänzera3b3d3b2019-11-25 18:42:10 +0100488 artifacts:
489 when: on_failure
490 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
491 paths:
492 - summary/
Michel Dänzer576f7b62019-10-22 17:16:52 +0200493 variables:
494 LIBGL_ALWAYS_SOFTWARE: 1
495 PIGLIT_NO_WINDOW: 1
496 script:
497 - artifacts/piglit/run.sh
498
499piglit-quick_gl:
500 extends: .piglit-test
501 variables:
502 LP_NUM_THREADS: 0
503 PIGLIT_OPTIONS: >
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100504 --process-isolation false
Michel Dänzer576f7b62019-10-22 17:16:52 +0200505 -x arb_gpu_shader5
Eric Anholt3097efe2019-12-04 16:13:38 -0800506 -x egl_ext_device_
507 -x egl_ext_platform_device
Michel Dänzer576f7b62019-10-22 17:16:52 +0200508 -x glx-multithread-clearbuffer
509 -x glx-multithread-shader-compile
510 -x max-texture-size
511 -x maxsize
512 PIGLIT_PROFILES: quick_gl
513
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100514piglit-glslparser:
515 extends: .piglit-test
516 variables:
517 LP_NUM_THREADS: 0
518 PIGLIT_PROFILES: glslparser
519
520piglit-quick_shader:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200521 extends: .piglit-test
522 variables:
523 LP_NUM_THREADS: 1
524 PIGLIT_OPTIONS: >
525 -x spec@arb_arrays_of_arrays@execution@ubo
526 -x spec@arb_gpu_shader_int64@execution$$
527 -x spec@arb_separate_shader_objects@execution
528 -x spec@arb_separate_shader_objects@linker
529 -x spec@arb_shader_storage_buffer_object@execution
530 -x spec@glsl-1.50@execution@built-in-functions
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100531 PIGLIT_PROFILES: quick_shader
Michel Dänzer576f7b62019-10-22 17:16:52 +0200532
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100533.deqp-test-gl:
534 extends: .test-gl
Michel Dänzer576f7b62019-10-22 17:16:52 +0200535 variables:
536 DEQP_SKIPS: deqp-default-skips.txt
537 script:
538 - ./artifacts/deqp-runner.sh
539
Eric Anholt46daaca2019-06-28 16:35:32 -0700540test-llvmpipe-gles2:
Eric Anholt46daaca2019-06-28 16:35:32 -0700541 variables:
542 DEQP_VER: gles2
Eric Anholtf08c8102019-11-04 10:54:41 -0800543 DEQP_PARALLEL: 4
544 # Don't use threads inside llvmpipe, we've already got all 4 cores
545 # busy with DEQP_PARALLEL.
546 LP_NUM_THREADS: 0
Eric Anholt46daaca2019-06-28 16:35:32 -0700547 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
548 LIBGL_ALWAYS_SOFTWARE: "true"
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100549 extends: .deqp-test-gl
Eric Anholt553cd822019-08-09 10:32:40 -0700550
551test-softpipe-gles2:
Michel Dänzer128581d2019-09-11 18:55:43 +0200552 extends: test-llvmpipe-gles2
Eric Anholt553cd822019-08-09 10:32:40 -0700553 variables:
Eric Anholt553cd822019-08-09 10:32:40 -0700554 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
Eric Anholtf08c8102019-11-04 10:54:41 -0800555 DEQP_SKIPS: deqp-softpipe-skips.txt
Eric Anholt553cd822019-08-09 10:32:40 -0700556 GALLIUM_DRIVER: "softpipe"
Eric Anholt553cd822019-08-09 10:32:40 -0700557
Eric Anholt52843ec2019-11-05 10:31:29 -0800558test-softpipe-gles3:
559 parallel: 2
Eric Anholt553cd822019-08-09 10:32:40 -0700560 variables:
561 DEQP_VER: gles3
Eric Anholt52843ec2019-11-05 10:31:29 -0800562 extends: test-softpipe-gles2
563
564test-softpipe-gles31:
565 parallel: 4
566 variables:
567 DEQP_VER: gles31
568 extends: test-softpipe-gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700569
Michel Dänzer128581d2019-09-11 18:55:43 +0200570arm64_a630_gles2:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100571 extends:
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100572 - .deqp-test-gl
Michel Dänzerc6c76522019-11-11 18:13:28 +0100573 - .use-arm_test
Eric Anholt6f0dc082019-06-28 16:35:32 -0700574 variables:
575 DEQP_VER: gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700576 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
577 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
578 NIR_VALIDATE: 0
Eric Anholtdd76a6f2019-11-21 05:12:58 -0800579 DEQP_PARALLEL: 4
Rob Clarkfdaf7772019-11-17 11:33:01 -0800580 FLAKES_CHANNEL: "#freedreno-ci"
Eric Anholt6f0dc082019-06-28 16:35:32 -0700581 tags:
582 - mesa-cheza
583 dependencies:
584 - meson-arm64
Eric Anholt6f0dc082019-06-28 16:35:32 -0700585
Michel Dänzer128581d2019-09-11 18:55:43 +0200586arm64_a630_gles31:
587 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700588 variables:
Michel Dänzer128581d2019-09-11 18:55:43 +0200589 DEQP_VER: gles31
Eric Anholt6f0dc082019-06-28 16:35:32 -0700590
591arm64_a630_gles3:
Michel Dänzer128581d2019-09-11 18:55:43 +0200592 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700593 variables:
594 DEQP_VER: gles3
595
Michel Dänzer128581d2019-09-11 18:55:43 +0200596arm64_a306_gles2:
Michel Dänzer128581d2019-09-11 18:55:43 +0200597 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700598 variables:
Michel Dänzer128581d2019-09-11 18:55:43 +0200599 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
600 DEQP_SKIPS: deqp-default-skips.txt
Michel Dänzer128581d2019-09-11 18:55:43 +0200601 tags:
602 - db410c