From 69831092b2b368b29178486036e2d6655313763d Mon Sep 17 00:00:00 2001 From: Trey Hunner Date: Mon, 20 May 2013 22:27:24 -0700 Subject: [PATCH] Move coverage configuration into .coveragerc --- .coveragerc | 4 ++++ .travis.yml | 2 +- runtests.sh | 2 +- tox.ini | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..65aaf4d --- /dev/null +++ b/.coveragerc @@ -0,0 +1,4 @@ +[run] +source = model_utils +omit = model_utils/tests/* +branch = 1 diff --git a/.travis.yml b/.travis.yml index 2efabc2..4e22c94 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: diff --git a/runtests.sh b/runtests.sh index 26a6e67..a105e34 100755 --- a/runtests.sh +++ b/runtests.sh @@ -2,4 +2,4 @@ coverage erase tox -coverage html --include=model_utils/* --omit=model_utils/tests/* +coverage html diff --git a/tox.ini b/tox.ini index a66923b..8ced4ea 100644 --- a/tox.ini +++ b/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