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

View File

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