Eric Engestrom | 329f5cd | 2019-01-20 11:21:45 +0000 | [diff] [blame] | 1 | # This is the tag of the docker image used for the build jobs. If the |
Eric Engestrom | a0f8a07 | 2019-09-11 18:51:46 +0100 | [diff] [blame] | 2 | # image doesn't exist yet, the containers stage generates it. |
Eric Engestrom | 329f5cd | 2019-01-20 11:21:45 +0000 | [diff] [blame] | 3 | # |
| 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 Engestrom | 329f5cd | 2019-01-20 11:21:45 +0000 | [diff] [blame] | 15 | variables: |
Benjamin Tissoires | 7f8a9a1 | 2019-04-02 09:24:00 +0200 | [diff] [blame] | 16 | UPSTREAM_REPO: mesa/mesa |
Dylan Baker | d905d9b | 2019-09-19 10:21:51 -0700 | [diff] [blame] | 17 | DEBIAN_TAG: "2019-10-07_1" |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 18 | DEBIAN_ARM64_TAG: "arm64v8-2019-08-09" |
Michel Dänzer | 8a19992 | 2019-09-06 17:04:47 +0200 | [diff] [blame] | 19 | STRETCH_TAG: "2019-09-18" |
| 20 | DEBIAN_VERSION: buster-slim |
| 21 | STRETCH_VERSION: stretch-slim |
Michel Dänzer | d00b1c4 | 2019-04-02 16:56:54 +0200 | [diff] [blame] | 22 | DEBIAN_IMAGE: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_TAG" |
Michel Dänzer | 8a19992 | 2019-09-06 17:04:47 +0200 | [diff] [blame] | 23 | DEBIAN_ARM64_IMAGE: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_ARM64_TAG" |
| 24 | STRETCH_IMAGE: "$CI_REGISTRY_IMAGE/debian/$STRETCH_VERSION:$STRETCH_TAG" |
Benjamin Tissoires | 7f8a9a1 | 2019-04-02 09:24:00 +0200 | [diff] [blame] | 25 | |
| 26 | include: |
| 27 | - project: 'wayland/ci-templates' |
Michel Dänzer | 2259b45 | 2019-09-06 17:01:50 +0200 | [diff] [blame] | 28 | ref: 1f7f57c64ff4ebbf7292e3b7a13600518b8cb24c |
Michel Dänzer | d00b1c4 | 2019-04-02 16:56:54 +0200 | [diff] [blame] | 29 | file: '/templates/debian.yml' |
Eric Engestrom | 329f5cd | 2019-01-20 11:21:45 +0000 | [diff] [blame] | 30 | |
Tomeu Vizoso | 7b01f72 | 2019-09-18 16:03:36 +0200 | [diff] [blame] | 31 | include: |
Tomeu Vizoso | 555c0de | 2019-09-18 16:43:30 +0200 | [diff] [blame] | 32 | - local: '/.gitlab-ci/lava-gitlab-ci.yml' |
Tomeu Vizoso | 7b01f72 | 2019-09-18 16:03:36 +0200 | [diff] [blame] | 33 | |
Eric Engestrom | 329f5cd | 2019-01-20 11:21:45 +0000 | [diff] [blame] | 34 | stages: |
Eric Engestrom | 81b98e9 | 2019-10-14 23:04:14 +0100 | [diff] [blame^] | 35 | - container |
Eric Engestrom | a0f8a07 | 2019-09-11 18:51:46 +0100 | [diff] [blame] | 36 | - build |
Eric Anholt | 46daaca | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 37 | - test |
Eric Engestrom | 329f5cd | 2019-01-20 11:21:45 +0000 | [diff] [blame] | 38 | |
| 39 | |
Eric Engestrom | 7f5d9c2 | 2019-02-22 15:52:08 +0000 | [diff] [blame] | 40 | # When to automatically run the CI |
Michel Dänzer | e426f40 | 2019-09-06 17:35:52 +0200 | [diff] [blame] | 41 | .ci-run-policy: |
Eric Engestrom | 7f5d9c2 | 2019-02-22 15:52:08 +0000 | [diff] [blame] | 42 | only: |
Michel Dänzer | b48e64f | 2019-04-10 10:33:13 +0200 | [diff] [blame] | 43 | - branches@mesa/mesa |
Eric Engestrom | 7f5d9c2 | 2019-02-22 15:52:08 +0000 | [diff] [blame] | 44 | - merge_requests |
| 45 | - /^ci([-/].*)?$/ |
Michel Dänzer | 6140ed3 | 2019-03-26 18:39:41 +0100 | [diff] [blame] | 46 | retry: |
| 47 | max: 2 |
| 48 | when: |
| 49 | - runner_system_failure |
Eric Engestrom | 7f5d9c2 | 2019-02-22 15:52:08 +0000 | [diff] [blame] | 50 | |
Michel Dänzer | e426f40 | 2019-09-06 17:35:52 +0200 | [diff] [blame] | 51 | .ci-deqp-artifacts: |
Eric Anholt | 46daaca | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 52 | artifacts: |
| 53 | when: always |
| 54 | untracked: false |
| 55 | paths: |
| 56 | # Watch out! Artifacts are relative to the build dir. |
| 57 | # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521 |
| 58 | - artifacts |
Eric Engestrom | 7f5d9c2 | 2019-02-22 15:52:08 +0000 | [diff] [blame] | 59 | |
Michel Dänzer | 8a19992 | 2019-09-06 17:04:47 +0200 | [diff] [blame] | 60 | # Build the normal CI native and cross-build docker images. |
| 61 | |
Eric Engestrom | 81b98e9 | 2019-10-14 23:04:14 +0100 | [diff] [blame^] | 62 | .container: |
| 63 | stage: container |
| 64 | extends: |
| 65 | - .ci-run-policy |
| 66 | variables: |
| 67 | # no need to pull the whole repo to build the container image |
| 68 | GIT_STRATEGY: none |
| 69 | |
Michel Dänzer | 8a19992 | 2019-09-06 17:04:47 +0200 | [diff] [blame] | 70 | debian-10: |
Michel Dänzer | e426f40 | 2019-09-06 17:35:52 +0200 | [diff] [blame] | 71 | extends: |
| 72 | - .debian@container-ifnot-exists |
Eric Engestrom | 81b98e9 | 2019-10-14 23:04:14 +0100 | [diff] [blame^] | 73 | - .container |
Eric Engestrom | 329f5cd | 2019-01-20 11:21:45 +0000 | [diff] [blame] | 74 | variables: |
Michel Dänzer | d00b1c4 | 2019-04-02 16:56:54 +0200 | [diff] [blame] | 75 | DEBIAN_EXEC: 'bash .gitlab-ci/debian-install.sh' |
Eric Engestrom | 46d23c0 | 2019-01-20 11:26:53 +0000 | [diff] [blame] | 76 | |
Michel Dänzer | eb86cba | 2019-10-10 15:27:17 +0200 | [diff] [blame] | 77 | .use-debian-10: |
| 78 | extends: .ci-run-policy |
| 79 | image: $DEBIAN_IMAGE |
| 80 | needs: |
| 81 | - debian-10 |
| 82 | |
Michel Dänzer | 8a19992 | 2019-09-06 17:04:47 +0200 | [diff] [blame] | 83 | debian-9: |
| 84 | extends: debian-10 |
| 85 | variables: |
| 86 | DEBIAN_TAG: $STRETCH_TAG |
| 87 | DEBIAN_VERSION: $STRETCH_VERSION |
| 88 | DEBIAN_IMAGE: $STRETCH_IMAGE |
| 89 | DEBIAN_EXEC: 'bash .gitlab-ci/debian-stretch-install.sh' |
| 90 | |
Michel Dänzer | 88319f2 | 2019-09-18 16:17:01 +0200 | [diff] [blame] | 91 | .use-debian-9: |
| 92 | image: $STRETCH_IMAGE |
| 93 | needs: |
| 94 | - debian-9 |
| 95 | |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 96 | # Builds a Docker image with the native environment and VK-GL-CTS for testing. |
| 97 | test-container:arm64: |
Michel Dänzer | e426f40 | 2019-09-06 17:35:52 +0200 | [diff] [blame] | 98 | extends: |
| 99 | - .debian@container-ifnot-exists@arm64v8 |
Eric Engestrom | 81b98e9 | 2019-10-14 23:04:14 +0100 | [diff] [blame^] | 100 | - .container |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 101 | variables: |
| 102 | DEBIAN_TAG: "$DEBIAN_ARM64_TAG" |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 103 | DEBIAN_EXEC: 'bash .gitlab-ci/debian-test-install.sh' |
Eric Engestrom | 46d23c0 | 2019-01-20 11:26:53 +0000 | [diff] [blame] | 104 | |
Eric Engestrom | 81b98e9 | 2019-10-14 23:04:14 +0100 | [diff] [blame^] | 105 | |
Eric Engestrom | 46d23c0 | 2019-01-20 11:26:53 +0000 | [diff] [blame] | 106 | # BUILD |
| 107 | |
| 108 | .build: |
Michel Dänzer | eb86cba | 2019-10-10 15:27:17 +0200 | [diff] [blame] | 109 | extends: .use-debian-10 |
Eric Engestrom | a0f8a07 | 2019-09-11 18:51:46 +0100 | [diff] [blame] | 110 | stage: build |
Michel Dänzer | a3f34f9 | 2019-03-26 18:35:59 +0100 | [diff] [blame] | 111 | cache: |
Michel Dänzer | 4712fdf | 2019-10-01 16:00:16 +0200 | [diff] [blame] | 112 | key: ${CI_JOB_NAME} |
Michel Dänzer | a3f34f9 | 2019-03-26 18:35:59 +0100 | [diff] [blame] | 113 | paths: |
| 114 | - ccache |
Eric Engestrom | 46d23c0 | 2019-01-20 11:26:53 +0000 | [diff] [blame] | 115 | artifacts: |
Eric Anholt | dd3d0b2 | 2019-07-24 09:27:48 -0700 | [diff] [blame] | 116 | when: always |
| 117 | paths: |
| 118 | - _build/meson-logs/*.txt |
| 119 | # scons: |
Michel Dänzer | 5229f27 | 2019-07-26 12:20:41 +0200 | [diff] [blame] | 120 | - build/*/config.log |
Eric Anholt | f60defa | 2019-04-10 15:59:12 -0700 | [diff] [blame] | 121 | - shader-db |
Michel Dänzer | e9de19f | 2019-04-04 18:01:27 +0200 | [diff] [blame] | 122 | variables: |
| 123 | CCACHE_COMPILERCHECK: "content" |
Eric Engestrom | 23b485c | 2019-02-12 16:59:27 +0000 | [diff] [blame] | 124 | # Use ccache transparently, and print stats before/after |
| 125 | before_script: |
| 126 | - export PATH="/usr/lib/ccache:$PATH" |
| 127 | - export CCACHE_BASEDIR="$PWD" |
| 128 | - export CCACHE_DIR="$PWD/ccache" |
Michel Dänzer | 4712fdf | 2019-10-01 16:00:16 +0200 | [diff] [blame] | 129 | - ccache --max-size=1500M |
Eric Engestrom | 23b485c | 2019-02-12 16:59:27 +0000 | [diff] [blame] | 130 | - ccache --zero-stats || true |
| 131 | - ccache --show-stats || true |
| 132 | after_script: |
Eric Anholt | 46daaca | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 133 | # In case the install dir is being saved as artifacts, tar it up |
| 134 | # so that symlinks and hardlinks aren't each packed separately in |
| 135 | # the zip file. |
| 136 | - if [ -d install ]; then |
| 137 | tar -cf artifacts/install.tar install; |
| 138 | fi |
Eric Engestrom | 23b485c | 2019-02-12 16:59:27 +0000 | [diff] [blame] | 139 | - export CCACHE_DIR="$PWD/ccache" |
| 140 | - ccache --show-stats |
Eric Engestrom | 46d23c0 | 2019-01-20 11:26:53 +0000 | [diff] [blame] | 141 | |
| 142 | .meson-build: |
| 143 | extends: .build |
Eric Engestrom | 23b485c | 2019-02-12 16:59:27 +0000 | [diff] [blame] | 144 | script: |
Michel Dänzer | cc2b3a9 | 2019-05-03 10:49:43 +0200 | [diff] [blame] | 145 | - .gitlab-ci/meson-build.sh |
Eric Engestrom | 46d23c0 | 2019-01-20 11:26:53 +0000 | [diff] [blame] | 146 | |
Eric Engestrom | 06b245b | 2019-01-23 15:46:10 +0000 | [diff] [blame] | 147 | .scons-build: |
| 148 | extends: .build |
| 149 | variables: |
| 150 | SCONSFLAGS: "-j4" |
| 151 | script: |
Michel Dänzer | 0374aac | 2019-09-12 11:34:43 +0200 | [diff] [blame] | 152 | - .gitlab-ci/scons-build.sh |
Eric Engestrom | 06b245b | 2019-01-23 15:46:10 +0000 | [diff] [blame] | 153 | |
Michel Dänzer | 42f8d5a | 2019-08-28 12:01:02 +0200 | [diff] [blame] | 154 | meson-main: |
Michel Dänzer | e426f40 | 2019-09-06 17:35:52 +0200 | [diff] [blame] | 155 | extends: |
| 156 | - .meson-build |
| 157 | - .ci-deqp-artifacts |
Michel Dänzer | 42f8d5a | 2019-08-28 12:01:02 +0200 | [diff] [blame] | 158 | variables: |
| 159 | UNWIND: "true" |
| 160 | DRI_LOADERS: > |
| 161 | -D glx=dri |
| 162 | -D gbm=true |
| 163 | -D egl=true |
| 164 | -D platforms=x11,wayland,drm,surfaceless |
| 165 | DRI_DRIVERS: "i915,i965,r100,r200,nouveau" |
| 166 | GALLIUM_ST: > |
| 167 | -D dri3=true |
| 168 | -D gallium-extra-hud=true |
| 169 | -D gallium-vdpau=true |
| 170 | -D gallium-xvmc=true |
| 171 | -D gallium-omx=bellagio |
| 172 | -D gallium-va=true |
| 173 | -D gallium-xa=true |
| 174 | -D gallium-nine=true |
| 175 | -D gallium-opencl=disabled |
| 176 | GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima" |
| 177 | LLVM_VERSION: "7" |
| 178 | EXTRA_OPTION: > |
| 179 | -D osmesa=gallium |
| 180 | -D tools=all |
| 181 | MESON_SHADERDB: "true" |
| 182 | BUILDTYPE: "debugoptimized" |
Michel Dänzer | 42f8d5a | 2019-08-28 12:01:02 +0200 | [diff] [blame] | 183 | |
Michel Dänzer | e536446 | 2019-09-13 11:59:43 +0200 | [diff] [blame] | 184 | .meson-cross: |
| 185 | extends: |
| 186 | - .meson-build |
| 187 | - .ci-deqp-artifacts |
| 188 | variables: |
| 189 | UNWIND: "false" |
| 190 | DRI_LOADERS: > |
| 191 | -D glx=disabled |
| 192 | -D gbm=false |
| 193 | -D egl=true |
| 194 | -D platforms=surfaceless |
| 195 | -D osmesa=none |
| 196 | GALLIUM_ST: > |
| 197 | -D dri3=false |
| 198 | -D gallium-vdpau=false |
| 199 | -D gallium-xvmc=false |
| 200 | -D gallium-omx=disabled |
| 201 | -D gallium-va=false |
| 202 | -D gallium-xa=false |
| 203 | -D gallium-nine=false |
| 204 | -D llvm=false |
Michel Dänzer | e536446 | 2019-09-13 11:59:43 +0200 | [diff] [blame] | 205 | |
| 206 | meson-armhf: |
| 207 | extends: .meson-cross |
| 208 | variables: |
| 209 | CROSS: armhf |
| 210 | VULKAN_DRIVERS: freedreno |
| 211 | GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,tegra,v3d,vc4" |
| 212 | # Disable the tests since we're cross compiling. |
| 213 | EXTRA_OPTION: > |
| 214 | -D build-tests=false |
| 215 | -D I-love-half-baked-turnips=true |
| 216 | -D vulkan-overlay-layer=true |
| 217 | |
| 218 | meson-arm64: |
| 219 | extends: meson-armhf |
| 220 | variables: |
| 221 | CROSS: arm64 |
| 222 | BUILDTYPE: "debugoptimized" |
| 223 | |
Michel Dänzer | a2cce70 | 2019-03-20 15:58:31 +0100 | [diff] [blame] | 224 | # NOTE: Building SWR is 2x (yes two) times slower than all the other |
| 225 | # gallium drivers combined. |
| 226 | # Start this early so that it doesn't limit the total run time. |
Eric Engestrom | 41407c6 | 2019-03-08 16:33:07 +0000 | [diff] [blame] | 227 | # |
Eric Anholt | 030aa6e | 2019-08-07 14:05:51 -0700 | [diff] [blame] | 228 | # We also stick the glvnd build here, since we want non-glvnd in |
| 229 | # meson-main for actual driver CI. |
Eric Engestrom | 1291c68 | 2019-04-16 18:06:53 +0200 | [diff] [blame] | 230 | meson-swr-glvnd: |
Michel Dänzer | a2cce70 | 2019-03-20 15:58:31 +0100 | [diff] [blame] | 231 | extends: .meson-build |
| 232 | variables: |
| 233 | UNWIND: "true" |
| 234 | DRI_LOADERS: > |
Eric Engestrom | 1291c68 | 2019-04-16 18:06:53 +0200 | [diff] [blame] | 235 | -D glvnd=true |
| 236 | -D egl=true |
Michel Dänzer | a2cce70 | 2019-03-20 15:58:31 +0100 | [diff] [blame] | 237 | GALLIUM_ST: > |
Eric Engestrom | 41407c6 | 2019-03-08 16:33:07 +0000 | [diff] [blame] | 238 | -D dri3=true |
Michel Dänzer | a2cce70 | 2019-03-20 15:58:31 +0100 | [diff] [blame] | 239 | -D gallium-vdpau=false |
| 240 | -D gallium-xvmc=false |
| 241 | -D gallium-omx=disabled |
| 242 | -D gallium-va=false |
| 243 | -D gallium-xa=false |
Eric Anholt | 030aa6e | 2019-08-07 14:05:51 -0700 | [diff] [blame] | 244 | -D gallium-nine=false |
Michel Dänzer | a2cce70 | 2019-03-20 15:58:31 +0100 | [diff] [blame] | 245 | -D gallium-opencl=disabled |
Eric Anholt | 030aa6e | 2019-08-07 14:05:51 -0700 | [diff] [blame] | 246 | GALLIUM_DRIVERS: "swr,iris" |
Michel Dänzer | a2cce70 | 2019-03-20 15:58:31 +0100 | [diff] [blame] | 247 | LLVM_VERSION: "6.0" |
| 248 | |
| 249 | meson-clang: |
| 250 | extends: .meson-build |
| 251 | variables: |
| 252 | UNWIND: "true" |
| 253 | DRI_DRIVERS: "auto" |
| 254 | GALLIUM_DRIVERS: "auto" |
Eric Engestrom | 47f419d | 2019-05-01 12:09:26 +0100 | [diff] [blame] | 255 | VULKAN_DRIVERS: intel,amd,freedreno |
Michel Dänzer | 3fca2b7 | 2019-04-05 10:36:29 +0200 | [diff] [blame] | 256 | CC: "ccache clang-8" |
| 257 | CXX: "ccache clang++-8" |
Michel Dänzer | a2cce70 | 2019-03-20 15:58:31 +0100 | [diff] [blame] | 258 | |
Michel Dänzer | 82b3009 | 2019-05-03 18:19:25 +0200 | [diff] [blame] | 259 | scons-swr: |
| 260 | extends: .scons-build |
Eric Engestrom | 46d23c0 | 2019-01-20 11:26:53 +0000 | [diff] [blame] | 261 | variables: |
Michel Dänzer | 82b3009 | 2019-05-03 18:19:25 +0200 | [diff] [blame] | 262 | SCONS_TARGET: "swr=1" |
| 263 | SCONS_CHECK_COMMAND: "true" |
| 264 | LLVM_VERSION: "6.0" |
| 265 | |
| 266 | scons-win64: |
| 267 | extends: .scons-build |
| 268 | variables: |
| 269 | SCONS_TARGET: platform=windows machine=x86_64 |
| 270 | SCONS_CHECK_COMMAND: "true" |
Eric Engestrom | 89a7467 | 2019-01-21 09:42:37 +0000 | [diff] [blame] | 271 | |
Michel Dänzer | 6897715 | 2019-05-03 10:58:48 +0200 | [diff] [blame] | 272 | meson-clover: |
Eric Engestrom | b5a70af | 2019-01-28 18:05:22 +0000 | [diff] [blame] | 273 | extends: .meson-build |
| 274 | variables: |
| 275 | UNWIND: "true" |
| 276 | DRI_LOADERS: > |
| 277 | -D glx=disabled |
| 278 | -D egl=false |
| 279 | -D gbm=false |
| 280 | GALLIUM_ST: > |
| 281 | -D dri3=false |
| 282 | -D gallium-vdpau=false |
| 283 | -D gallium-xvmc=false |
| 284 | -D gallium-omx=disabled |
| 285 | -D gallium-va=false |
| 286 | -D gallium-xa=false |
| 287 | -D gallium-nine=false |
| 288 | -D gallium-opencl=icd |
Michel Dänzer | 6897715 | 2019-05-03 10:58:48 +0200 | [diff] [blame] | 289 | script: |
| 290 | - export GALLIUM_DRIVERS="r600,radeonsi" |
| 291 | - .gitlab-ci/meson-build.sh |
Samuel Pitoiset | 7d1c091 | 2019-08-21 11:45:25 +0200 | [diff] [blame] | 292 | - LLVM_VERSION=8 .gitlab-ci/meson-build.sh |
Michel Dänzer | 6897715 | 2019-05-03 10:58:48 +0200 | [diff] [blame] | 293 | - export GALLIUM_DRIVERS="i915,r600" |
Michel Dänzer | 8a19992 | 2019-09-06 17:04:47 +0200 | [diff] [blame] | 294 | - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh |
| 295 | - LLVM_VERSION=7 .gitlab-ci/meson-build.sh |
| 296 | |
| 297 | meson-clover-old-llvm: |
Michel Dänzer | 88319f2 | 2019-09-18 16:17:01 +0200 | [diff] [blame] | 298 | extends: |
| 299 | - meson-clover |
| 300 | - .use-debian-9 |
Michel Dänzer | 8a19992 | 2019-09-06 17:04:47 +0200 | [diff] [blame] | 301 | variables: |
| 302 | UNWIND: "false" |
| 303 | DRI_LOADERS: > |
| 304 | -D glx=disabled |
| 305 | -D egl=false |
| 306 | -D gbm=false |
| 307 | -D platforms=drm,surfaceless |
| 308 | GALLIUM_DRIVERS: "i915,r600" |
| 309 | script: |
Michel Dänzer | 6897715 | 2019-05-03 10:58:48 +0200 | [diff] [blame] | 310 | - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh |
| 311 | - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh |
| 312 | - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh |
Eric Engestrom | 8dab707 | 2019-01-28 18:09:24 +0000 | [diff] [blame] | 313 | |
Michel Dänzer | 82b3009 | 2019-05-03 18:19:25 +0200 | [diff] [blame] | 314 | meson-vulkan: |
| 315 | extends: .meson-build |
| 316 | variables: |
| 317 | UNWIND: "false" |
| 318 | DRI_LOADERS: > |
| 319 | -D glx=disabled |
| 320 | -D gbm=false |
| 321 | -D egl=false |
| 322 | -D platforms=x11,wayland,drm |
| 323 | -D osmesa=none |
| 324 | GALLIUM_ST: > |
| 325 | -D dri3=true |
| 326 | -D gallium-vdpau=false |
| 327 | -D gallium-xvmc=false |
| 328 | -D gallium-omx=disabled |
| 329 | -D gallium-va=false |
| 330 | -D gallium-xa=false |
| 331 | -D gallium-nine=false |
| 332 | -D gallium-opencl=disabled |
| 333 | VULKAN_DRIVERS: intel,amd,freedreno |
Samuel Pitoiset | 7d1c091 | 2019-08-21 11:45:25 +0200 | [diff] [blame] | 334 | LLVM_VERSION: "8" |
Eric Engestrom | 5f8d29a | 2019-05-08 18:17:23 +0200 | [diff] [blame] | 335 | EXTRA_OPTION: > |
| 336 | -D vulkan-overlay-layer=true |
Michel Dänzer | 82b3009 | 2019-05-03 18:19:25 +0200 | [diff] [blame] | 337 | |
Eric Anholt | 030aa6e | 2019-08-07 14:05:51 -0700 | [diff] [blame] | 338 | # While the main point of this build is testing the i386 cross build, |
| 339 | # we also use this one to test some other options that are exclusive |
| 340 | # with meson-main's choices (classic swrast and osmesa) |
Eric Anholt | 11aa32a | 2019-07-11 12:58:28 -0700 | [diff] [blame] | 341 | meson-i386: |
| 342 | extends: .meson-cross |
| 343 | variables: |
Eric Engestrom | 1c82fa0 | 2019-08-09 23:46:50 +0100 | [diff] [blame] | 344 | CROSS: i386 |
Eric Anholt | 11aa32a | 2019-07-11 12:58:28 -0700 | [diff] [blame] | 345 | VULKAN_DRIVERS: intel |
Eric Anholt | 030aa6e | 2019-08-07 14:05:51 -0700 | [diff] [blame] | 346 | DRI_DRIVERS: "swrast" |
| 347 | GALLIUM_DRIVERS: "iris" |
Eric Anholt | 11aa32a | 2019-07-11 12:58:28 -0700 | [diff] [blame] | 348 | EXTRA_OPTION: > |
Eric Anholt | 11aa32a | 2019-07-11 12:58:28 -0700 | [diff] [blame] | 349 | -D vulkan-overlay-layer=true |
Eric Anholt | 030aa6e | 2019-08-07 14:05:51 -0700 | [diff] [blame] | 350 | -D llvm=false |
| 351 | -D osmesa=classic |
Eric Anholt | 11aa32a | 2019-07-11 12:58:28 -0700 | [diff] [blame] | 352 | |
Michel Dänzer | d60b867 | 2019-10-11 11:10:01 +0200 | [diff] [blame] | 353 | .meson-mingw32-x86_64: |
Dylan Baker | d905d9b | 2019-09-19 10:21:51 -0700 | [diff] [blame] | 354 | extends: .meson-build |
| 355 | variables: |
| 356 | UNWIND: "false" |
| 357 | DRI_DRIVERS: "" |
| 358 | GALLIUM_DRIVERS: "swrast" |
| 359 | EXTRA_OPTION: > |
| 360 | -Dllvm=false |
| 361 | -Dosmesa=gallium |
| 362 | --cross-file=.gitlab-ci/x86_64-w64-mingw32 |
| 363 | |
Michel Dänzer | 88e5796 | 2019-09-12 11:45:13 +0200 | [diff] [blame] | 364 | scons: |
Eric Engestrom | d4c6d4d | 2019-01-28 16:30:36 +0000 | [diff] [blame] | 365 | extends: .scons-build |
| 366 | variables: |
| 367 | SCONS_TARGET: "llvm=1" |
| 368 | SCONS_CHECK_COMMAND: "scons llvm=1 check" |
Michel Dänzer | baa5024 | 2019-09-12 11:38:06 +0200 | [diff] [blame] | 369 | script: |
Michel Dänzer | 88e5796 | 2019-09-12 11:45:13 +0200 | [diff] [blame] | 370 | - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check" .gitlab-ci/scons-build.sh |
Michel Dänzer | baa5024 | 2019-09-12 11:38:06 +0200 | [diff] [blame] | 371 | - LLVM_VERSION=6.0 .gitlab-ci/scons-build.sh |
| 372 | - LLVM_VERSION=7 .gitlab-ci/scons-build.sh |
| 373 | - LLVM_VERSION=8 .gitlab-ci/scons-build.sh |
Michel Dänzer | 8a19992 | 2019-09-06 17:04:47 +0200 | [diff] [blame] | 374 | |
| 375 | scons-old-llvm: |
Michel Dänzer | 88319f2 | 2019-09-18 16:17:01 +0200 | [diff] [blame] | 376 | extends: |
| 377 | - scons |
| 378 | - .use-debian-9 |
Michel Dänzer | baa5024 | 2019-09-12 11:38:06 +0200 | [diff] [blame] | 379 | script: |
| 380 | - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh |
| 381 | - LLVM_VERSION=4.0 .gitlab-ci/scons-build.sh |
| 382 | - LLVM_VERSION=5.0 .gitlab-ci/scons-build.sh |
Eric Anholt | 46daaca | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 383 | |
| 384 | .deqp-test: |
Michel Dänzer | eb86cba | 2019-10-10 15:27:17 +0200 | [diff] [blame] | 385 | extends: .use-debian-10 |
Eric Anholt | 46daaca | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 386 | stage: test |
Eric Anholt | 46daaca | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 387 | variables: |
| 388 | GIT_STRATEGY: none # testing doesn't build anything from source |
| 389 | DEQP_SKIPS: deqp-default-skips.txt |
| 390 | script: |
| 391 | # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY |
| 392 | - rm -rf install |
| 393 | - tar -xf artifacts/install.tar |
| 394 | - ./artifacts/deqp-runner.sh |
| 395 | artifacts: |
| 396 | when: on_failure |
| 397 | name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME" |
| 398 | paths: |
| 399 | - results/ |
Michel Dänzer | cccb68b | 2019-09-13 11:13:12 +0200 | [diff] [blame] | 400 | dependencies: |
| 401 | - meson-main |
| 402 | needs: [meson-main] |
Eric Anholt | 46daaca | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 403 | |
| 404 | test-llvmpipe-gles2: |
| 405 | parallel: 4 |
| 406 | variables: |
| 407 | DEQP_VER: gles2 |
| 408 | DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt |
| 409 | LIBGL_ALWAYS_SOFTWARE: "true" |
| 410 | DEQP_RENDERER_MATCH: "llvmpipe" |
| 411 | extends: .deqp-test |
Eric Anholt | 553cd82 | 2019-08-09 10:32:40 -0700 | [diff] [blame] | 412 | |
| 413 | test-softpipe-gles2: |
Michel Dänzer | 128581d | 2019-09-11 18:55:43 +0200 | [diff] [blame] | 414 | extends: test-llvmpipe-gles2 |
Eric Anholt | 553cd82 | 2019-08-09 10:32:40 -0700 | [diff] [blame] | 415 | variables: |
Eric Anholt | 553cd82 | 2019-08-09 10:32:40 -0700 | [diff] [blame] | 416 | DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt |
Eric Anholt | 553cd82 | 2019-08-09 10:32:40 -0700 | [diff] [blame] | 417 | DEQP_RENDERER_MATCH: "softpipe" |
| 418 | GALLIUM_DRIVER: "softpipe" |
Eric Anholt | 553cd82 | 2019-08-09 10:32:40 -0700 | [diff] [blame] | 419 | |
| 420 | # The GLES2 CTS run takes about 8 minutes of CPU time, while GLES3 is |
| 421 | # 25 minutes. Until we can get its runtime down, just do a partial |
| 422 | # (every 10 tests) run. |
| 423 | test-softpipe-gles3-limited: |
| 424 | variables: |
| 425 | DEQP_VER: gles3 |
| 426 | DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt |
| 427 | LIBGL_ALWAYS_SOFTWARE: "true" |
| 428 | DEQP_RENDERER_MATCH: "softpipe" |
| 429 | GALLIUM_DRIVER: "softpipe" |
| 430 | CI_NODE_INDEX: 1 |
| 431 | CI_NODE_TOTAL: 10 |
| 432 | extends: .deqp-test |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 433 | |
Michel Dänzer | 128581d | 2019-09-11 18:55:43 +0200 | [diff] [blame] | 434 | arm64_a630_gles2: |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 435 | extends: .deqp-test |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 436 | image: $DEBIAN_ARM64_IMAGE |
| 437 | variables: |
| 438 | DEQP_VER: gles2 |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 439 | DEQP_RENDERER_MATCH: "FD630" |
| 440 | DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt |
| 441 | DEQP_SKIPS: deqp-freedreno-a630-skips.txt |
| 442 | NIR_VALIDATE: 0 |
| 443 | tags: |
| 444 | - mesa-cheza |
| 445 | dependencies: |
| 446 | - meson-arm64 |
Michel Dänzer | f2b8051 | 2019-09-18 16:28:41 +0200 | [diff] [blame] | 447 | needs: |
| 448 | - meson-arm64 |
| 449 | - test-container:arm64 |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 450 | |
Michel Dänzer | 128581d | 2019-09-11 18:55:43 +0200 | [diff] [blame] | 451 | arm64_a630_gles31: |
| 452 | extends: arm64_a630_gles2 |
| 453 | parallel: 4 |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 454 | variables: |
Michel Dänzer | 128581d | 2019-09-11 18:55:43 +0200 | [diff] [blame] | 455 | DEQP_VER: gles31 |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 456 | |
| 457 | arm64_a630_gles3: |
| 458 | parallel: 6 |
Michel Dänzer | 128581d | 2019-09-11 18:55:43 +0200 | [diff] [blame] | 459 | extends: arm64_a630_gles2 |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 460 | variables: |
| 461 | DEQP_VER: gles3 |
| 462 | |
Michel Dänzer | 128581d | 2019-09-11 18:55:43 +0200 | [diff] [blame] | 463 | arm64_a306_gles2: |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 464 | parallel: 4 |
Michel Dänzer | 128581d | 2019-09-11 18:55:43 +0200 | [diff] [blame] | 465 | extends: arm64_a630_gles2 |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 466 | variables: |
Michel Dänzer | 128581d | 2019-09-11 18:55:43 +0200 | [diff] [blame] | 467 | DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt |
| 468 | DEQP_SKIPS: deqp-default-skips.txt |
| 469 | DEQP_RENDERER_MATCH: "FD307" |
| 470 | tags: |
| 471 | - db410c |