diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 21ea1f73296e1caa03ddf16b651f33f2da931594..0e90ce75b7cce127b0059182889241a2b6895828 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -12,6 +12,9 @@ cache:
 
 before_script:
   - cd tests/platform-ci
+  # Check if running locally ($CI_PROJECT_ID is 0 then) and run setup.sh in
+  # this case
+  - if [ "$CI_PROJECT_ID" = "0" ]; then ./setup.sh; fi
 
 stages:
   - setup