root(minor): add script to run coverage
This commit is contained in:
parent
4520e3f8b8
commit
e6256cb9c8
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -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
|
||||
|
||||
|
|
|
@ -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
5
scripts/coverage.sh
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash -xe
|
||||
coverage run --concurrency=multiprocessing manage.py test
|
||||
coverage combine
|
||||
coverage html
|
||||
coverage report
|
Reference in a new issue