root(minor): add script to run coverage

This commit is contained in:
Jens Langhammer 2019-12-02 16:43:50 +01:00
parent 4520e3f8b8
commit e6256cb9c8
6 changed files with 7 additions and 4 deletions

2
.gitignore vendored
View File

@ -63,6 +63,7 @@ coverage.xml
*.cover
.hypothesis/
.pytest_cache/
unittest.xml
# Translations
*.mo
@ -184,7 +185,6 @@ dmypy.json
[Ii]nclude
[Ll]ib64
[Ll]ocal
[Ss]cripts
pyvenv.cfg
pip-selfcheck.json

View File

@ -80,9 +80,7 @@ pylint:
- redis:latest
coverage:
script:
- coverage run --concurrency=multiprocessing manage.py test
- coverage combine
- coverage report
- ./scripts/coverage.sh
stage: test
services:
- postgres:latest

5
scripts/coverage.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash -xe
coverage run --concurrency=multiprocessing manage.py test
coverage combine
coverage html
coverage report