summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorStephen Finucane <stephen@that.guru>2017-10-21 15:52:46 +0100
committerStephen Finucane <stephen@that.guru>2017-12-24 21:24:41 +0000
commita3f9935d958197a3c0963cec97755db1ff32a3a3 (patch)
tree50783f8d101d7bfc7cc16f81ec202947fb4d5718 /tox.ini
parenta9efb2517a0ccbd932f7e6be3e8984d78dc763b8 (diff)
downloadsphinx-git-a3f9935d958197a3c0963cec97755db1ff32a3a3.tar.gz
travis: Enable codecov coverage
This necessitates adding some basic coverage-py configuration [1] and making sure the pytest-cov plugin uses said configuration [2]. Badges are included. Note that we do not run the 'coverage' tox target, which is reserved for users. [1] https://github.com/codecov/example-python [2] https://bitbucket.org/ned/coveragepy/issues/512/ Signed-off-by: Stephen Finucane <stephen@that.guru>
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini2
1 files changed, 1 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 4b462d612..5ff3e9f33 100644
--- a/tox.ini
+++ b/tox.ini
@@ -22,7 +22,7 @@ deps =
du14: docutils==0.14
setenv =
SPHINX_TEST_TEMPDIR = {envdir}/testbuild
- coverage: PYTEST_ADDOPTS = --cov sphinx
+ coverage: PYTEST_ADDOPTS = --cov sphinx --cov-config {toxinidir}/setup.cfg
commands=
{envpython} -Wall tests/run.py --durations 25 {posargs}