jail2ban/.gitlab-ci.yml

18 lines
393 B
YAML

run tests:
stage: test
image: python:3.8
script:
- pip install pytest pytest-cov pytest-mock pytest-flask
- pip install Flask-HTTPAuth
- coverage run -m pytest --junitxml=report.xml
- coverage report
- coverage xml
coverage: '/^TOTAL.+?(\d+\%)$/'
artifacts:
when: always
reports:
cobertura: coverage.xml
junit: report.xml
tags:
- docker