docker: add an image to run the tests of the manifest

So in the futuere we can avoid installing pytest each time
This commit is contained in:
Jordan Petridis 2018-11-30 20:43:39 +02:00
parent e87e1fb6ca
commit 8683c2940b
No known key found for this signature in database
GPG key ID: 902CC06D159744F5
2 changed files with 19 additions and 0 deletions

View 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:

View file

@ -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*