summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorVarac <varac@leap.se>2017-06-29 16:25:22 +0200
committerVarac <varac@leap.se>2017-06-30 17:30:45 +0200
commit3f61221b48730be56ddb19d31d79fc225c8626c7 (patch)
treeb038a294e44bad6f7d11e62c119bf65d93dc60b0 /.gitlab-ci.yml
parent9f315d37968f0135deb3fadcdf6cf54278153de0 (diff)
[CI] Run setup.sh when running CI tests locally
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 21ea1f73..0e90ce75 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