diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 43de815cd90fd67b9e571c222ef5ba0fec15fac1..e2eae7725b851f00cfa283e242e43fc6e2e45ccc 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -27,6 +27,7 @@ variables:
 
 stages:
   - setup
+  - test
 
 # Build a docker image in which tests for this repository can run
 build-testenv:
@@ -50,6 +51,8 @@ build-testenv:
 
 # run integration tests
 test:
+  dependencies:
+    - build-testenv
   tags: [ docker ]
   stage: test
   script: