gitlab-ci: Declare needs: for stretch docker image
authorMichel Dänzer <mdaenzer@redhat.com>
Wed, 18 Sep 2019 14:17:01 +0000 (16:17 +0200)
committerMichel Dänzer <michel@daenzer.net>
Mon, 30 Sep 2019 07:17:00 +0000 (09:17 +0200)
This allows the *-old-llvm jobs to run before the buster docker images
are ready.

v2:
* Use - list syntax instead of [] (Eric Engestrom)

Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
.gitlab-ci.yml

index 20f216d001c8a6187bd96812f391b74aaa87a8e1..7506129b9249146d8dd47263f4bda48a7b871034 100644 (file)
@@ -73,6 +73,11 @@ debian-9:
     DEBIAN_IMAGE: $STRETCH_IMAGE
     DEBIAN_EXEC: 'bash .gitlab-ci/debian-stretch-install.sh'
 
+.use-debian-9:
+  image: $STRETCH_IMAGE
+  needs:
+    - debian-9
+
 # Builds a Docker image with the native environment and VK-GL-CTS for testing.
 test-container:arm64:
   extends:
@@ -277,8 +282,9 @@ meson-clover:
     - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
 
 meson-clover-old-llvm:
-  extends: meson-clover
-  image: $STRETCH_IMAGE
+  extends:
+    - meson-clover
+    - .use-debian-9
   variables:
     UNWIND: "false"
     DRI_LOADERS: >
@@ -343,8 +349,9 @@ scons:
     - LLVM_VERSION=8 .gitlab-ci/scons-build.sh
 
 scons-old-llvm:
-  extends: scons
-  image: $STRETCH_IMAGE
+  extends:
+    - scons
+    - .use-debian-9
   script:
     - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
     - LLVM_VERSION=4.0 .gitlab-ci/scons-build.sh