mirror of
https://github.com/ae-utbm/sith.git
synced 2024-12-22 15:51:19 +00:00
CI: add coverage report
Signed-off-by: Skia <skia@libskia.so>
This commit is contained in:
parent
9ee5c387c5
commit
0232953260
14
.coveragerc
Normal file
14
.coveragerc
Normal 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
|
@ -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/
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user