summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorStephen Finucane <stephen@that.guru>2017-10-26 18:11:13 +0100
committerStephen Finucane <stephen@that.guru>2017-12-18 20:10:18 +0000
commit5d812ccefc034e8cc93223454f3e6fa36528546a (patch)
treea48bffa576f18713ff85e37613ab2e2b98da3cc5 /tox.ini
parentc8d56236c9286adca9664782debf3b1c768ef92d (diff)
downloadsphinx-git-5d812ccefc034e8cc93223454f3e6fa36528546a.tar.gz
tox: Add 'coverage' target
Enabling coverage results in an increase in runtime, and while this may be an acceptable compromise for some developers, it's not necessarily something we need to run all the time. Move it to a separate target so it can be run only by those who wish to use it. Signed-off-by: Stephen Finucane <stephen@that.guru>
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini5
1 files changed, 3 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index 051b56381..05074761e 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,6 @@
[tox]
minversion=2.0
-envlist=docs,flake8,mypy,py{27,34,35,36},pypy,du{11,12,13,14}
+envlist=docs,flake8,mypy,coverage,py{27,34,35,36,py},du{11,12,13,14}
[testenv]
passenv = https_proxy http_proxy no_proxy
@@ -12,8 +12,9 @@ deps =
.[test,websupport]
setenv =
SPHINX_TEST_TEMPDIR = {envdir}/testbuild
+ coverage: PYTEST_ADDOPTS = --cov sphinx
commands=
- {envpython} -Wall tests/run.py --cov sphinx --durations 25 {posargs}
+ {envpython} -Wall tests/run.py --durations 25 {posargs}
[testenv:du11]
deps=