blob: 73b56a388be0d07fb62b7a40a40f58f091c5cf20 [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 Anholt66719e02019-11-04 11:05:25 -080017 DEBIAN_TAG: "amd64-2019-11-13-2"
Tapani Pälli7a893a02019-11-15 07:12:24 +020018 DEBIAN_TEST_TAG: "amd64-test-2019-11-15"
Samuel Pitoisetcb19f692019-11-12 14:56:35 +010019 DEBIAN_ARM64_TAG: "arm64v8-2019-11-13"
Eric Anholtf08c8102019-11-04 10:54:41 -080020 DEBIAN_ARM64_TEST_TAG: "arm64v8-test-2019-11-12-2"
Michel Dänzer8a199922019-09-06 17:04:47 +020021 STRETCH_TAG: "2019-09-18"
22 DEBIAN_VERSION: buster-slim
23 STRETCH_VERSION: stretch-slim
Michel Dänzerd00b1c42019-04-02 16:56:54 +020024 DEBIAN_IMAGE: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_TAG"
Michel Dänzeraebf43d2019-11-05 18:52:24 +010025 DEBIAN_TEST_IMAGE: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_TEST_TAG"
Michel Dänzer8a199922019-09-06 17:04:47 +020026 DEBIAN_ARM64_IMAGE: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_ARM64_TAG"
Michel Dänzerb4d3ae22019-11-04 09:54:09 +010027 DEBIAN_ARM64_TEST_IMAGE: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_ARM64_TEST_TAG"
Michel Dänzer8a199922019-09-06 17:04:47 +020028 STRETCH_IMAGE: "$CI_REGISTRY_IMAGE/debian/$STRETCH_VERSION:$STRETCH_TAG"
Benjamin Tissoires7f8a9a12019-04-02 09:24:00 +020029
30include:
31 - project: 'wayland/ci-templates'
Michel Dänzer67027782019-11-07 20:25:10 +010032 # Must be the same as in .gitlab-ci/lava-gitlab-ci.yml
Michel Dänzer2259b452019-09-06 17:01:50 +020033 ref: 1f7f57c64ff4ebbf7292e3b7a13600518b8cb24c
Michel Dänzerd00b1c42019-04-02 16:56:54 +020034 file: '/templates/debian.yml'
Eric Engestrom329f5cd2019-01-20 11:21:45 +000035
Tomeu Vizoso7b01f722019-09-18 16:03:36 +020036include:
Dylan Baker19851c92019-10-23 14:36:19 -070037 - local: '.gitlab-ci/lava-gitlab-ci.yml'
Tomeu Vizoso7b01f722019-09-18 16:03:36 +020038
Eric Engestrom329f5cd2019-01-20 11:21:45 +000039stages:
Eric Engestrom81b98e92019-10-14 23:04:14 +010040 - container
Eric Engestroma0f8a072019-09-11 18:51:46 +010041 - build
Eric Anholt46daaca2019-06-28 16:35:32 -070042 - test
Eric Engestrom329f5cd2019-01-20 11:21:45 +000043
44
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000045# When to automatically run the CI
Michel Dänzere426f402019-09-06 17:35:52 +020046.ci-run-policy:
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000047 only:
Michel Dänzer2a38fc12019-10-25 18:59:56 +020048 refs:
49 - branches@mesa/mesa
50 - merge_requests
51 - /^ci([-/].*)?$/
52 changes:
53 - VERSION
54 - bin/**/*
55 # GitLab CI
56 - .gitlab-ci.yml
57 - .gitlab-ci/**/*
58 # Meson
59 - meson*
60 - build-support/**/*
61 - subprojects/**/*
62 # SCons
63 - SConstruct
64 - scons/**/*
65 - common.py
66 # Source code
67 - include/**/*
68 - src/**/*
Michel Dänzer6140ed32019-03-26 18:39:41 +010069 retry:
70 max: 2
71 when:
72 - runner_system_failure
Eric Engestromac78ca42019-11-12 23:42:21 +000073 # Cancel CI run if a newer commit is pushed to the same branch
74 interruptible: true
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000075
Michel Dänzere426f402019-09-06 17:35:52 +020076.ci-deqp-artifacts:
Eric Anholt46daaca2019-06-28 16:35:32 -070077 artifacts:
78 when: always
79 untracked: false
80 paths:
81 # Watch out! Artifacts are relative to the build dir.
82 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
83 - artifacts
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000084
Michel Dänzer8a199922019-09-06 17:04:47 +020085# Build the normal CI native and cross-build docker images.
86
Eric Engestrom81b98e92019-10-14 23:04:14 +010087.container:
88 stage: container
89 extends:
90 - .ci-run-policy
91 variables:
92 # no need to pull the whole repo to build the container image
93 GIT_STRATEGY: none
94
Michel Dänzer3a48f452019-11-13 17:43:41 +010095x86_build:
Michel Dänzere426f402019-09-06 17:35:52 +020096 extends:
97 - .debian@container-ifnot-exists
Eric Engestrom81b98e92019-10-14 23:04:14 +010098 - .container
Eric Engestrom329f5cd2019-01-20 11:21:45 +000099 variables:
Michel Dänzerd00b1c42019-04-02 16:56:54 +0200100 DEBIAN_EXEC: 'bash .gitlab-ci/debian-install.sh'
Eric Engestrom46d23c02019-01-20 11:26:53 +0000101
Michel Dänzer3a48f452019-11-13 17:43:41 +0100102.use-x86_build:
Michel Dänzereb86cba2019-10-10 15:27:17 +0200103 image: $DEBIAN_IMAGE
104 needs:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100105 - x86_build
Michel Dänzereb86cba2019-10-10 15:27:17 +0200106
Michel Dänzer3a48f452019-11-13 17:43:41 +0100107x86_test:
108 extends: x86_build
Michel Dänzeraebf43d2019-11-05 18:52:24 +0100109 variables:
110 DEBIAN_TAG: "$DEBIAN_TEST_TAG"
111 DEBIAN_EXEC: 'bash .gitlab-ci/debian-test-install.sh'
112
Michel Dänzer3a48f452019-11-13 17:43:41 +0100113x86_build_old:
114 extends: x86_build
Michel Dänzer8a199922019-09-06 17:04:47 +0200115 variables:
116 DEBIAN_TAG: $STRETCH_TAG
117 DEBIAN_VERSION: $STRETCH_VERSION
118 DEBIAN_IMAGE: $STRETCH_IMAGE
119 DEBIAN_EXEC: 'bash .gitlab-ci/debian-stretch-install.sh'
120
Michel Dänzer3a48f452019-11-13 17:43:41 +0100121.use-x86_build_old:
Michel Dänzer88319f22019-09-18 16:17:01 +0200122 image: $STRETCH_IMAGE
123 needs:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100124 - x86_build_old
Michel Dänzer88319f22019-09-18 16:17:01 +0200125
Michel Dänzer3a48f452019-11-13 17:43:41 +0100126arm_build:
Michel Dänzere426f402019-09-06 17:35:52 +0200127 extends:
128 - .debian@container-ifnot-exists@arm64v8
Eric Engestrom81b98e92019-10-14 23:04:14 +0100129 - .container
Eric Anholt6f0dc082019-06-28 16:35:32 -0700130 variables:
131 DEBIAN_TAG: "$DEBIAN_ARM64_TAG"
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200132 DEBIAN_EXEC: 'bash .gitlab-ci/debian-arm64-install.sh'
Eric Engestrom46d23c02019-01-20 11:26:53 +0000133
Michel Dänzer3a48f452019-11-13 17:43:41 +0100134arm_test:
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100135 extends:
136 - .debian@container-ifnot-exists@arm64v8
137 - .container
138 variables:
139 DEBIAN_TAG: "$DEBIAN_ARM64_TEST_TAG"
140 DEBIAN_EXEC: 'bash .gitlab-ci/debian-arm64-test-install.sh'
141
Eric Engestrom81b98e92019-10-14 23:04:14 +0100142
Eric Engestrom46d23c02019-01-20 11:26:53 +0000143# BUILD
144
Dylan Baker06e46472019-10-23 14:21:31 -0700145# Shared between windows and Linux
146.build-common:
Eric Engestromaba78c22019-10-14 23:52:58 +0100147 extends: .ci-run-policy
Eric Engestroma0f8a072019-09-11 18:51:46 +0100148 stage: build
Eric Engestrom46d23c02019-01-20 11:26:53 +0000149 artifacts:
Eric Anholtdd3d0b22019-07-24 09:27:48 -0700150 when: always
151 paths:
152 - _build/meson-logs/*.txt
153 # scons:
Michel Dänzer5229f272019-07-26 12:20:41 +0200154 - build/*/config.log
Eric Anholtf60defa2019-04-10 15:59:12 -0700155 - shader-db
Dylan Baker06e46472019-10-23 14:21:31 -0700156
157# Just Linux
158.build-linux:
159 extends: .build-common
160 cache:
161 key: ${CI_JOB_NAME}
162 paths:
163 - ccache
Michel Dänzere9de19f2019-04-04 18:01:27 +0200164 variables:
165 CCACHE_COMPILERCHECK: "content"
Eric Engestrom23b485c2019-02-12 16:59:27 +0000166 # Use ccache transparently, and print stats before/after
167 before_script:
168 - export PATH="/usr/lib/ccache:$PATH"
169 - export CCACHE_BASEDIR="$PWD"
Eric Anholtcb655d22019-11-06 11:14:14 -0800170 - export CCACHE_DIR="$PWD/ccache"
171 - ccache --max-size=1500M
172 - ccache --zero-stats || true
Eric Engestrom23b485c2019-02-12 16:59:27 +0000173 - ccache --show-stats || true
174 after_script:
Eric Anholtcb655d22019-11-06 11:14:14 -0800175 - export CCACHE_DIR="$PWD/ccache"
Eric Engestrom23b485c2019-02-12 16:59:27 +0000176 - ccache --show-stats
Eric Engestrom46d23c02019-01-20 11:26:53 +0000177
Dylan Baker19851c92019-10-23 14:36:19 -0700178.build-windows:
179 extends: .build-common
180 tags:
181 - mesa-windows
182 cache:
183 key: ${CI_JOB_NAME}
184 paths:
185 - subprojects/packagecache
186
Eric Engestrom46d23c02019-01-20 11:26:53 +0000187.meson-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100188 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700189 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100190 - .use-x86_build
Eric Engestrom23b485c2019-02-12 16:59:27 +0000191 script:
Michel Dänzercc2b3a92019-05-03 10:49:43 +0200192 - .gitlab-ci/meson-build.sh
Eric Engestrom46d23c02019-01-20 11:26:53 +0000193
Eric Engestrom06b245b2019-01-23 15:46:10 +0000194.scons-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100195 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700196 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100197 - .use-x86_build
Eric Engestrom06b245b2019-01-23 15:46:10 +0000198 variables:
Eric Anholtcb655d22019-11-06 11:14:14 -0800199 SCONSFLAGS: "-j4"
Eric Engestrom06b245b2019-01-23 15:46:10 +0000200 script:
Michel Dänzer0374aac2019-09-12 11:34:43 +0200201 - .gitlab-ci/scons-build.sh
Eric Engestrom06b245b2019-01-23 15:46:10 +0000202
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200203meson-main:
Michel Dänzere426f402019-09-06 17:35:52 +0200204 extends:
205 - .meson-build
206 - .ci-deqp-artifacts
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200207 variables:
208 UNWIND: "true"
209 DRI_LOADERS: >
210 -D glx=dri
211 -D gbm=true
212 -D egl=true
213 -D platforms=x11,wayland,drm,surfaceless
214 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
215 GALLIUM_ST: >
216 -D dri3=true
217 -D gallium-extra-hud=true
218 -D gallium-vdpau=true
219 -D gallium-xvmc=true
220 -D gallium-omx=bellagio
221 -D gallium-va=true
222 -D gallium-xa=true
223 -D gallium-nine=true
224 -D gallium-opencl=disabled
Erik Faye-Lund3d529c12019-10-22 09:08:11 +0200225 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 +0200226 LLVM_VERSION: "7"
227 EXTRA_OPTION: >
228 -D osmesa=gallium
229 -D tools=all
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200230 BUILDTYPE: "debugoptimized"
Michel Dänzer59fcb012019-10-23 18:42:53 +0200231 script:
232 - .gitlab-ci/meson-build.sh
233 - .gitlab-ci/run-shader-db.sh
234 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200235
Michel Dänzere5364462019-09-13 11:59:43 +0200236.meson-cross:
237 extends:
238 - .meson-build
Michel Dänzere5364462019-09-13 11:59:43 +0200239 variables:
240 UNWIND: "false"
241 DRI_LOADERS: >
242 -D glx=disabled
243 -D gbm=false
244 -D egl=true
245 -D platforms=surfaceless
246 -D osmesa=none
247 GALLIUM_ST: >
248 -D dri3=false
249 -D gallium-vdpau=false
250 -D gallium-xvmc=false
251 -D gallium-omx=disabled
252 -D gallium-va=false
253 -D gallium-xa=false
254 -D gallium-nine=false
Michel Dänzere5364462019-09-13 11:59:43 +0200255
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200256.meson-arm:
Michel Dänzere5364462019-09-13 11:59:43 +0200257 extends: .meson-cross
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200258 image: $DEBIAN_ARM64_IMAGE
Michel Dänzere5364462019-09-13 11:59:43 +0200259 variables:
Michel Dänzere5364462019-09-13 11:59:43 +0200260 VULKAN_DRIVERS: freedreno
Michel Dänzer793f6b32019-10-08 19:48:41 +0200261 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
Michel Dänzere5364462019-09-13 11:59:43 +0200262 EXTRA_OPTION: >
Michel Dänzere5364462019-09-13 11:59:43 +0200263 -D I-love-half-baked-turnips=true
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200264 needs:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100265 - arm_build
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200266 tags:
267 - aarch64
268
269meson-armhf:
270 extends: .meson-arm
271 variables:
272 CROSS: armhf
Michel Dänzer793f6b32019-10-08 19:48:41 +0200273 LLVM_VERSION: "7"
Michel Dänzere5364462019-09-13 11:59:43 +0200274
275meson-arm64:
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200276 extends:
277 - .meson-arm
278 - .ci-deqp-artifacts
Michel Dänzere5364462019-09-13 11:59:43 +0200279 variables:
Michel Dänzere5364462019-09-13 11:59:43 +0200280 BUILDTYPE: "debugoptimized"
Samuel Pitoiset47ba2272019-11-12 14:25:16 +0100281 VULKAN_DRIVERS: "freedreno,amd"
Michel Dänzer59fcb012019-10-23 18:42:53 +0200282 script:
283 - .gitlab-ci/meson-build.sh
284 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzere5364462019-09-13 11:59:43 +0200285
Michel Dänzera2cce702019-03-20 15:58:31 +0100286# NOTE: Building SWR is 2x (yes two) times slower than all the other
287# gallium drivers combined.
288# Start this early so that it doesn't limit the total run time.
Eric Engestrom41407c62019-03-08 16:33:07 +0000289#
Eric Anholt030aa6e2019-08-07 14:05:51 -0700290# We also stick the glvnd build here, since we want non-glvnd in
291# meson-main for actual driver CI.
Eric Engestrom1291c682019-04-16 18:06:53 +0200292meson-swr-glvnd:
Michel Dänzera2cce702019-03-20 15:58:31 +0100293 extends: .meson-build
294 variables:
295 UNWIND: "true"
296 DRI_LOADERS: >
Eric Engestrom1291c682019-04-16 18:06:53 +0200297 -D glvnd=true
298 -D egl=true
Michel Dänzera2cce702019-03-20 15:58:31 +0100299 GALLIUM_ST: >
Eric Engestrom41407c62019-03-08 16:33:07 +0000300 -D dri3=true
Michel Dänzera2cce702019-03-20 15:58:31 +0100301 -D gallium-vdpau=false
302 -D gallium-xvmc=false
303 -D gallium-omx=disabled
304 -D gallium-va=false
305 -D gallium-xa=false
Eric Anholt030aa6e2019-08-07 14:05:51 -0700306 -D gallium-nine=false
Michel Dänzera2cce702019-03-20 15:58:31 +0100307 -D gallium-opencl=disabled
Eric Anholt030aa6e2019-08-07 14:05:51 -0700308 GALLIUM_DRIVERS: "swr,iris"
Michel Dänzera2cce702019-03-20 15:58:31 +0100309 LLVM_VERSION: "6.0"
310
311meson-clang:
312 extends: .meson-build
313 variables:
314 UNWIND: "true"
315 DRI_DRIVERS: "auto"
316 GALLIUM_DRIVERS: "auto"
Eric Engestrom47f419d2019-05-01 12:09:26 +0100317 VULKAN_DRIVERS: intel,amd,freedreno
Michel Dänzer3fca2b72019-04-05 10:36:29 +0200318 CC: "ccache clang-8"
319 CXX: "ccache clang++-8"
Michel Dänzera2cce702019-03-20 15:58:31 +0100320
Michel Dänzeraaf1b092019-10-30 09:38:20 +0100321.meson-windows:
Dylan Baker19851c92019-10-23 14:36:19 -0700322 extends:
323 - .build-windows
324 before_script:
325 - $ENV:ARCH = "x86"
326 - $ENV:VERSION = "2019\Community"
327 script:
328 - cmd /C .gitlab-ci\meson-build.bat
329
Michel Dänzer82b30092019-05-03 18:19:25 +0200330scons-swr:
331 extends: .scons-build
Eric Engestrom46d23c02019-01-20 11:26:53 +0000332 variables:
Michel Dänzer82b30092019-05-03 18:19:25 +0200333 SCONS_TARGET: "swr=1"
334 SCONS_CHECK_COMMAND: "true"
335 LLVM_VERSION: "6.0"
336
337scons-win64:
338 extends: .scons-build
339 variables:
340 SCONS_TARGET: platform=windows machine=x86_64
341 SCONS_CHECK_COMMAND: "true"
Eric Engestrom89a74672019-01-21 09:42:37 +0000342
Michel Dänzer68977152019-05-03 10:58:48 +0200343meson-clover:
Eric Engestromb5a70af2019-01-28 18:05:22 +0000344 extends: .meson-build
345 variables:
346 UNWIND: "true"
347 DRI_LOADERS: >
348 -D glx=disabled
349 -D egl=false
350 -D gbm=false
351 GALLIUM_ST: >
352 -D dri3=false
353 -D gallium-vdpau=false
354 -D gallium-xvmc=false
355 -D gallium-omx=disabled
356 -D gallium-va=false
357 -D gallium-xa=false
358 -D gallium-nine=false
359 -D gallium-opencl=icd
Michel Dänzer68977152019-05-03 10:58:48 +0200360 script:
361 - export GALLIUM_DRIVERS="r600,radeonsi"
362 - .gitlab-ci/meson-build.sh
Samuel Pitoiset7d1c0912019-08-21 11:45:25 +0200363 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
Michel Dänzer68977152019-05-03 10:58:48 +0200364 - export GALLIUM_DRIVERS="i915,r600"
Michel Dänzer8a199922019-09-06 17:04:47 +0200365 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
366 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
367
368meson-clover-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200369 extends:
370 - meson-clover
Michel Dänzer3a48f452019-11-13 17:43:41 +0100371 - .use-x86_build_old
Michel Dänzer8a199922019-09-06 17:04:47 +0200372 variables:
373 UNWIND: "false"
374 DRI_LOADERS: >
375 -D glx=disabled
376 -D egl=false
377 -D gbm=false
378 -D platforms=drm,surfaceless
379 GALLIUM_DRIVERS: "i915,r600"
380 script:
Michel Dänzer68977152019-05-03 10:58:48 +0200381 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
382 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
383 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
Eric Engestrom8dab7072019-01-28 18:09:24 +0000384
Michel Dänzer82b30092019-05-03 18:19:25 +0200385meson-vulkan:
386 extends: .meson-build
387 variables:
388 UNWIND: "false"
389 DRI_LOADERS: >
390 -D glx=disabled
391 -D gbm=false
392 -D egl=false
393 -D platforms=x11,wayland,drm
394 -D osmesa=none
395 GALLIUM_ST: >
396 -D dri3=true
397 -D gallium-vdpau=false
398 -D gallium-xvmc=false
399 -D gallium-omx=disabled
400 -D gallium-va=false
401 -D gallium-xa=false
402 -D gallium-nine=false
403 -D gallium-opencl=disabled
Michel Dänzer75cc8c02019-09-25 12:56:58 +0200404 -D b_sanitize=undefined
405 -D c_args=-fno-sanitize-recover=all
406 -D cpp_args=-fno-sanitize-recover=all
407 UBSAN_OPTIONS: "print_stacktrace=1"
Michel Dänzer82b30092019-05-03 18:19:25 +0200408 VULKAN_DRIVERS: intel,amd,freedreno
Samuel Pitoiset7d1c0912019-08-21 11:45:25 +0200409 LLVM_VERSION: "8"
Eric Engestrom5f8d29a2019-05-08 18:17:23 +0200410 EXTRA_OPTION: >
411 -D vulkan-overlay-layer=true
Michel Dänzer82b30092019-05-03 18:19:25 +0200412
Eric Anholt030aa6e2019-08-07 14:05:51 -0700413# While the main point of this build is testing the i386 cross build,
414# we also use this one to test some other options that are exclusive
415# with meson-main's choices (classic swrast and osmesa)
Eric Anholt11aa32a2019-07-11 12:58:28 -0700416meson-i386:
417 extends: .meson-cross
418 variables:
Eric Engestrom1c82fa02019-08-09 23:46:50 +0100419 CROSS: i386
Eric Anholt11aa32a2019-07-11 12:58:28 -0700420 VULKAN_DRIVERS: intel
Eric Anholt030aa6e2019-08-07 14:05:51 -0700421 DRI_DRIVERS: "swrast"
422 GALLIUM_DRIVERS: "iris"
Eric Anholt11aa32a2019-07-11 12:58:28 -0700423 EXTRA_OPTION: >
Eric Anholt11aa32a2019-07-11 12:58:28 -0700424 -D vulkan-overlay-layer=true
Eric Anholt030aa6e2019-08-07 14:05:51 -0700425 -D llvm=false
426 -D osmesa=classic
Eric Anholt11aa32a2019-07-11 12:58:28 -0700427
Dylan Baker449f8312019-10-11 09:04:14 -0700428meson-mingw32-x86_64:
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700429 extends: .meson-build
430 variables:
431 UNWIND: "false"
432 DRI_DRIVERS: ""
433 GALLIUM_DRIVERS: "swrast"
434 EXTRA_OPTION: >
435 -Dllvm=false
436 -Dosmesa=gallium
437 --cross-file=.gitlab-ci/x86_64-w64-mingw32
438
Michel Dänzer88e57962019-09-12 11:45:13 +0200439scons:
Eric Engestromd4c6d4d2019-01-28 16:30:36 +0000440 extends: .scons-build
441 variables:
442 SCONS_TARGET: "llvm=1"
Dylan Baker54053bc2019-10-21 09:29:23 -0700443 SCONS_CHECK_COMMAND: "scons llvm=1 force_scons=1 check"
Michel Dänzerbaa50242019-09-12 11:38:06 +0200444 script:
Dylan Baker54053bc2019-10-21 09:29:23 -0700445 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
Michel Dänzerbaa50242019-09-12 11:38:06 +0200446 - LLVM_VERSION=6.0 .gitlab-ci/scons-build.sh
447 - LLVM_VERSION=7 .gitlab-ci/scons-build.sh
448 - LLVM_VERSION=8 .gitlab-ci/scons-build.sh
Michel Dänzer8a199922019-09-06 17:04:47 +0200449
450scons-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200451 extends:
452 - scons
Michel Dänzer3a48f452019-11-13 17:43:41 +0100453 - .use-x86_build_old
Michel Dänzerbaa50242019-09-12 11:38:06 +0200454 script:
455 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
456 - LLVM_VERSION=4.0 .gitlab-ci/scons-build.sh
457 - LLVM_VERSION=5.0 .gitlab-ci/scons-build.sh
Eric Anholt46daaca2019-06-28 16:35:32 -0700458
Eric Engestrom3bcd54f2019-10-14 23:53:15 +0100459.test:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200460 extends:
461 - .ci-run-policy
Michel Dänzeraebf43d2019-11-05 18:52:24 +0100462 image: $DEBIAN_TEST_IMAGE
Eric Anholt46daaca2019-06-28 16:35:32 -0700463 stage: test
Eric Anholt46daaca2019-06-28 16:35:32 -0700464 variables:
465 GIT_STRATEGY: none # testing doesn't build anything from source
Michel Dänzer576f7b62019-10-22 17:16:52 +0200466 before_script:
Eric Anholt46daaca2019-06-28 16:35:32 -0700467 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
468 - rm -rf install
469 - tar -xf artifacts/install.tar
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100470 - LD_LIBRARY_PATH=install/lib ldd install/lib/{*,dri/swrast_dri}.so
Eric Anholt46daaca2019-06-28 16:35:32 -0700471 artifacts:
472 when: on_failure
473 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
474 paths:
475 - results/
Michel Dänzercccb68b2019-09-13 11:13:12 +0200476 dependencies:
477 - meson-main
Michel Dänzerc5aa2712019-10-22 11:19:17 +0200478 needs:
479 - meson-main
Michel Dänzer3a48f452019-11-13 17:43:41 +0100480 - x86_test
Eric Anholt46daaca2019-06-28 16:35:32 -0700481
Michel Dänzer576f7b62019-10-22 17:16:52 +0200482.piglit-test:
483 extends: .test
484 artifacts:
485 reports:
486 junit: results/results.xml
487 variables:
488 LIBGL_ALWAYS_SOFTWARE: 1
489 PIGLIT_NO_WINDOW: 1
490 script:
491 - artifacts/piglit/run.sh
492
493piglit-quick_gl:
494 extends: .piglit-test
495 variables:
496 LP_NUM_THREADS: 0
497 PIGLIT_OPTIONS: >
498 -x arb_gpu_shader5
499 -x glx-multithread-clearbuffer
500 -x glx-multithread-shader-compile
501 -x max-texture-size
502 -x maxsize
503 PIGLIT_PROFILES: quick_gl
504
505piglit-glslparser+quick_shader:
506 extends: .piglit-test
507 variables:
508 LP_NUM_THREADS: 1
509 PIGLIT_OPTIONS: >
510 -x spec@arb_arrays_of_arrays@execution@ubo
511 -x spec@arb_gpu_shader_int64@execution$$
512 -x spec@arb_separate_shader_objects@execution
513 -x spec@arb_separate_shader_objects@linker
514 -x spec@arb_shader_storage_buffer_object@execution
515 -x spec@glsl-1.50@execution@built-in-functions
516 PIGLIT_PROFILES: "glslparser quick_shader"
517 PIGLIT_RESULTS: "glslparser+quick_shader"
518
519.deqp-test:
520 extends: .test
521 variables:
522 DEQP_SKIPS: deqp-default-skips.txt
523 script:
524 - ./artifacts/deqp-runner.sh
525
Eric Anholt46daaca2019-06-28 16:35:32 -0700526test-llvmpipe-gles2:
Eric Anholt46daaca2019-06-28 16:35:32 -0700527 variables:
528 DEQP_VER: gles2
Eric Anholtf08c8102019-11-04 10:54:41 -0800529 DEQP_PARALLEL: 4
530 # Don't use threads inside llvmpipe, we've already got all 4 cores
531 # busy with DEQP_PARALLEL.
532 LP_NUM_THREADS: 0
Eric Anholt46daaca2019-06-28 16:35:32 -0700533 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
534 LIBGL_ALWAYS_SOFTWARE: "true"
Eric Anholt46daaca2019-06-28 16:35:32 -0700535 extends: .deqp-test
Eric Anholt553cd822019-08-09 10:32:40 -0700536
537test-softpipe-gles2:
Michel Dänzer128581d2019-09-11 18:55:43 +0200538 extends: test-llvmpipe-gles2
Eric Anholt553cd822019-08-09 10:32:40 -0700539 variables:
Eric Anholt553cd822019-08-09 10:32:40 -0700540 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
Eric Anholtf08c8102019-11-04 10:54:41 -0800541 DEQP_SKIPS: deqp-softpipe-skips.txt
Eric Anholt553cd822019-08-09 10:32:40 -0700542 GALLIUM_DRIVER: "softpipe"
Eric Anholt553cd822019-08-09 10:32:40 -0700543
Eric Anholt52843ec2019-11-05 10:31:29 -0800544test-softpipe-gles3:
545 parallel: 2
Eric Anholt553cd822019-08-09 10:32:40 -0700546 variables:
547 DEQP_VER: gles3
Eric Anholt52843ec2019-11-05 10:31:29 -0800548 extends: test-softpipe-gles2
549
550test-softpipe-gles31:
551 parallel: 4
552 variables:
553 DEQP_VER: gles31
554 extends: test-softpipe-gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700555
Michel Dänzer128581d2019-09-11 18:55:43 +0200556arm64_a630_gles2:
Eric Anholt6f0dc082019-06-28 16:35:32 -0700557 extends: .deqp-test
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100558 image: $DEBIAN_ARM64_TEST_IMAGE
Eric Anholt6f0dc082019-06-28 16:35:32 -0700559 variables:
560 DEQP_VER: gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700561 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
562 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
563 NIR_VALIDATE: 0
564 tags:
565 - mesa-cheza
566 dependencies:
567 - meson-arm64
Michel Dänzerf2b80512019-09-18 16:28:41 +0200568 needs:
569 - meson-arm64
Michel Dänzer3a48f452019-11-13 17:43:41 +0100570 - arm_test
Eric Anholt6f0dc082019-06-28 16:35:32 -0700571
Michel Dänzer128581d2019-09-11 18:55:43 +0200572arm64_a630_gles31:
573 extends: arm64_a630_gles2
574 parallel: 4
Eric Anholt6f0dc082019-06-28 16:35:32 -0700575 variables:
Michel Dänzer128581d2019-09-11 18:55:43 +0200576 DEQP_VER: gles31
Eric Anholt6f0dc082019-06-28 16:35:32 -0700577
578arm64_a630_gles3:
579 parallel: 6
Michel Dänzer128581d2019-09-11 18:55:43 +0200580 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700581 variables:
582 DEQP_VER: gles3
583
Michel Dänzer128581d2019-09-11 18:55:43 +0200584arm64_a306_gles2:
Eric Anholt6f0dc082019-06-28 16:35:32 -0700585 parallel: 4
Michel Dänzer128581d2019-09-11 18:55:43 +0200586 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700587 variables:
Michel Dänzer128581d2019-09-11 18:55:43 +0200588 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
589 DEQP_SKIPS: deqp-default-skips.txt
Michel Dänzer128581d2019-09-11 18:55:43 +0200590 tags:
591 - db410c