CI: add coverage report

Signed-off-by: Skia <skia@libskia.so>
This commit is contained in:
Skia 2017-08-29 15:13:09 +02:00
parent 9ee5c387c5
commit 0232953260
3 changed files with 25 additions and 2 deletions

14
.coveragerc Normal file
View File

@ -0,0 +1,14 @@
[run]
source = .
branch = False
omit =
*test*
*/migrations/*
doc/*
env/*
[report]
show_missing = False
include = *.py
[html]
title = Sith Code Coverage
directory = coverage_report

View File

@ -3,5 +3,11 @@ test:
- apt-get update
- apt-get install -y gettext
- pip install -r requirements.txt
- python manage.py compilemessages
- python manage.py test
- pip install coverage
- ./manage.py compilemessages
- coverage run ./manage.py test
- coverage html
- coverage report
artifacts:
paths:
- coverage_report/

View File

@ -1,3 +1,6 @@
[![pipeline status](https://ae-dev.utbm.fr/ae/Sith/badges/master/pipeline.svg)](https://ae-dev.utbm.fr/ae/Sith/commits/master)
[![coverage report](https://ae-dev.utbm.fr/ae/Sith/badges/master/coverage.svg)](https://ae-dev.utbm.fr/ae/Sith/commits/master)
## Sith AE
### Get started