blob: 5860026296c42a1b065035c9a270eef0062eb9a2 [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:
Timothy Arceri530d3b22019-11-19 22:22:59 +1100106 DEBIAN_TAG: &x86_test "2019-11-20-2"
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:
141 DEBIAN_TAG: &arm_test "2019-11-12"
142
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
169 cache:
170 key: ${CI_JOB_NAME}
171 paths:
172 - ccache
Michel Dänzere9de19f2019-04-04 18:01:27 +0200173 variables:
174 CCACHE_COMPILERCHECK: "content"
Eric Engestrom23b485c2019-02-12 16:59:27 +0000175 # Use ccache transparently, and print stats before/after
176 before_script:
177 - export PATH="/usr/lib/ccache:$PATH"
178 - export CCACHE_BASEDIR="$PWD"
Eric Anholtcb655d22019-11-06 11:14:14 -0800179 - export CCACHE_DIR="$PWD/ccache"
180 - ccache --max-size=1500M
181 - ccache --zero-stats || true
Eric Engestrom23b485c2019-02-12 16:59:27 +0000182 - ccache --show-stats || true
183 after_script:
Eric Anholtcb655d22019-11-06 11:14:14 -0800184 - export CCACHE_DIR="$PWD/ccache"
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
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200212meson-main:
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
222 -D platforms=x11,wayland,drm,surfaceless
223 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
224 GALLIUM_ST: >
225 -D dri3=true
226 -D gallium-extra-hud=true
227 -D gallium-vdpau=true
228 -D gallium-xvmc=true
229 -D gallium-omx=bellagio
230 -D gallium-va=true
231 -D gallium-xa=true
232 -D gallium-nine=true
233 -D gallium-opencl=disabled
Erik Faye-Lund3d529c12019-10-22 09:08:11 +0200234 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 +0200235 LLVM_VERSION: "7"
236 EXTRA_OPTION: >
237 -D osmesa=gallium
238 -D tools=all
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200239 BUILDTYPE: "debugoptimized"
Michel Dänzer59fcb012019-10-23 18:42:53 +0200240 script:
241 - .gitlab-ci/meson-build.sh
242 - .gitlab-ci/run-shader-db.sh
243 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200244
Michel Dänzere5364462019-09-13 11:59:43 +0200245.meson-cross:
246 extends:
247 - .meson-build
Michel Dänzere5364462019-09-13 11:59:43 +0200248 variables:
249 UNWIND: "false"
250 DRI_LOADERS: >
251 -D glx=disabled
252 -D gbm=false
253 -D egl=true
254 -D platforms=surfaceless
255 -D osmesa=none
256 GALLIUM_ST: >
257 -D dri3=false
258 -D gallium-vdpau=false
259 -D gallium-xvmc=false
260 -D gallium-omx=disabled
261 -D gallium-va=false
262 -D gallium-xa=false
263 -D gallium-nine=false
Michel Dänzere5364462019-09-13 11:59:43 +0200264
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200265.meson-arm:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100266 extends:
267 - .meson-cross
268 - .use-arm_build
Michel Dänzere5364462019-09-13 11:59:43 +0200269 variables:
Michel Dänzere5364462019-09-13 11:59:43 +0200270 VULKAN_DRIVERS: freedreno
Michel Dänzer793f6b32019-10-08 19:48:41 +0200271 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
Michel Dänzere5364462019-09-13 11:59:43 +0200272 EXTRA_OPTION: >
Michel Dänzere5364462019-09-13 11:59:43 +0200273 -D I-love-half-baked-turnips=true
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200274 tags:
275 - aarch64
276
277meson-armhf:
278 extends: .meson-arm
279 variables:
280 CROSS: armhf
Michel Dänzer793f6b32019-10-08 19:48:41 +0200281 LLVM_VERSION: "7"
Michel Dänzere5364462019-09-13 11:59:43 +0200282
283meson-arm64:
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200284 extends:
285 - .meson-arm
286 - .ci-deqp-artifacts
Michel Dänzere5364462019-09-13 11:59:43 +0200287 variables:
Michel Dänzere5364462019-09-13 11:59:43 +0200288 BUILDTYPE: "debugoptimized"
Samuel Pitoiset47ba2272019-11-12 14:25:16 +0100289 VULKAN_DRIVERS: "freedreno,amd"
Michel Dänzer59fcb012019-10-23 18:42:53 +0200290 script:
291 - .gitlab-ci/meson-build.sh
292 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzere5364462019-09-13 11:59:43 +0200293
Michel Dänzera2cce702019-03-20 15:58:31 +0100294# NOTE: Building SWR is 2x (yes two) times slower than all the other
295# gallium drivers combined.
296# Start this early so that it doesn't limit the total run time.
Eric Engestrom41407c62019-03-08 16:33:07 +0000297#
Eric Anholt030aa6e2019-08-07 14:05:51 -0700298# We also stick the glvnd build here, since we want non-glvnd in
299# meson-main for actual driver CI.
Eric Engestrom1291c682019-04-16 18:06:53 +0200300meson-swr-glvnd:
Michel Dänzera2cce702019-03-20 15:58:31 +0100301 extends: .meson-build
302 variables:
303 UNWIND: "true"
304 DRI_LOADERS: >
Eric Engestrom1291c682019-04-16 18:06:53 +0200305 -D glvnd=true
306 -D egl=true
Michel Dänzera2cce702019-03-20 15:58:31 +0100307 GALLIUM_ST: >
Eric Engestrom41407c62019-03-08 16:33:07 +0000308 -D dri3=true
Michel Dänzera2cce702019-03-20 15:58:31 +0100309 -D gallium-vdpau=false
310 -D gallium-xvmc=false
311 -D gallium-omx=disabled
312 -D gallium-va=false
313 -D gallium-xa=false
Eric Anholt030aa6e2019-08-07 14:05:51 -0700314 -D gallium-nine=false
Michel Dänzera2cce702019-03-20 15:58:31 +0100315 -D gallium-opencl=disabled
Eric Anholt030aa6e2019-08-07 14:05:51 -0700316 GALLIUM_DRIVERS: "swr,iris"
Michel Dänzera2cce702019-03-20 15:58:31 +0100317 LLVM_VERSION: "6.0"
318
319meson-clang:
320 extends: .meson-build
321 variables:
322 UNWIND: "true"
323 DRI_DRIVERS: "auto"
324 GALLIUM_DRIVERS: "auto"
Eric Engestrom47f419d2019-05-01 12:09:26 +0100325 VULKAN_DRIVERS: intel,amd,freedreno
Michel Dänzer3fca2b72019-04-05 10:36:29 +0200326 CC: "ccache clang-8"
327 CXX: "ccache clang++-8"
Michel Dänzera2cce702019-03-20 15:58:31 +0100328
Michel Dänzeraaf1b092019-10-30 09:38:20 +0100329.meson-windows:
Dylan Baker19851c92019-10-23 14:36:19 -0700330 extends:
331 - .build-windows
332 before_script:
333 - $ENV:ARCH = "x86"
334 - $ENV:VERSION = "2019\Community"
335 script:
336 - cmd /C .gitlab-ci\meson-build.bat
337
Michel Dänzer82b30092019-05-03 18:19:25 +0200338scons-swr:
339 extends: .scons-build
Eric Engestrom46d23c02019-01-20 11:26:53 +0000340 variables:
Michel Dänzer82b30092019-05-03 18:19:25 +0200341 SCONS_TARGET: "swr=1"
342 SCONS_CHECK_COMMAND: "true"
343 LLVM_VERSION: "6.0"
344
345scons-win64:
346 extends: .scons-build
347 variables:
348 SCONS_TARGET: platform=windows machine=x86_64
349 SCONS_CHECK_COMMAND: "true"
Eric Engestrom89a74672019-01-21 09:42:37 +0000350
Michel Dänzer68977152019-05-03 10:58:48 +0200351meson-clover:
Eric Engestromb5a70af2019-01-28 18:05:22 +0000352 extends: .meson-build
353 variables:
354 UNWIND: "true"
355 DRI_LOADERS: >
356 -D glx=disabled
357 -D egl=false
358 -D gbm=false
359 GALLIUM_ST: >
360 -D dri3=false
361 -D gallium-vdpau=false
362 -D gallium-xvmc=false
363 -D gallium-omx=disabled
364 -D gallium-va=false
365 -D gallium-xa=false
366 -D gallium-nine=false
367 -D gallium-opencl=icd
Michel Dänzer68977152019-05-03 10:58:48 +0200368 script:
369 - export GALLIUM_DRIVERS="r600,radeonsi"
370 - .gitlab-ci/meson-build.sh
Samuel Pitoiset7d1c0912019-08-21 11:45:25 +0200371 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
Michel Dänzer68977152019-05-03 10:58:48 +0200372 - export GALLIUM_DRIVERS="i915,r600"
Michel Dänzer8a199922019-09-06 17:04:47 +0200373 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
374 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
375
376meson-clover-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200377 extends:
378 - meson-clover
Michel Dänzer3a48f452019-11-13 17:43:41 +0100379 - .use-x86_build_old
Michel Dänzer8a199922019-09-06 17:04:47 +0200380 variables:
381 UNWIND: "false"
382 DRI_LOADERS: >
383 -D glx=disabled
384 -D egl=false
385 -D gbm=false
386 -D platforms=drm,surfaceless
387 GALLIUM_DRIVERS: "i915,r600"
388 script:
Michel Dänzer68977152019-05-03 10:58:48 +0200389 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
390 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
391 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
Eric Engestrom8dab7072019-01-28 18:09:24 +0000392
Michel Dänzer82b30092019-05-03 18:19:25 +0200393meson-vulkan:
394 extends: .meson-build
395 variables:
396 UNWIND: "false"
397 DRI_LOADERS: >
398 -D glx=disabled
399 -D gbm=false
400 -D egl=false
401 -D platforms=x11,wayland,drm
402 -D osmesa=none
403 GALLIUM_ST: >
404 -D dri3=true
405 -D gallium-vdpau=false
406 -D gallium-xvmc=false
407 -D gallium-omx=disabled
408 -D gallium-va=false
409 -D gallium-xa=false
410 -D gallium-nine=false
411 -D gallium-opencl=disabled
Michel Dänzer75cc8c02019-09-25 12:56:58 +0200412 -D b_sanitize=undefined
413 -D c_args=-fno-sanitize-recover=all
414 -D cpp_args=-fno-sanitize-recover=all
415 UBSAN_OPTIONS: "print_stacktrace=1"
Michel Dänzer82b30092019-05-03 18:19:25 +0200416 VULKAN_DRIVERS: intel,amd,freedreno
Samuel Pitoiset7d1c0912019-08-21 11:45:25 +0200417 LLVM_VERSION: "8"
Eric Engestrom5f8d29a2019-05-08 18:17:23 +0200418 EXTRA_OPTION: >
419 -D vulkan-overlay-layer=true
Michel Dänzer82b30092019-05-03 18:19:25 +0200420
Eric Anholt030aa6e2019-08-07 14:05:51 -0700421# While the main point of this build is testing the i386 cross build,
422# we also use this one to test some other options that are exclusive
423# with meson-main's choices (classic swrast and osmesa)
Eric Anholt11aa32a2019-07-11 12:58:28 -0700424meson-i386:
425 extends: .meson-cross
426 variables:
Eric Engestrom1c82fa02019-08-09 23:46:50 +0100427 CROSS: i386
Eric Anholt11aa32a2019-07-11 12:58:28 -0700428 VULKAN_DRIVERS: intel
Eric Anholt030aa6e2019-08-07 14:05:51 -0700429 DRI_DRIVERS: "swrast"
430 GALLIUM_DRIVERS: "iris"
Eric Anholt11aa32a2019-07-11 12:58:28 -0700431 EXTRA_OPTION: >
Eric Anholt11aa32a2019-07-11 12:58:28 -0700432 -D vulkan-overlay-layer=true
Eric Anholt030aa6e2019-08-07 14:05:51 -0700433 -D llvm=false
434 -D osmesa=classic
Eric Anholt11aa32a2019-07-11 12:58:28 -0700435
Dylan Baker449f8312019-10-11 09:04:14 -0700436meson-mingw32-x86_64:
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700437 extends: .meson-build
438 variables:
439 UNWIND: "false"
440 DRI_DRIVERS: ""
441 GALLIUM_DRIVERS: "swrast"
442 EXTRA_OPTION: >
443 -Dllvm=false
444 -Dosmesa=gallium
445 --cross-file=.gitlab-ci/x86_64-w64-mingw32
446
Michel Dänzer88e57962019-09-12 11:45:13 +0200447scons:
Eric Engestromd4c6d4d2019-01-28 16:30:36 +0000448 extends: .scons-build
449 variables:
450 SCONS_TARGET: "llvm=1"
Dylan Baker54053bc2019-10-21 09:29:23 -0700451 SCONS_CHECK_COMMAND: "scons llvm=1 force_scons=1 check"
Michel Dänzerbaa50242019-09-12 11:38:06 +0200452 script:
Dylan Baker54053bc2019-10-21 09:29:23 -0700453 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
Michel Dänzerbaa50242019-09-12 11:38:06 +0200454 - LLVM_VERSION=6.0 .gitlab-ci/scons-build.sh
455 - LLVM_VERSION=7 .gitlab-ci/scons-build.sh
456 - LLVM_VERSION=8 .gitlab-ci/scons-build.sh
Michel Dänzer8a199922019-09-06 17:04:47 +0200457
458scons-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200459 extends:
460 - scons
Michel Dänzer3a48f452019-11-13 17:43:41 +0100461 - .use-x86_build_old
Michel Dänzerbaa50242019-09-12 11:38:06 +0200462 script:
463 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
464 - LLVM_VERSION=4.0 .gitlab-ci/scons-build.sh
465 - LLVM_VERSION=5.0 .gitlab-ci/scons-build.sh
Eric Anholt46daaca2019-06-28 16:35:32 -0700466
Eric Engestrom3bcd54f2019-10-14 23:53:15 +0100467.test:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200468 extends:
469 - .ci-run-policy
Eric Anholt46daaca2019-06-28 16:35:32 -0700470 stage: test
Eric Anholt46daaca2019-06-28 16:35:32 -0700471 variables:
472 GIT_STRATEGY: none # testing doesn't build anything from source
Michel Dänzerc6c76522019-11-11 18:13:28 +0100473 TAG: *x86_test
474 image: "$CI_REGISTRY_IMAGE/debian/x86_test:$TAG"
Michel Dänzer576f7b62019-10-22 17:16:52 +0200475 before_script:
Eric Anholt46daaca2019-06-28 16:35:32 -0700476 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
477 - rm -rf install
478 - tar -xf artifacts/install.tar
Samuel Pitoiseteab328f2019-11-14 14:00:46 +0100479 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
Eric Anholt46daaca2019-06-28 16:35:32 -0700480 artifacts:
481 when: on_failure
482 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
483 paths:
484 - results/
Michel Dänzercccb68b2019-09-13 11:13:12 +0200485 dependencies:
486 - meson-main
Michel Dänzerc5aa2712019-10-22 11:19:17 +0200487 needs:
488 - meson-main
Michel Dänzer3a48f452019-11-13 17:43:41 +0100489 - x86_test
Eric Anholt46daaca2019-06-28 16:35:32 -0700490
Michel Dänzer576f7b62019-10-22 17:16:52 +0200491.piglit-test:
492 extends: .test
493 artifacts:
494 reports:
495 junit: results/results.xml
496 variables:
497 LIBGL_ALWAYS_SOFTWARE: 1
498 PIGLIT_NO_WINDOW: 1
499 script:
500 - artifacts/piglit/run.sh
501
502piglit-quick_gl:
503 extends: .piglit-test
504 variables:
505 LP_NUM_THREADS: 0
506 PIGLIT_OPTIONS: >
507 -x arb_gpu_shader5
508 -x glx-multithread-clearbuffer
509 -x glx-multithread-shader-compile
510 -x max-texture-size
511 -x maxsize
512 PIGLIT_PROFILES: quick_gl
513
514piglit-glslparser+quick_shader:
515 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
525 PIGLIT_PROFILES: "glslparser quick_shader"
526 PIGLIT_RESULTS: "glslparser+quick_shader"
527
528.deqp-test:
529 extends: .test
530 variables:
531 DEQP_SKIPS: deqp-default-skips.txt
532 script:
533 - ./artifacts/deqp-runner.sh
534
Eric Anholt46daaca2019-06-28 16:35:32 -0700535test-llvmpipe-gles2:
Eric Anholt46daaca2019-06-28 16:35:32 -0700536 variables:
537 DEQP_VER: gles2
Eric Anholtf08c8102019-11-04 10:54:41 -0800538 DEQP_PARALLEL: 4
539 # Don't use threads inside llvmpipe, we've already got all 4 cores
540 # busy with DEQP_PARALLEL.
541 LP_NUM_THREADS: 0
Eric Anholt46daaca2019-06-28 16:35:32 -0700542 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
543 LIBGL_ALWAYS_SOFTWARE: "true"
Eric Anholt46daaca2019-06-28 16:35:32 -0700544 extends: .deqp-test
Eric Anholt553cd822019-08-09 10:32:40 -0700545
546test-softpipe-gles2:
Michel Dänzer128581d2019-09-11 18:55:43 +0200547 extends: test-llvmpipe-gles2
Eric Anholt553cd822019-08-09 10:32:40 -0700548 variables:
Eric Anholt553cd822019-08-09 10:32:40 -0700549 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
Eric Anholtf08c8102019-11-04 10:54:41 -0800550 DEQP_SKIPS: deqp-softpipe-skips.txt
Eric Anholt553cd822019-08-09 10:32:40 -0700551 GALLIUM_DRIVER: "softpipe"
Eric Anholt553cd822019-08-09 10:32:40 -0700552
Eric Anholt52843ec2019-11-05 10:31:29 -0800553test-softpipe-gles3:
554 parallel: 2
Eric Anholt553cd822019-08-09 10:32:40 -0700555 variables:
556 DEQP_VER: gles3
Eric Anholt52843ec2019-11-05 10:31:29 -0800557 extends: test-softpipe-gles2
558
559test-softpipe-gles31:
560 parallel: 4
561 variables:
562 DEQP_VER: gles31
563 extends: test-softpipe-gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700564
Michel Dänzer128581d2019-09-11 18:55:43 +0200565arm64_a630_gles2:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100566 extends:
567 - .deqp-test
568 - .use-arm_test
Eric Anholt6f0dc082019-06-28 16:35:32 -0700569 variables:
570 DEQP_VER: gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700571 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
572 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
573 NIR_VALIDATE: 0
574 tags:
575 - mesa-cheza
576 dependencies:
577 - meson-arm64
Eric Anholt6f0dc082019-06-28 16:35:32 -0700578
Michel Dänzer128581d2019-09-11 18:55:43 +0200579arm64_a630_gles31:
580 extends: arm64_a630_gles2
581 parallel: 4
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:
586 parallel: 6
Michel Dänzer128581d2019-09-11 18:55:43 +0200587 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700588 variables:
589 DEQP_VER: gles3
590
Michel Dänzer128581d2019-09-11 18:55:43 +0200591arm64_a306_gles2:
Eric Anholt6f0dc082019-06-28 16:35:32 -0700592 parallel: 4
Michel Dänzer128581d2019-09-11 18:55:43 +0200593 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700594 variables:
Michel Dänzer128581d2019-09-11 18:55:43 +0200595 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
596 DEQP_SKIPS: deqp-default-skips.txt
Michel Dänzer128581d2019-09-11 18:55:43 +0200597 tags:
598 - db410c