Move coverage configuration into .coveragerc

This commit is contained in:
Trey Hunner 2013-05-20 22:27:24 -07:00
parent 3ec8a905b3
commit 69831092b2
4 changed files with 7 additions and 3 deletions

4
.coveragerc Normal file
View file

@ -0,0 +1,4 @@
[run]
source = model_utils
omit = model_utils/tests/*
branch = 1

View file

@ -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:

View file

@ -2,4 +2,4 @@
coverage erase
tox
coverage html --include=model_utils/* --omit=model_utils/tests/*
coverage html

View file

@ -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