diff options
-rw-r--r-- | .gitlab-ci.yml | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 795dbfb..a951333 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,6 +3,7 @@ stages: - build docker-build-master: + needs: [ "test", "coverage" ] image: docker:latest stage: build services: @@ -17,6 +18,7 @@ docker-build-master: - master docker-build: + needs: [ "test", "coverage" ] image: docker:latest stage: build services: @@ -37,9 +39,17 @@ test: script: - pip install -r dev-requirements.txt - pytest -n 4 --junitxml=report.xml + artifacts: + reports: + junit: report.xml + +coverage: + image: python:3-alpine + stage: test + script: + - pip install -r dev-requirements.txt - coverage run -m pytest - coverage xml -o cobertura.xml artifacts: reports: cobertura: cobertura.xml - junit: report.xml |