blob: 9c0612a90b6604ec9e92ac96309bafdfdfd3134a [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 egl=true
Michel Dänzera2cce702019-03-20 15:58:31 +0100322 GALLIUM_ST: >
Eric Engestrom41407c62019-03-08 16:33:07 +0000323 -D dri3=true
Michel Dänzera2cce702019-03-20 15:58:31 +0100324 -D gallium-vdpau=false
325 -D gallium-xvmc=false
326 -D gallium-omx=disabled
327 -D gallium-va=false
328 -D gallium-xa=false
Eric Anholt030aa6e2019-08-07 14:05:51 -0700329 -D gallium-nine=false
Michel Dänzera2cce702019-03-20 15:58:31 +0100330 -D gallium-opencl=disabled
Samuel Pitoisete6d26d72019-11-19 14:36:02 +0100331 GALLIUM_DRIVERS: "iris"
Michel Dänzera2cce702019-03-20 15:58:31 +0100332 LLVM_VERSION: "6.0"
333
334meson-clang:
335 extends: .meson-build
336 variables:
337 UNWIND: "true"
Samuel Pitoiset73621762019-11-19 14:37:32 +0100338 DRI_LOADERS: >
339 -D glvnd=true
Michel Dänzera2cce702019-03-20 15:58:31 +0100340 DRI_DRIVERS: "auto"
341 GALLIUM_DRIVERS: "auto"
Eric Engestrom47f419d2019-05-01 12:09:26 +0100342 VULKAN_DRIVERS: intel,amd,freedreno
Michel Dänzer3fca2b72019-04-05 10:36:29 +0200343 CC: "ccache clang-8"
344 CXX: "ccache clang++-8"
Michel Dänzera2cce702019-03-20 15:58:31 +0100345
Michel Dänzeraaf1b092019-10-30 09:38:20 +0100346.meson-windows:
Dylan Baker19851c92019-10-23 14:36:19 -0700347 extends:
348 - .build-windows
349 before_script:
350 - $ENV:ARCH = "x86"
351 - $ENV:VERSION = "2019\Community"
352 script:
353 - cmd /C .gitlab-ci\meson-build.bat
354
Michel Dänzer82b30092019-05-03 18:19:25 +0200355scons-swr:
356 extends: .scons-build
Eric Engestrom46d23c02019-01-20 11:26:53 +0000357 variables:
Michel Dänzer82b30092019-05-03 18:19:25 +0200358 SCONS_TARGET: "swr=1"
359 SCONS_CHECK_COMMAND: "true"
360 LLVM_VERSION: "6.0"
361
362scons-win64:
363 extends: .scons-build
364 variables:
365 SCONS_TARGET: platform=windows machine=x86_64
366 SCONS_CHECK_COMMAND: "true"
Eric Engestrom89a74672019-01-21 09:42:37 +0000367
Michel Dänzer68977152019-05-03 10:58:48 +0200368meson-clover:
Eric Engestromb5a70af2019-01-28 18:05:22 +0000369 extends: .meson-build
370 variables:
371 UNWIND: "true"
372 DRI_LOADERS: >
373 -D glx=disabled
374 -D egl=false
375 -D gbm=false
376 GALLIUM_ST: >
377 -D dri3=false
378 -D gallium-vdpau=false
379 -D gallium-xvmc=false
380 -D gallium-omx=disabled
381 -D gallium-va=false
382 -D gallium-xa=false
383 -D gallium-nine=false
384 -D gallium-opencl=icd
Michel Dänzer68977152019-05-03 10:58:48 +0200385 script:
386 - export GALLIUM_DRIVERS="r600,radeonsi"
387 - .gitlab-ci/meson-build.sh
Samuel Pitoiset7d1c0912019-08-21 11:45:25 +0200388 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
Michel Dänzer68977152019-05-03 10:58:48 +0200389 - export GALLIUM_DRIVERS="i915,r600"
Michel Dänzer8a199922019-09-06 17:04:47 +0200390 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
391 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
392
393meson-clover-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200394 extends:
395 - meson-clover
Michel Dänzer3a48f452019-11-13 17:43:41 +0100396 - .use-x86_build_old
Michel Dänzer8a199922019-09-06 17:04:47 +0200397 variables:
398 UNWIND: "false"
399 DRI_LOADERS: >
400 -D glx=disabled
401 -D egl=false
402 -D gbm=false
403 -D platforms=drm,surfaceless
404 GALLIUM_DRIVERS: "i915,r600"
405 script:
Michel Dänzer68977152019-05-03 10:58:48 +0200406 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
407 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
408 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
Eric Engestrom8dab7072019-01-28 18:09:24 +0000409
Michel Dänzer82b30092019-05-03 18:19:25 +0200410meson-vulkan:
411 extends: .meson-build
412 variables:
413 UNWIND: "false"
414 DRI_LOADERS: >
415 -D glx=disabled
416 -D gbm=false
417 -D egl=false
418 -D platforms=x11,wayland,drm
419 -D osmesa=none
420 GALLIUM_ST: >
421 -D dri3=true
422 -D gallium-vdpau=false
423 -D gallium-xvmc=false
424 -D gallium-omx=disabled
425 -D gallium-va=false
426 -D gallium-xa=false
427 -D gallium-nine=false
428 -D gallium-opencl=disabled
Michel Dänzer75cc8c02019-09-25 12:56:58 +0200429 -D b_sanitize=undefined
430 -D c_args=-fno-sanitize-recover=all
431 -D cpp_args=-fno-sanitize-recover=all
432 UBSAN_OPTIONS: "print_stacktrace=1"
Michel Dänzer82b30092019-05-03 18:19:25 +0200433 VULKAN_DRIVERS: intel,amd,freedreno
Samuel Pitoiset7d1c0912019-08-21 11:45:25 +0200434 LLVM_VERSION: "8"
Eric Engestrom5f8d29a2019-05-08 18:17:23 +0200435 EXTRA_OPTION: >
436 -D vulkan-overlay-layer=true
Michel Dänzer82b30092019-05-03 18:19:25 +0200437
Eric Anholt030aa6e2019-08-07 14:05:51 -0700438# While the main point of this build is testing the i386 cross build,
439# we also use this one to test some other options that are exclusive
440# with meson-main's choices (classic swrast and osmesa)
Eric Anholt11aa32a2019-07-11 12:58:28 -0700441meson-i386:
442 extends: .meson-cross
443 variables:
Eric Engestrom1c82fa02019-08-09 23:46:50 +0100444 CROSS: i386
Eric Anholt11aa32a2019-07-11 12:58:28 -0700445 VULKAN_DRIVERS: intel
Eric Anholt030aa6e2019-08-07 14:05:51 -0700446 DRI_DRIVERS: "swrast"
447 GALLIUM_DRIVERS: "iris"
Eric Anholt11aa32a2019-07-11 12:58:28 -0700448 EXTRA_OPTION: >
Eric Anholt11aa32a2019-07-11 12:58:28 -0700449 -D vulkan-overlay-layer=true
Eric Anholt030aa6e2019-08-07 14:05:51 -0700450 -D llvm=false
451 -D osmesa=classic
Eric Anholt11aa32a2019-07-11 12:58:28 -0700452
Dylan Baker449f8312019-10-11 09:04:14 -0700453meson-mingw32-x86_64:
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700454 extends: .meson-build
455 variables:
456 UNWIND: "false"
457 DRI_DRIVERS: ""
458 GALLIUM_DRIVERS: "swrast"
459 EXTRA_OPTION: >
460 -Dllvm=false
461 -Dosmesa=gallium
462 --cross-file=.gitlab-ci/x86_64-w64-mingw32
463
Michel Dänzer88e57962019-09-12 11:45:13 +0200464scons:
Eric Engestromd4c6d4d2019-01-28 16:30:36 +0000465 extends: .scons-build
466 variables:
467 SCONS_TARGET: "llvm=1"
Dylan Baker54053bc2019-10-21 09:29:23 -0700468 SCONS_CHECK_COMMAND: "scons llvm=1 force_scons=1 check"
Michel Dänzerbaa50242019-09-12 11:38:06 +0200469 script:
Dylan Baker54053bc2019-10-21 09:29:23 -0700470 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
Michel Dänzerbaa50242019-09-12 11:38:06 +0200471 - LLVM_VERSION=6.0 .gitlab-ci/scons-build.sh
472 - LLVM_VERSION=7 .gitlab-ci/scons-build.sh
473 - LLVM_VERSION=8 .gitlab-ci/scons-build.sh
Michel Dänzer8a199922019-09-06 17:04:47 +0200474
475scons-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200476 extends:
477 - scons
Michel Dänzer3a48f452019-11-13 17:43:41 +0100478 - .use-x86_build_old
Michel Dänzerbaa50242019-09-12 11:38:06 +0200479 script:
480 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
481 - LLVM_VERSION=4.0 .gitlab-ci/scons-build.sh
482 - LLVM_VERSION=5.0 .gitlab-ci/scons-build.sh
Eric Anholt46daaca2019-06-28 16:35:32 -0700483
Eric Engestrom3bcd54f2019-10-14 23:53:15 +0100484.test:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200485 extends:
486 - .ci-run-policy
Eric Anholt46daaca2019-06-28 16:35:32 -0700487 stage: test
Eric Anholt46daaca2019-06-28 16:35:32 -0700488 variables:
489 GIT_STRATEGY: none # testing doesn't build anything from source
Michel Dänzerc6c76522019-11-11 18:13:28 +0100490 TAG: *x86_test
491 image: "$CI_REGISTRY_IMAGE/debian/x86_test:$TAG"
Michel Dänzer576f7b62019-10-22 17:16:52 +0200492 before_script:
Eric Anholt46daaca2019-06-28 16:35:32 -0700493 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
494 - rm -rf install
495 - tar -xf artifacts/install.tar
Samuel Pitoiseteab328f2019-11-14 14:00:46 +0100496 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
Eric Anholt46daaca2019-06-28 16:35:32 -0700497 artifacts:
498 when: on_failure
499 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
500 paths:
501 - results/
Michel Dänzercccb68b2019-09-13 11:13:12 +0200502 dependencies:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100503 - meson-testing
Michel Dänzerc5aa2712019-10-22 11:19:17 +0200504 needs:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100505 - meson-testing
Michel Dänzer3a48f452019-11-13 17:43:41 +0100506 - x86_test
Eric Anholt46daaca2019-06-28 16:35:32 -0700507
Michel Dänzer576f7b62019-10-22 17:16:52 +0200508.piglit-test:
509 extends: .test
510 artifacts:
511 reports:
512 junit: results/results.xml
513 variables:
514 LIBGL_ALWAYS_SOFTWARE: 1
515 PIGLIT_NO_WINDOW: 1
516 script:
517 - artifacts/piglit/run.sh
518
519piglit-quick_gl:
520 extends: .piglit-test
521 variables:
522 LP_NUM_THREADS: 0
523 PIGLIT_OPTIONS: >
524 -x arb_gpu_shader5
525 -x glx-multithread-clearbuffer
526 -x glx-multithread-shader-compile
527 -x max-texture-size
528 -x maxsize
529 PIGLIT_PROFILES: quick_gl
530
531piglit-glslparser+quick_shader:
532 extends: .piglit-test
533 variables:
534 LP_NUM_THREADS: 1
535 PIGLIT_OPTIONS: >
536 -x spec@arb_arrays_of_arrays@execution@ubo
537 -x spec@arb_gpu_shader_int64@execution$$
538 -x spec@arb_separate_shader_objects@execution
539 -x spec@arb_separate_shader_objects@linker
540 -x spec@arb_shader_storage_buffer_object@execution
541 -x spec@glsl-1.50@execution@built-in-functions
542 PIGLIT_PROFILES: "glslparser quick_shader"
543 PIGLIT_RESULTS: "glslparser+quick_shader"
544
545.deqp-test:
546 extends: .test
547 variables:
548 DEQP_SKIPS: deqp-default-skips.txt
549 script:
550 - ./artifacts/deqp-runner.sh
551
Eric Anholt46daaca2019-06-28 16:35:32 -0700552test-llvmpipe-gles2:
Eric Anholt46daaca2019-06-28 16:35:32 -0700553 variables:
554 DEQP_VER: gles2
Eric Anholtf08c8102019-11-04 10:54:41 -0800555 DEQP_PARALLEL: 4
556 # Don't use threads inside llvmpipe, we've already got all 4 cores
557 # busy with DEQP_PARALLEL.
558 LP_NUM_THREADS: 0
Eric Anholt46daaca2019-06-28 16:35:32 -0700559 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
560 LIBGL_ALWAYS_SOFTWARE: "true"
Eric Anholt46daaca2019-06-28 16:35:32 -0700561 extends: .deqp-test
Eric Anholt553cd822019-08-09 10:32:40 -0700562
563test-softpipe-gles2:
Michel Dänzer128581d2019-09-11 18:55:43 +0200564 extends: test-llvmpipe-gles2
Eric Anholt553cd822019-08-09 10:32:40 -0700565 variables:
Eric Anholt553cd822019-08-09 10:32:40 -0700566 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
Eric Anholtf08c8102019-11-04 10:54:41 -0800567 DEQP_SKIPS: deqp-softpipe-skips.txt
Eric Anholt553cd822019-08-09 10:32:40 -0700568 GALLIUM_DRIVER: "softpipe"
Eric Anholt553cd822019-08-09 10:32:40 -0700569
Eric Anholt52843ec2019-11-05 10:31:29 -0800570test-softpipe-gles3:
571 parallel: 2
Eric Anholt553cd822019-08-09 10:32:40 -0700572 variables:
573 DEQP_VER: gles3
Eric Anholt52843ec2019-11-05 10:31:29 -0800574 extends: test-softpipe-gles2
575
576test-softpipe-gles31:
577 parallel: 4
578 variables:
579 DEQP_VER: gles31
580 extends: test-softpipe-gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700581
Michel Dänzer128581d2019-09-11 18:55:43 +0200582arm64_a630_gles2:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100583 extends:
584 - .deqp-test
585 - .use-arm_test
Eric Anholt6f0dc082019-06-28 16:35:32 -0700586 variables:
587 DEQP_VER: gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700588 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
589 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
590 NIR_VALIDATE: 0
591 tags:
592 - mesa-cheza
593 dependencies:
594 - meson-arm64
Eric Anholt6f0dc082019-06-28 16:35:32 -0700595
Michel Dänzer128581d2019-09-11 18:55:43 +0200596arm64_a630_gles31:
597 extends: arm64_a630_gles2
598 parallel: 4
Eric Anholt6f0dc082019-06-28 16:35:32 -0700599 variables:
Michel Dänzer128581d2019-09-11 18:55:43 +0200600 DEQP_VER: gles31
Eric Anholt6f0dc082019-06-28 16:35:32 -0700601
602arm64_a630_gles3:
603 parallel: 6
Michel Dänzer128581d2019-09-11 18:55:43 +0200604 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700605 variables:
606 DEQP_VER: gles3
607
Michel Dänzer128581d2019-09-11 18:55:43 +0200608arm64_a306_gles2:
Eric Anholt6f0dc082019-06-28 16:35:32 -0700609 parallel: 4
Michel Dänzer128581d2019-09-11 18:55:43 +0200610 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700611 variables:
Michel Dänzer128581d2019-09-11 18:55:43 +0200612 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
613 DEQP_SKIPS: deqp-default-skips.txt
Michel Dänzer128581d2019-09-11 18:55:43 +0200614 tags:
615 - db410c