docker: add an image to run the tests of the manifest
authorJordan Petridis <jordan@centricular.com>
Fri, 30 Nov 2018 18:43:39 +0000 (20:43 +0200)
committerJordan Petridis <jordan@centricular.com>
Fri, 30 Nov 2018 18:43:39 +0000 (20:43 +0200)
So in the futuere we can avoid installing pytest each time

.gitlab-ci.yml
docker/test_manifest/Dockerfile [new file with mode: 0644]

index 375dec4..edd3061 100644 (file)
@@ -73,6 +73,18 @@ alpine amd64 manifest builder docker:
       - 'docker/build_manifest/*'
       - 'gitlab/build_manifest.py'
 
+test manifest amd64 docker:
+  stage: "build docker"
+  variables:
+    ARCH: "amd64"
+    TAG: "build-manifest"
+    CONTEXT_DIR: "docker/test_manifest/"
+    DOCKERFILE: "docker/test_manifest/Dockerfile"
+  extends: .base
+  only:
+    changes:
+      - 'docker/test_manifest/*'
+
 gst-indent amd64 docker:
   stage: "build docker"
   variables:
diff --git a/docker/test_manifest/Dockerfile b/docker/test_manifest/Dockerfile
new file mode 100644 (file)
index 0000000..6ac8158
--- /dev/null
@@ -0,0 +1,7 @@
+FROM fedora
+
+RUN dnf install -y \
+    python3-pytest \
+    python3-requests \
+    python3-pytest-cov \
+    && rm -rf /var/cache/dnf /var/log/dnf*
\ No newline at end of file