gitlab CI: use a minimal alpine image for the commit checks
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 11 Dec 2019 01:50:10 +0000 (11:50 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 11 Dec 2019 02:25:56 +0000 (12:25 +1000)
This runs at the same time as the other images being created so it'll fail if
the image itself doesn't exist yet. Since we only need pip here, let's use
alpine and install the two packages we need.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
.gitlab-ci.yml

index 9585a3d9e75dd4e555dd56796b6034116f469113..3999d627a223f1251f25bea38b68ae7bee40a592 100644 (file)
@@ -130,8 +130,10 @@ variables:
 
 
 check-commit:
-  image: $FEDORA_CONTAINER_IMAGE
+  image: golang:alpine
   stage: prep
+  before_script:
+    - apk add python3 git
   script:
     - pip3 install GitPython
     - pip3 install pytest
@@ -144,7 +146,6 @@ check-commit:
     - master@libinput/libinput
   variables:
     GIT_DEPTH: 100
-    FEDORA_VERSION: 31
   artifacts:
     reports:
       junit: results.xml