mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-03-16 20:00:23 +00:00
Move coverage configuration into .coveragerc
This commit is contained in:
parent
3ec8a905b3
commit
69831092b2
4 changed files with 7 additions and 3 deletions
4
.coveragerc
Normal file
4
.coveragerc
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
[run]
|
||||
source = model_utils
|
||||
omit = model_utils/tests/*
|
||||
branch = 1
|
||||
|
|
@ -16,7 +16,7 @@ install:
|
|||
- sh -c "if [ '$SOUTH' = '1' ]; then pip install South==0.7.6; fi"
|
||||
|
||||
script:
|
||||
- coverage run -a --branch --include="model_utils/*" --omit="model_utils/tests/*" setup.py test
|
||||
- coverage run -a setup.py test
|
||||
- coverage report
|
||||
|
||||
matrix:
|
||||
|
|
|
|||
|
|
@ -2,4 +2,4 @@
|
|||
|
||||
coverage erase
|
||||
tox
|
||||
coverage html --include=model_utils/* --omit=model_utils/tests/*
|
||||
coverage html
|
||||
|
|
|
|||
2
tox.ini
2
tox.ini
|
|
@ -9,7 +9,7 @@ envlist =
|
|||
deps =
|
||||
South == 0.7.6
|
||||
coverage == 3.6
|
||||
commands = coverage run -a --branch setup.py test
|
||||
commands = coverage run -a setup.py test
|
||||
|
||||
[testenv:py26-1.4]
|
||||
basepython = python2.6
|
||||
|
|
|
|||
Loading…
Reference in a new issue