gitlab CI: move the pip dependencies to before_script
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 4 Jun 2020 00:48:04 +0000 (10:48 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 4 Jun 2020 00:48:04 +0000 (10:48 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
.gitlab-ci.yml
.gitlab-ci/ci.template

index e9e0be10a59456e19036273888179f0ce497aa3b..875a7be4777f784b54d86cde7e071e72e620967d 100644 (file)
@@ -165,9 +165,9 @@ check-commit:
   stage: prep
   before_script:
     - apk add python3 py-pip git
-  script:
     - pip3 install GitPython
     - pip3 install pytest
+  script:
     - |
       pytest --junitxml=results.xml \
              --tb=line \
index db3f8350030c2a521e62850ef5dabfa7fe213fda..45baa637d7a4158415ef54123f1c52771a8b4733 100644 (file)
@@ -102,9 +102,9 @@ check-commit:
   stage: prep
   before_script:
     - apk add python3 py-pip git
-  script:
     - pip3 install GitPython
     - pip3 install pytest
+  script:
     - |
       pytest --junitxml=results.xml \
              --tb=line \