blob: 3c9b41d041472973e787b8ee1b4fc136a625eb14 [file] [log] [blame]
Eric Engestrom329f5cd2019-01-20 11:21:45 +00001# This is the tag of the docker image used for the build jobs. If the
Eric Engestroma0f8a072019-09-11 18:51:46 +01002# image doesn't exist yet, the containers stage generates it.
Eric Engestrom329f5cd2019-01-20 11:21:45 +00003#
4# In order to generate a new image, one should generally change the tag.
5# While removing the image from the registry would also work, that's not
6# recommended except for ephemeral images during development: Replacing
7# an image after a significant amount of time might pull in newer
8# versions of gcc/clang or other packages, which might break the build
9# with older commits using the same tag.
10#
11# After merging a change resulting in generating a new image to the
12# main repository, it's recommended to remove the image from the source
13# repository's container registry, so that the image from the main
14# repository's registry will be used there as well.
Eric Engestrom329f5cd2019-01-20 11:21:45 +000015variables:
Benjamin Tissoires7f8a9a12019-04-02 09:24:00 +020016 UPSTREAM_REPO: mesa/mesa
Eric Engestrom9b58ab82019-09-25 20:18:27 +010017 DEBIAN_TAG: "2019-10-30"
Michel Dänzerb4d3ae22019-11-04 09:54:09 +010018 DEBIAN_ARM64_TAG: "arm64v8-2019-11-06"
19 DEBIAN_ARM64_TEST_TAG: "arm64v8-test-2019-11-06"
Michel Dänzer8a199922019-09-06 17:04:47 +020020 STRETCH_TAG: "2019-09-18"
21 DEBIAN_VERSION: buster-slim
22 STRETCH_VERSION: stretch-slim
Michel Dänzerd00b1c42019-04-02 16:56:54 +020023 DEBIAN_IMAGE: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_TAG"
Michel Dänzer8a199922019-09-06 17:04:47 +020024 DEBIAN_ARM64_IMAGE: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_ARM64_TAG"
Michel Dänzerb4d3ae22019-11-04 09:54:09 +010025 DEBIAN_ARM64_TEST_IMAGE: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_ARM64_TEST_TAG"
Michel Dänzer8a199922019-09-06 17:04:47 +020026 STRETCH_IMAGE: "$CI_REGISTRY_IMAGE/debian/$STRETCH_VERSION:$STRETCH_TAG"
Benjamin Tissoires7f8a9a12019-04-02 09:24:00 +020027
28include:
29 - project: 'wayland/ci-templates'
Michel Dänzer2259b452019-09-06 17:01:50 +020030 ref: 1f7f57c64ff4ebbf7292e3b7a13600518b8cb24c
Michel Dänzerd00b1c42019-04-02 16:56:54 +020031 file: '/templates/debian.yml'
Eric Engestrom329f5cd2019-01-20 11:21:45 +000032
Tomeu Vizoso7b01f722019-09-18 16:03:36 +020033include:
Dylan Baker19851c92019-10-23 14:36:19 -070034 - local: '.gitlab-ci/lava-gitlab-ci.yml'
Tomeu Vizoso7b01f722019-09-18 16:03:36 +020035
Eric Engestrom329f5cd2019-01-20 11:21:45 +000036stages:
Eric Engestrom81b98e92019-10-14 23:04:14 +010037 - container
Eric Engestroma0f8a072019-09-11 18:51:46 +010038 - build
Eric Anholt46daaca2019-06-28 16:35:32 -070039 - test
Eric Engestrom329f5cd2019-01-20 11:21:45 +000040
41
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000042# When to automatically run the CI
Michel Dänzere426f402019-09-06 17:35:52 +020043.ci-run-policy:
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000044 only:
Michel Dänzer2a38fc12019-10-25 18:59:56 +020045 refs:
46 - branches@mesa/mesa
47 - merge_requests
48 - /^ci([-/].*)?$/
49 changes:
50 - VERSION
51 - bin/**/*
52 # GitLab CI
53 - .gitlab-ci.yml
54 - .gitlab-ci/**/*
55 # Meson
56 - meson*
57 - build-support/**/*
58 - subprojects/**/*
59 # SCons
60 - SConstruct
61 - scons/**/*
62 - common.py
63 # Source code
64 - include/**/*
65 - src/**/*
Michel Dänzer6140ed32019-03-26 18:39:41 +010066 retry:
67 max: 2
68 when:
69 - runner_system_failure
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000070
Michel Dänzere426f402019-09-06 17:35:52 +020071.ci-deqp-artifacts:
Eric Anholt46daaca2019-06-28 16:35:32 -070072 artifacts:
73 when: always
74 untracked: false
75 paths:
76 # Watch out! Artifacts are relative to the build dir.
77 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
78 - artifacts
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000079
Michel Dänzer8a199922019-09-06 17:04:47 +020080# Build the normal CI native and cross-build docker images.
81
Eric Engestrom81b98e92019-10-14 23:04:14 +010082.container:
83 stage: container
84 extends:
85 - .ci-run-policy
86 variables:
87 # no need to pull the whole repo to build the container image
88 GIT_STRATEGY: none
89
Michel Dänzer163ec5d2019-10-08 19:46:11 +020090debian-10:amd64:
Michel Dänzere426f402019-09-06 17:35:52 +020091 extends:
92 - .debian@container-ifnot-exists
Eric Engestrom81b98e92019-10-14 23:04:14 +010093 - .container
Eric Engestrom329f5cd2019-01-20 11:21:45 +000094 variables:
Michel Dänzerd00b1c42019-04-02 16:56:54 +020095 DEBIAN_EXEC: 'bash .gitlab-ci/debian-install.sh'
Eric Engestrom46d23c02019-01-20 11:26:53 +000096
Michel Dänzer163ec5d2019-10-08 19:46:11 +020097.use-debian-10:amd64:
Michel Dänzereb86cba2019-10-10 15:27:17 +020098 image: $DEBIAN_IMAGE
99 needs:
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200100 - debian-10:amd64
Michel Dänzereb86cba2019-10-10 15:27:17 +0200101
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200102debian-9:amd64:
103 extends: debian-10:amd64
Michel Dänzer8a199922019-09-06 17:04:47 +0200104 variables:
105 DEBIAN_TAG: $STRETCH_TAG
106 DEBIAN_VERSION: $STRETCH_VERSION
107 DEBIAN_IMAGE: $STRETCH_IMAGE
108 DEBIAN_EXEC: 'bash .gitlab-ci/debian-stretch-install.sh'
109
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200110.use-debian-9:amd64:
Michel Dänzer88319f22019-09-18 16:17:01 +0200111 image: $STRETCH_IMAGE
112 needs:
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200113 - debian-9:amd64
Michel Dänzer88319f22019-09-18 16:17:01 +0200114
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200115debian-10:arm64:
Michel Dänzere426f402019-09-06 17:35:52 +0200116 extends:
117 - .debian@container-ifnot-exists@arm64v8
Eric Engestrom81b98e92019-10-14 23:04:14 +0100118 - .container
Eric Anholt6f0dc082019-06-28 16:35:32 -0700119 variables:
120 DEBIAN_TAG: "$DEBIAN_ARM64_TAG"
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200121 DEBIAN_EXEC: 'bash .gitlab-ci/debian-arm64-install.sh'
Eric Engestrom46d23c02019-01-20 11:26:53 +0000122
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100123debian-10-test:arm64:
124 extends:
125 - .debian@container-ifnot-exists@arm64v8
126 - .container
127 variables:
128 DEBIAN_TAG: "$DEBIAN_ARM64_TEST_TAG"
129 DEBIAN_EXEC: 'bash .gitlab-ci/debian-arm64-test-install.sh'
130
Eric Engestrom81b98e92019-10-14 23:04:14 +0100131
Eric Engestrom46d23c02019-01-20 11:26:53 +0000132# BUILD
133
Dylan Baker06e46472019-10-23 14:21:31 -0700134# Shared between windows and Linux
135.build-common:
Eric Engestromaba78c22019-10-14 23:52:58 +0100136 extends: .ci-run-policy
Eric Engestroma0f8a072019-09-11 18:51:46 +0100137 stage: build
Eric Engestrom46d23c02019-01-20 11:26:53 +0000138 artifacts:
Eric Anholtdd3d0b22019-07-24 09:27:48 -0700139 when: always
140 paths:
141 - _build/meson-logs/*.txt
142 # scons:
Michel Dänzer5229f272019-07-26 12:20:41 +0200143 - build/*/config.log
Eric Anholtf60defa2019-04-10 15:59:12 -0700144 - shader-db
Dylan Baker06e46472019-10-23 14:21:31 -0700145
146# Just Linux
147.build-linux:
148 extends: .build-common
Eric Anholtc9df92b2019-10-21 13:36:14 -0700149 tags:
150 - mesa-autoscale
Dylan Baker06e46472019-10-23 14:21:31 -0700151 cache:
152 key: ${CI_JOB_NAME}
153 paths:
154 - ccache
Michel Dänzere9de19f2019-04-04 18:01:27 +0200155 variables:
156 CCACHE_COMPILERCHECK: "content"
Eric Anholtc9df92b2019-10-21 13:36:14 -0700157 NINJA_FLAGS: "-j8" # autoscale is provisioned at 4 CPUs/job.
158 # kubernetes (the mesa-autoscale runner) always has a clean working
159 # dir, so we can't reuse the git clone, but that also means we don't
160 # need to download any extra history (normally extra history is
161 # needed so that a future fetch can find a shared parent).
162 GIT_DEPTH: 1
163 # Autoscale runners have 300GB of disk (since iops/throughput
164 # scales with disk size!), but we want to leave lots of space for
165 # container caching.
166 CCACHE_SIZE: 20G
Eric Engestrom23b485c2019-02-12 16:59:27 +0000167 # Use ccache transparently, and print stats before/after
168 before_script:
169 - export PATH="/usr/lib/ccache:$PATH"
170 - export CCACHE_BASEDIR="$PWD"
Eric Anholtc9df92b2019-10-21 13:36:14 -0700171 - ccache --max-size="$CCACHE_SIZE" || true
Michel Dänzerd80dece2019-11-04 12:30:12 +0100172 - if [ "$CCACHE_DIR" = "$CI_PROJECT_DIR/ccache" ]; then ccache --zero-stats; fi
Eric Engestrom23b485c2019-02-12 16:59:27 +0000173 - ccache --show-stats || true
174 after_script:
Eric Anholt46daaca2019-06-28 16:35:32 -0700175 # In case the install dir is being saved as artifacts, tar it up
176 # so that symlinks and hardlinks aren't each packed separately in
177 # the zip file.
178 - if [ -d install ]; then
179 tar -cf artifacts/install.tar install;
180 fi
Eric Engestrom23b485c2019-02-12 16:59:27 +0000181 - ccache --show-stats
Eric Engestrom46d23c02019-01-20 11:26:53 +0000182
Dylan Baker19851c92019-10-23 14:36:19 -0700183.build-windows:
184 extends: .build-common
185 tags:
186 - mesa-windows
187 cache:
188 key: ${CI_JOB_NAME}
189 paths:
190 - subprojects/packagecache
191
Eric Engestrom46d23c02019-01-20 11:26:53 +0000192.meson-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100193 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700194 - .build-linux
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200195 - .use-debian-10:amd64
Eric Engestrom23b485c2019-02-12 16:59:27 +0000196 script:
Michel Dänzercc2b3a92019-05-03 10:49:43 +0200197 - .gitlab-ci/meson-build.sh
Eric Engestrom46d23c02019-01-20 11:26:53 +0000198
Eric Engestrom06b245b2019-01-23 15:46:10 +0000199.scons-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100200 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700201 - .build-linux
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200202 - .use-debian-10:amd64
Eric Engestrom06b245b2019-01-23 15:46:10 +0000203 variables:
Eric Anholtc9df92b2019-10-21 13:36:14 -0700204 SCONSFLAGS: "-j8"
Eric Engestrom06b245b2019-01-23 15:46:10 +0000205 script:
Michel Dänzer0374aac2019-09-12 11:34:43 +0200206 - .gitlab-ci/scons-build.sh
Eric Engestrom06b245b2019-01-23 15:46:10 +0000207
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200208meson-main:
Michel Dänzere426f402019-09-06 17:35:52 +0200209 extends:
210 - .meson-build
211 - .ci-deqp-artifacts
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200212 variables:
213 UNWIND: "true"
214 DRI_LOADERS: >
215 -D glx=dri
216 -D gbm=true
217 -D egl=true
218 -D platforms=x11,wayland,drm,surfaceless
219 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
220 GALLIUM_ST: >
221 -D dri3=true
222 -D gallium-extra-hud=true
223 -D gallium-vdpau=true
224 -D gallium-xvmc=true
225 -D gallium-omx=bellagio
226 -D gallium-va=true
227 -D gallium-xa=true
228 -D gallium-nine=true
229 -D gallium-opencl=disabled
Erik Faye-Lund3d529c12019-10-22 09:08:11 +0200230 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 +0200231 LLVM_VERSION: "7"
232 EXTRA_OPTION: >
233 -D osmesa=gallium
234 -D tools=all
235 MESON_SHADERDB: "true"
236 BUILDTYPE: "debugoptimized"
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200237
Michel Dänzere5364462019-09-13 11:59:43 +0200238.meson-cross:
239 extends:
240 - .meson-build
Michel Dänzere5364462019-09-13 11:59:43 +0200241 variables:
242 UNWIND: "false"
243 DRI_LOADERS: >
244 -D glx=disabled
245 -D gbm=false
246 -D egl=true
247 -D platforms=surfaceless
248 -D osmesa=none
249 GALLIUM_ST: >
250 -D dri3=false
251 -D gallium-vdpau=false
252 -D gallium-xvmc=false
253 -D gallium-omx=disabled
254 -D gallium-va=false
255 -D gallium-xa=false
256 -D gallium-nine=false
Michel Dänzere5364462019-09-13 11:59:43 +0200257
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200258.meson-arm:
Michel Dänzere5364462019-09-13 11:59:43 +0200259 extends: .meson-cross
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200260 image: $DEBIAN_ARM64_IMAGE
Michel Dänzere5364462019-09-13 11:59:43 +0200261 variables:
Michel Dänzere5364462019-09-13 11:59:43 +0200262 VULKAN_DRIVERS: freedreno
Michel Dänzer793f6b32019-10-08 19:48:41 +0200263 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
Michel Dänzere5364462019-09-13 11:59:43 +0200264 EXTRA_OPTION: >
Michel Dänzere5364462019-09-13 11:59:43 +0200265 -D I-love-half-baked-turnips=true
Eric Anholtc9df92b2019-10-21 13:36:14 -0700266 NINJA_FLAGS: "-j4"
Michel Dänzerd80dece2019-11-04 12:30:12 +0100267 CCACHE_DIR: "$CI_PROJECT_DIR/ccache"
Eric Anholtc9df92b2019-10-21 13:36:14 -0700268 CCACHE_SIZE: "1500M"
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200269 needs:
270 - debian-10:arm64
271 tags:
272 - aarch64
273
274meson-armhf:
275 extends: .meson-arm
276 variables:
277 CROSS: armhf
Michel Dänzer793f6b32019-10-08 19:48:41 +0200278 LLVM_VERSION: "7"
Michel Dänzere5364462019-09-13 11:59:43 +0200279
280meson-arm64:
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200281 extends:
282 - .meson-arm
283 - .ci-deqp-artifacts
Michel Dänzere5364462019-09-13 11:59:43 +0200284 variables:
Michel Dänzere5364462019-09-13 11:59:43 +0200285 BUILDTYPE: "debugoptimized"
286
Michel Dänzera2cce702019-03-20 15:58:31 +0100287# NOTE: Building SWR is 2x (yes two) times slower than all the other
288# gallium drivers combined.
289# Start this early so that it doesn't limit the total run time.
Eric Engestrom41407c62019-03-08 16:33:07 +0000290#
Eric Anholt030aa6e2019-08-07 14:05:51 -0700291# We also stick the glvnd build here, since we want non-glvnd in
292# meson-main for actual driver CI.
Eric Engestrom1291c682019-04-16 18:06:53 +0200293meson-swr-glvnd:
Michel Dänzera2cce702019-03-20 15:58:31 +0100294 extends: .meson-build
295 variables:
296 UNWIND: "true"
297 DRI_LOADERS: >
Eric Engestrom1291c682019-04-16 18:06:53 +0200298 -D glvnd=true
299 -D egl=true
Michel Dänzera2cce702019-03-20 15:58:31 +0100300 GALLIUM_ST: >
Eric Engestrom41407c62019-03-08 16:33:07 +0000301 -D dri3=true
Michel Dänzera2cce702019-03-20 15:58:31 +0100302 -D gallium-vdpau=false
303 -D gallium-xvmc=false
304 -D gallium-omx=disabled
305 -D gallium-va=false
306 -D gallium-xa=false
Eric Anholt030aa6e2019-08-07 14:05:51 -0700307 -D gallium-nine=false
Michel Dänzera2cce702019-03-20 15:58:31 +0100308 -D gallium-opencl=disabled
Eric Anholt030aa6e2019-08-07 14:05:51 -0700309 GALLIUM_DRIVERS: "swr,iris"
Michel Dänzera2cce702019-03-20 15:58:31 +0100310 LLVM_VERSION: "6.0"
311
312meson-clang:
313 extends: .meson-build
314 variables:
315 UNWIND: "true"
316 DRI_DRIVERS: "auto"
317 GALLIUM_DRIVERS: "auto"
Eric Engestrom47f419d2019-05-01 12:09:26 +0100318 VULKAN_DRIVERS: intel,amd,freedreno
Michel Dänzer3fca2b72019-04-05 10:36:29 +0200319 CC: "ccache clang-8"
320 CXX: "ccache clang++-8"
Michel Dänzera2cce702019-03-20 15:58:31 +0100321
Michel Dänzeraaf1b092019-10-30 09:38:20 +0100322.meson-windows:
Dylan Baker19851c92019-10-23 14:36:19 -0700323 extends:
324 - .build-windows
325 before_script:
326 - $ENV:ARCH = "x86"
327 - $ENV:VERSION = "2019\Community"
328 script:
329 - cmd /C .gitlab-ci\meson-build.bat
330
Michel Dänzer82b30092019-05-03 18:19:25 +0200331scons-swr:
332 extends: .scons-build
Eric Engestrom46d23c02019-01-20 11:26:53 +0000333 variables:
Michel Dänzer82b30092019-05-03 18:19:25 +0200334 SCONS_TARGET: "swr=1"
335 SCONS_CHECK_COMMAND: "true"
336 LLVM_VERSION: "6.0"
337
338scons-win64:
339 extends: .scons-build
340 variables:
341 SCONS_TARGET: platform=windows machine=x86_64
342 SCONS_CHECK_COMMAND: "true"
Eric Engestrom89a74672019-01-21 09:42:37 +0000343
Michel Dänzer68977152019-05-03 10:58:48 +0200344meson-clover:
Eric Engestromb5a70af2019-01-28 18:05:22 +0000345 extends: .meson-build
346 variables:
347 UNWIND: "true"
348 DRI_LOADERS: >
349 -D glx=disabled
350 -D egl=false
351 -D gbm=false
352 GALLIUM_ST: >
353 -D dri3=false
354 -D gallium-vdpau=false
355 -D gallium-xvmc=false
356 -D gallium-omx=disabled
357 -D gallium-va=false
358 -D gallium-xa=false
359 -D gallium-nine=false
360 -D gallium-opencl=icd
Michel Dänzer68977152019-05-03 10:58:48 +0200361 script:
362 - export GALLIUM_DRIVERS="r600,radeonsi"
363 - .gitlab-ci/meson-build.sh
Samuel Pitoiset7d1c0912019-08-21 11:45:25 +0200364 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
Michel Dänzer68977152019-05-03 10:58:48 +0200365 - export GALLIUM_DRIVERS="i915,r600"
Michel Dänzer8a199922019-09-06 17:04:47 +0200366 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
367 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
368
369meson-clover-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200370 extends:
371 - meson-clover
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200372 - .use-debian-9:amd64
Michel Dänzer8a199922019-09-06 17:04:47 +0200373 variables:
374 UNWIND: "false"
375 DRI_LOADERS: >
376 -D glx=disabled
377 -D egl=false
378 -D gbm=false
379 -D platforms=drm,surfaceless
380 GALLIUM_DRIVERS: "i915,r600"
381 script:
Michel Dänzer68977152019-05-03 10:58:48 +0200382 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
383 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
384 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
Eric Engestrom8dab7072019-01-28 18:09:24 +0000385
Michel Dänzer82b30092019-05-03 18:19:25 +0200386meson-vulkan:
387 extends: .meson-build
388 variables:
389 UNWIND: "false"
390 DRI_LOADERS: >
391 -D glx=disabled
392 -D gbm=false
393 -D egl=false
394 -D platforms=x11,wayland,drm
395 -D osmesa=none
396 GALLIUM_ST: >
397 -D dri3=true
398 -D gallium-vdpau=false
399 -D gallium-xvmc=false
400 -D gallium-omx=disabled
401 -D gallium-va=false
402 -D gallium-xa=false
403 -D gallium-nine=false
404 -D gallium-opencl=disabled
Michel Dänzer75cc8c02019-09-25 12:56:58 +0200405 -D b_sanitize=undefined
406 -D c_args=-fno-sanitize-recover=all
407 -D cpp_args=-fno-sanitize-recover=all
408 UBSAN_OPTIONS: "print_stacktrace=1"
Michel Dänzer82b30092019-05-03 18:19:25 +0200409 VULKAN_DRIVERS: intel,amd,freedreno
Samuel Pitoiset7d1c0912019-08-21 11:45:25 +0200410 LLVM_VERSION: "8"
Eric Engestrom5f8d29a2019-05-08 18:17:23 +0200411 EXTRA_OPTION: >
412 -D vulkan-overlay-layer=true
Michel Dänzer82b30092019-05-03 18:19:25 +0200413
Eric Anholt030aa6e2019-08-07 14:05:51 -0700414# While the main point of this build is testing the i386 cross build,
415# we also use this one to test some other options that are exclusive
416# with meson-main's choices (classic swrast and osmesa)
Eric Anholt11aa32a2019-07-11 12:58:28 -0700417meson-i386:
418 extends: .meson-cross
419 variables:
Eric Engestrom1c82fa02019-08-09 23:46:50 +0100420 CROSS: i386
Eric Anholt11aa32a2019-07-11 12:58:28 -0700421 VULKAN_DRIVERS: intel
Eric Anholt030aa6e2019-08-07 14:05:51 -0700422 DRI_DRIVERS: "swrast"
423 GALLIUM_DRIVERS: "iris"
Eric Anholt11aa32a2019-07-11 12:58:28 -0700424 EXTRA_OPTION: >
Eric Anholt11aa32a2019-07-11 12:58:28 -0700425 -D vulkan-overlay-layer=true
Eric Anholt030aa6e2019-08-07 14:05:51 -0700426 -D llvm=false
427 -D osmesa=classic
Eric Anholt11aa32a2019-07-11 12:58:28 -0700428
Dylan Baker449f8312019-10-11 09:04:14 -0700429meson-mingw32-x86_64:
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700430 extends: .meson-build
431 variables:
432 UNWIND: "false"
433 DRI_DRIVERS: ""
434 GALLIUM_DRIVERS: "swrast"
435 EXTRA_OPTION: >
436 -Dllvm=false
437 -Dosmesa=gallium
438 --cross-file=.gitlab-ci/x86_64-w64-mingw32
439
Michel Dänzer88e57962019-09-12 11:45:13 +0200440scons:
Eric Engestromd4c6d4d2019-01-28 16:30:36 +0000441 extends: .scons-build
442 variables:
443 SCONS_TARGET: "llvm=1"
Dylan Baker54053bc2019-10-21 09:29:23 -0700444 SCONS_CHECK_COMMAND: "scons llvm=1 force_scons=1 check"
Michel Dänzerbaa50242019-09-12 11:38:06 +0200445 script:
Dylan Baker54053bc2019-10-21 09:29:23 -0700446 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
Michel Dänzerbaa50242019-09-12 11:38:06 +0200447 - LLVM_VERSION=6.0 .gitlab-ci/scons-build.sh
448 - LLVM_VERSION=7 .gitlab-ci/scons-build.sh
449 - LLVM_VERSION=8 .gitlab-ci/scons-build.sh
Michel Dänzer8a199922019-09-06 17:04:47 +0200450
451scons-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200452 extends:
453 - scons
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200454 - .use-debian-9:amd64
Michel Dänzerbaa50242019-09-12 11:38:06 +0200455 script:
456 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
457 - LLVM_VERSION=4.0 .gitlab-ci/scons-build.sh
458 - LLVM_VERSION=5.0 .gitlab-ci/scons-build.sh
Eric Anholt46daaca2019-06-28 16:35:32 -0700459
Eric Engestrom3bcd54f2019-10-14 23:53:15 +0100460.test:
461 extends: .ci-run-policy
Eric Anholt46daaca2019-06-28 16:35:32 -0700462 stage: test
Eric Anholt46daaca2019-06-28 16:35:32 -0700463 variables:
464 GIT_STRATEGY: none # testing doesn't build anything from source
Eric Engestrom3bcd54f2019-10-14 23:53:15 +0100465
466.deqp-test:
467 extends:
468 - .test
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200469 - .use-debian-10:amd64
Eric Engestrom3bcd54f2019-10-14 23:53:15 +0100470 variables:
Eric Anholt46daaca2019-06-28 16:35:32 -0700471 DEQP_SKIPS: deqp-default-skips.txt
472 script:
473 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
474 - rm -rf install
475 - tar -xf artifacts/install.tar
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100476 - LD_LIBRARY_PATH=install/lib ldd install/lib/{*,dri/swrast_dri}.so
Eric Anholt46daaca2019-06-28 16:35:32 -0700477 - ./artifacts/deqp-runner.sh
478 artifacts:
479 when: on_failure
480 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
481 paths:
482 - results/
Michel Dänzercccb68b2019-09-13 11:13:12 +0200483 dependencies:
484 - meson-main
Michel Dänzerc5aa2712019-10-22 11:19:17 +0200485 needs:
486 - meson-main
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200487 - debian-10:amd64
Eric Anholt46daaca2019-06-28 16:35:32 -0700488
489test-llvmpipe-gles2:
490 parallel: 4
491 variables:
492 DEQP_VER: gles2
493 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
494 LIBGL_ALWAYS_SOFTWARE: "true"
495 DEQP_RENDERER_MATCH: "llvmpipe"
496 extends: .deqp-test
Eric Anholt553cd822019-08-09 10:32:40 -0700497
498test-softpipe-gles2:
Michel Dänzer128581d2019-09-11 18:55:43 +0200499 extends: test-llvmpipe-gles2
Eric Anholt553cd822019-08-09 10:32:40 -0700500 variables:
Eric Anholt553cd822019-08-09 10:32:40 -0700501 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
Eric Anholt553cd822019-08-09 10:32:40 -0700502 DEQP_RENDERER_MATCH: "softpipe"
503 GALLIUM_DRIVER: "softpipe"
Eric Anholt553cd822019-08-09 10:32:40 -0700504
505# The GLES2 CTS run takes about 8 minutes of CPU time, while GLES3 is
506# 25 minutes. Until we can get its runtime down, just do a partial
507# (every 10 tests) run.
508test-softpipe-gles3-limited:
509 variables:
510 DEQP_VER: gles3
511 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
512 LIBGL_ALWAYS_SOFTWARE: "true"
513 DEQP_RENDERER_MATCH: "softpipe"
514 GALLIUM_DRIVER: "softpipe"
515 CI_NODE_INDEX: 1
516 CI_NODE_TOTAL: 10
517 extends: .deqp-test
Eric Anholt6f0dc082019-06-28 16:35:32 -0700518
Michel Dänzer128581d2019-09-11 18:55:43 +0200519arm64_a630_gles2:
Eric Anholt6f0dc082019-06-28 16:35:32 -0700520 extends: .deqp-test
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100521 image: $DEBIAN_ARM64_TEST_IMAGE
Eric Anholt6f0dc082019-06-28 16:35:32 -0700522 variables:
523 DEQP_VER: gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700524 DEQP_RENDERER_MATCH: "FD630"
525 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
526 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
527 NIR_VALIDATE: 0
528 tags:
529 - mesa-cheza
530 dependencies:
531 - meson-arm64
Michel Dänzerf2b80512019-09-18 16:28:41 +0200532 needs:
533 - meson-arm64
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100534 - debian-10-test:arm64
Eric Anholt6f0dc082019-06-28 16:35:32 -0700535
Michel Dänzer128581d2019-09-11 18:55:43 +0200536arm64_a630_gles31:
537 extends: arm64_a630_gles2
538 parallel: 4
Eric Anholt6f0dc082019-06-28 16:35:32 -0700539 variables:
Michel Dänzer128581d2019-09-11 18:55:43 +0200540 DEQP_VER: gles31
Eric Anholt6f0dc082019-06-28 16:35:32 -0700541
542arm64_a630_gles3:
543 parallel: 6
Michel Dänzer128581d2019-09-11 18:55:43 +0200544 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700545 variables:
546 DEQP_VER: gles3
547
Michel Dänzer128581d2019-09-11 18:55:43 +0200548arm64_a306_gles2:
Eric Anholt6f0dc082019-06-28 16:35:32 -0700549 parallel: 4
Michel Dänzer128581d2019-09-11 18:55:43 +0200550 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700551 variables:
Michel Dänzer128581d2019-09-11 18:55:43 +0200552 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
553 DEQP_SKIPS: deqp-default-skips.txt
554 DEQP_RENDERER_MATCH: "FD307"
555 tags:
556 - db410c