blob: 4f742d430b9631d9d6b7ed0bbd74b7ddc7a8aba6 [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
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 +0100310# NOTE: Building SWR is 2x (yes two) times slower than all the other
311# gallium drivers combined.
312# Start this early so that it doesn't limit the total run time.
Eric Engestrom41407c62019-03-08 16:33:07 +0000313#
Eric Anholt030aa6e2019-08-07 14:05:51 -0700314# We also stick the glvnd build here, since we want non-glvnd in
315# meson-main for actual driver CI.
Eric Engestrom1291c682019-04-16 18:06:53 +0200316meson-swr-glvnd:
Michel Dänzera2cce702019-03-20 15:58:31 +0100317 extends: .meson-build
318 variables:
319 UNWIND: "true"
320 DRI_LOADERS: >
Eric Engestrom1291c682019-04-16 18:06:53 +0200321 -D glvnd=true
322 -D egl=true
Michel Dänzera2cce702019-03-20 15:58:31 +0100323 GALLIUM_ST: >
Eric Engestrom41407c62019-03-08 16:33:07 +0000324 -D dri3=true
Michel Dänzera2cce702019-03-20 15:58:31 +0100325 -D gallium-vdpau=false
326 -D gallium-xvmc=false
327 -D gallium-omx=disabled
328 -D gallium-va=false
329 -D gallium-xa=false
Eric Anholt030aa6e2019-08-07 14:05:51 -0700330 -D gallium-nine=false
Michel Dänzera2cce702019-03-20 15:58:31 +0100331 -D gallium-opencl=disabled
Samuel Pitoisete6d26d72019-11-19 14:36:02 +0100332 GALLIUM_DRIVERS: "iris"
Michel Dänzera2cce702019-03-20 15:58:31 +0100333 LLVM_VERSION: "6.0"
334
335meson-clang:
336 extends: .meson-build
337 variables:
338 UNWIND: "true"
339 DRI_DRIVERS: "auto"
340 GALLIUM_DRIVERS: "auto"
Eric Engestrom47f419d2019-05-01 12:09:26 +0100341 VULKAN_DRIVERS: intel,amd,freedreno
Michel Dänzer3fca2b72019-04-05 10:36:29 +0200342 CC: "ccache clang-8"
343 CXX: "ccache clang++-8"
Michel Dänzera2cce702019-03-20 15:58:31 +0100344
Michel Dänzeraaf1b092019-10-30 09:38:20 +0100345.meson-windows:
Dylan Baker19851c92019-10-23 14:36:19 -0700346 extends:
347 - .build-windows
348 before_script:
349 - $ENV:ARCH = "x86"
350 - $ENV:VERSION = "2019\Community"
351 script:
352 - cmd /C .gitlab-ci\meson-build.bat
353
Michel Dänzer82b30092019-05-03 18:19:25 +0200354scons-swr:
355 extends: .scons-build
Eric Engestrom46d23c02019-01-20 11:26:53 +0000356 variables:
Michel Dänzer82b30092019-05-03 18:19:25 +0200357 SCONS_TARGET: "swr=1"
358 SCONS_CHECK_COMMAND: "true"
359 LLVM_VERSION: "6.0"
360
361scons-win64:
362 extends: .scons-build
363 variables:
364 SCONS_TARGET: platform=windows machine=x86_64
365 SCONS_CHECK_COMMAND: "true"
Eric Engestrom89a74672019-01-21 09:42:37 +0000366
Michel Dänzer68977152019-05-03 10:58:48 +0200367meson-clover:
Eric Engestromb5a70af2019-01-28 18:05:22 +0000368 extends: .meson-build
369 variables:
370 UNWIND: "true"
371 DRI_LOADERS: >
372 -D glx=disabled
373 -D egl=false
374 -D gbm=false
375 GALLIUM_ST: >
376 -D dri3=false
377 -D gallium-vdpau=false
378 -D gallium-xvmc=false
379 -D gallium-omx=disabled
380 -D gallium-va=false
381 -D gallium-xa=false
382 -D gallium-nine=false
383 -D gallium-opencl=icd
Michel Dänzer68977152019-05-03 10:58:48 +0200384 script:
385 - export GALLIUM_DRIVERS="r600,radeonsi"
386 - .gitlab-ci/meson-build.sh
Samuel Pitoiset7d1c0912019-08-21 11:45:25 +0200387 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
Michel Dänzer68977152019-05-03 10:58:48 +0200388 - export GALLIUM_DRIVERS="i915,r600"
Michel Dänzer8a199922019-09-06 17:04:47 +0200389 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
390 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
391
392meson-clover-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200393 extends:
394 - meson-clover
Michel Dänzer3a48f452019-11-13 17:43:41 +0100395 - .use-x86_build_old
Michel Dänzer8a199922019-09-06 17:04:47 +0200396 variables:
397 UNWIND: "false"
398 DRI_LOADERS: >
399 -D glx=disabled
400 -D egl=false
401 -D gbm=false
402 -D platforms=drm,surfaceless
403 GALLIUM_DRIVERS: "i915,r600"
404 script:
Michel Dänzer68977152019-05-03 10:58:48 +0200405 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
406 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
407 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
Eric Engestrom8dab7072019-01-28 18:09:24 +0000408
Michel Dänzer82b30092019-05-03 18:19:25 +0200409meson-vulkan:
410 extends: .meson-build
411 variables:
412 UNWIND: "false"
413 DRI_LOADERS: >
414 -D glx=disabled
415 -D gbm=false
416 -D egl=false
417 -D platforms=x11,wayland,drm
418 -D osmesa=none
419 GALLIUM_ST: >
420 -D dri3=true
421 -D gallium-vdpau=false
422 -D gallium-xvmc=false
423 -D gallium-omx=disabled
424 -D gallium-va=false
425 -D gallium-xa=false
426 -D gallium-nine=false
427 -D gallium-opencl=disabled
Michel Dänzer75cc8c02019-09-25 12:56:58 +0200428 -D b_sanitize=undefined
429 -D c_args=-fno-sanitize-recover=all
430 -D cpp_args=-fno-sanitize-recover=all
431 UBSAN_OPTIONS: "print_stacktrace=1"
Michel Dänzer82b30092019-05-03 18:19:25 +0200432 VULKAN_DRIVERS: intel,amd,freedreno
Samuel Pitoiset7d1c0912019-08-21 11:45:25 +0200433 LLVM_VERSION: "8"
Eric Engestrom5f8d29a2019-05-08 18:17:23 +0200434 EXTRA_OPTION: >
435 -D vulkan-overlay-layer=true
Michel Dänzer82b30092019-05-03 18:19:25 +0200436
Eric Anholt030aa6e2019-08-07 14:05:51 -0700437# While the main point of this build is testing the i386 cross build,
438# we also use this one to test some other options that are exclusive
439# with meson-main's choices (classic swrast and osmesa)
Eric Anholt11aa32a2019-07-11 12:58:28 -0700440meson-i386:
441 extends: .meson-cross
442 variables:
Eric Engestrom1c82fa02019-08-09 23:46:50 +0100443 CROSS: i386
Eric Anholt11aa32a2019-07-11 12:58:28 -0700444 VULKAN_DRIVERS: intel
Eric Anholt030aa6e2019-08-07 14:05:51 -0700445 DRI_DRIVERS: "swrast"
446 GALLIUM_DRIVERS: "iris"
Eric Anholt11aa32a2019-07-11 12:58:28 -0700447 EXTRA_OPTION: >
Eric Anholt11aa32a2019-07-11 12:58:28 -0700448 -D vulkan-overlay-layer=true
Eric Anholt030aa6e2019-08-07 14:05:51 -0700449 -D llvm=false
450 -D osmesa=classic
Eric Anholt11aa32a2019-07-11 12:58:28 -0700451
Dylan Baker449f8312019-10-11 09:04:14 -0700452meson-mingw32-x86_64:
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700453 extends: .meson-build
454 variables:
455 UNWIND: "false"
456 DRI_DRIVERS: ""
457 GALLIUM_DRIVERS: "swrast"
458 EXTRA_OPTION: >
459 -Dllvm=false
460 -Dosmesa=gallium
461 --cross-file=.gitlab-ci/x86_64-w64-mingw32
462
Michel Dänzer88e57962019-09-12 11:45:13 +0200463scons:
Eric Engestromd4c6d4d2019-01-28 16:30:36 +0000464 extends: .scons-build
465 variables:
466 SCONS_TARGET: "llvm=1"
Dylan Baker54053bc2019-10-21 09:29:23 -0700467 SCONS_CHECK_COMMAND: "scons llvm=1 force_scons=1 check"
Michel Dänzerbaa50242019-09-12 11:38:06 +0200468 script:
Dylan Baker54053bc2019-10-21 09:29:23 -0700469 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
Michel Dänzerbaa50242019-09-12 11:38:06 +0200470 - LLVM_VERSION=6.0 .gitlab-ci/scons-build.sh
471 - LLVM_VERSION=7 .gitlab-ci/scons-build.sh
472 - LLVM_VERSION=8 .gitlab-ci/scons-build.sh
Michel Dänzer8a199922019-09-06 17:04:47 +0200473
474scons-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200475 extends:
476 - scons
Michel Dänzer3a48f452019-11-13 17:43:41 +0100477 - .use-x86_build_old
Michel Dänzerbaa50242019-09-12 11:38:06 +0200478 script:
479 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
480 - LLVM_VERSION=4.0 .gitlab-ci/scons-build.sh
481 - LLVM_VERSION=5.0 .gitlab-ci/scons-build.sh
Eric Anholt46daaca2019-06-28 16:35:32 -0700482
Eric Engestrom3bcd54f2019-10-14 23:53:15 +0100483.test:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200484 extends:
485 - .ci-run-policy
Eric Anholt46daaca2019-06-28 16:35:32 -0700486 stage: test
Eric Anholt46daaca2019-06-28 16:35:32 -0700487 variables:
488 GIT_STRATEGY: none # testing doesn't build anything from source
Michel Dänzerc6c76522019-11-11 18:13:28 +0100489 TAG: *x86_test
490 image: "$CI_REGISTRY_IMAGE/debian/x86_test:$TAG"
Michel Dänzer576f7b62019-10-22 17:16:52 +0200491 before_script:
Eric Anholt46daaca2019-06-28 16:35:32 -0700492 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
493 - rm -rf install
494 - tar -xf artifacts/install.tar
Samuel Pitoiseteab328f2019-11-14 14:00:46 +0100495 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
Eric Anholt46daaca2019-06-28 16:35:32 -0700496 artifacts:
497 when: on_failure
498 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
499 paths:
500 - results/
Michel Dänzercccb68b2019-09-13 11:13:12 +0200501 dependencies:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100502 - meson-testing
Michel Dänzerc5aa2712019-10-22 11:19:17 +0200503 needs:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100504 - meson-testing
Michel Dänzer3a48f452019-11-13 17:43:41 +0100505 - x86_test
Eric Anholt46daaca2019-06-28 16:35:32 -0700506
Michel Dänzer576f7b62019-10-22 17:16:52 +0200507.piglit-test:
508 extends: .test
509 artifacts:
510 reports:
511 junit: results/results.xml
512 variables:
513 LIBGL_ALWAYS_SOFTWARE: 1
514 PIGLIT_NO_WINDOW: 1
515 script:
516 - artifacts/piglit/run.sh
517
518piglit-quick_gl:
519 extends: .piglit-test
520 variables:
521 LP_NUM_THREADS: 0
522 PIGLIT_OPTIONS: >
523 -x arb_gpu_shader5
524 -x glx-multithread-clearbuffer
525 -x glx-multithread-shader-compile
526 -x max-texture-size
527 -x maxsize
528 PIGLIT_PROFILES: quick_gl
529
530piglit-glslparser+quick_shader:
531 extends: .piglit-test
532 variables:
533 LP_NUM_THREADS: 1
534 PIGLIT_OPTIONS: >
535 -x spec@arb_arrays_of_arrays@execution@ubo
536 -x spec@arb_gpu_shader_int64@execution$$
537 -x spec@arb_separate_shader_objects@execution
538 -x spec@arb_separate_shader_objects@linker
539 -x spec@arb_shader_storage_buffer_object@execution
540 -x spec@glsl-1.50@execution@built-in-functions
541 PIGLIT_PROFILES: "glslparser quick_shader"
542 PIGLIT_RESULTS: "glslparser+quick_shader"
543
544.deqp-test:
545 extends: .test
546 variables:
547 DEQP_SKIPS: deqp-default-skips.txt
548 script:
549 - ./artifacts/deqp-runner.sh
550
Eric Anholt46daaca2019-06-28 16:35:32 -0700551test-llvmpipe-gles2:
Eric Anholt46daaca2019-06-28 16:35:32 -0700552 variables:
553 DEQP_VER: gles2
Eric Anholtf08c8102019-11-04 10:54:41 -0800554 DEQP_PARALLEL: 4
555 # Don't use threads inside llvmpipe, we've already got all 4 cores
556 # busy with DEQP_PARALLEL.
557 LP_NUM_THREADS: 0
Eric Anholt46daaca2019-06-28 16:35:32 -0700558 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
559 LIBGL_ALWAYS_SOFTWARE: "true"
Eric Anholt46daaca2019-06-28 16:35:32 -0700560 extends: .deqp-test
Eric Anholt553cd822019-08-09 10:32:40 -0700561
562test-softpipe-gles2:
Michel Dänzer128581d2019-09-11 18:55:43 +0200563 extends: test-llvmpipe-gles2
Eric Anholt553cd822019-08-09 10:32:40 -0700564 variables:
Eric Anholt553cd822019-08-09 10:32:40 -0700565 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
Eric Anholtf08c8102019-11-04 10:54:41 -0800566 DEQP_SKIPS: deqp-softpipe-skips.txt
Eric Anholt553cd822019-08-09 10:32:40 -0700567 GALLIUM_DRIVER: "softpipe"
Eric Anholt553cd822019-08-09 10:32:40 -0700568
Eric Anholt52843ec2019-11-05 10:31:29 -0800569test-softpipe-gles3:
570 parallel: 2
Eric Anholt553cd822019-08-09 10:32:40 -0700571 variables:
572 DEQP_VER: gles3
Eric Anholt52843ec2019-11-05 10:31:29 -0800573 extends: test-softpipe-gles2
574
575test-softpipe-gles31:
576 parallel: 4
577 variables:
578 DEQP_VER: gles31
579 extends: test-softpipe-gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700580
Michel Dänzer128581d2019-09-11 18:55:43 +0200581arm64_a630_gles2:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100582 extends:
583 - .deqp-test
584 - .use-arm_test
Eric Anholt6f0dc082019-06-28 16:35:32 -0700585 variables:
586 DEQP_VER: gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700587 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
588 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
589 NIR_VALIDATE: 0
590 tags:
591 - mesa-cheza
592 dependencies:
593 - meson-arm64
Eric Anholt6f0dc082019-06-28 16:35:32 -0700594
Michel Dänzer128581d2019-09-11 18:55:43 +0200595arm64_a630_gles31:
596 extends: arm64_a630_gles2
597 parallel: 4
Eric Anholt6f0dc082019-06-28 16:35:32 -0700598 variables:
Michel Dänzer128581d2019-09-11 18:55:43 +0200599 DEQP_VER: gles31
Eric Anholt6f0dc082019-06-28 16:35:32 -0700600
601arm64_a630_gles3:
602 parallel: 6
Michel Dänzer128581d2019-09-11 18:55:43 +0200603 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700604 variables:
605 DEQP_VER: gles3
606
Michel Dänzer128581d2019-09-11 18:55:43 +0200607arm64_a306_gles2:
Eric Anholt6f0dc082019-06-28 16:35:32 -0700608 parallel: 4
Michel Dänzer128581d2019-09-11 18:55:43 +0200609 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700610 variables:
Michel Dänzer128581d2019-09-11 18:55:43 +0200611 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
612 DEQP_SKIPS: deqp-default-skips.txt
Michel Dänzer128581d2019-09-11 18:55:43 +0200613 tags:
614 - db410c