diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7edde17b374a7c5cb7038a5ff93e01f7ba63e36b..5947ffc7825976ad5326d762e09117cfb1032a98 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,6 +14,8 @@ build:
 # run tests using the binary built before
 test:
   stage: test
+  dependencies:
+    - build
   script:
     - cd build
     - ./run gaudirun.py '$EXAMPLESROOT/options/tut_detsim.py'