Skip to content
Snippets Groups Projects
Commit 9142cc2b authored by Benjamin Hättasch's avatar Benjamin Hättasch
Browse files

Add coverage check to GitLab CI

parent 3d1185bb
No related branches found
No related tags found
No related merge requests found
......@@ -35,4 +35,13 @@ test:
script:
- source venv/bin/activate
- echo "GRANT ALL on *.* to '${MYSQL_USER}';"| mysql -u root --password="${MYSQL_ROOT_PASSWORD}" -h mysql
- python manage.py test --settings AKPlanning.settings_ci
- pip install pytest-cov
- coverage run --source='.' manage.py test --settings AKPlanning.settings_ci
- coverage report
- coverage xml
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
artifacts:
reports:
coverage_report:
coverage_format: cobertura
path: coverage.xml
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment