gitlab-ci/lava: Add needs: for container image to test jobs
authorMichel Dänzer <mdaenzer@redhat.com>
Tue, 8 Oct 2019 15:50:07 +0000 (17:50 +0200)
committerMichel Dänzer <michel@daenzer.net>
Wed, 9 Oct 2019 14:19:56 +0000 (16:19 +0200)
Without this, the test jobs could spuriously run after the container
job failed or was cancelled, even if the build job didn't run at all.

Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
.gitlab-ci/lava-gitlab-ci.yml

index 9aaeddd8db5add8acf17a79efd0e38a3dd60c25e..1f4f17343c01f0713d12988ae460ce342a93b0bb 100644 (file)
@@ -180,7 +180,9 @@ lava-build:arm64:
 panfrost-t760-test:armhf:
   image: $CI_REGISTRY_IMAGE/debian/$LAVA_DEBIAN_VERSION:armhf-$LAVA_IMAGE_TAG
   extends: .lava-test
-  needs: ["lava-build:armhf"]
+  needs:
+    - lava-container:armhf
+    - lava-build:armhf
   dependencies:
     - lava-build:armhf
   tags:
@@ -189,7 +191,9 @@ panfrost-t760-test:armhf:
 panfrost-t860-test:arm64:
   image: $CI_REGISTRY_IMAGE/debian/$LAVA_DEBIAN_VERSION:arm64-$LAVA_IMAGE_TAG
   extends: .lava-test
-  needs: ["lava-build:arm64"]
+  needs:
+    - lava-container:arm64
+    - lava-build:arm64
   dependencies:
     - lava-build:arm64
   tags: