From d639e9170b16c57bece31170bb74e40f9ae25c97 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=B6ren=20Henning?= <soeren.henning@email.uni-kiel.de>
Date: Mon, 1 Mar 2021 17:35:16 +0100
Subject: [PATCH] Add needs reference

---
 .gitlab-ci.yml | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8f7eb268c..7314b9705 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -33,6 +33,8 @@ build-benchmarks:
 test-benchmarks:
   stage: test
   extends: .benchmarks
+  needs:
+    - build-benchmarks
   script: ./gradlew test --continue
   artifacts:
     reports:
@@ -42,6 +44,8 @@ test-benchmarks:
 checkstyle-benchmarks:
   stage: check
   extends: .benchmarks
+  needs:
+    - test-benchmarks
   script: ./gradlew checkstyle --continue
   artifacts:
     paths:
@@ -52,6 +56,8 @@ checkstyle-benchmarks:
 pmd-benchmarks:
   stage: check
   extends: .benchmarks
+  needs:
+    - test-benchmarks
   script: ./gradlew pmd --continue
   artifacts:
     paths:
@@ -62,6 +68,8 @@ pmd-benchmarks:
 spotbugs-benchmarks:
   stage: check
   extends: .benchmarks
+  needs:
+    - test-benchmarks
   script: ./gradlew spotbugs --continue
   artifacts:
     paths:
@@ -72,6 +80,10 @@ spotbugs-benchmarks:
 .deploy-benchmarks:
   stage: deploy
   extends: .benchmarks
+  needs:
+    - checkstyle-benchmarks
+    - pmd-benchmarks
+    - spotbugs-benchmarks
   tags:
     - exec-dind
   # see https://docs.gitlab.com/ee/ci/docker/using_docker_build.html#tls-enabled
-- 
GitLab