Skip to content

Commit

Permalink
tox.ini: use extras, use python3 for docs
Browse files Browse the repository at this point in the history
We still need to use Python 2 for coverage because we have a bunch of
Python-2-only fallback paths in exceptionformatter.py.
  • Loading branch information
mgedmin committed Apr 10, 2020
1 parent 085df86 commit 8b6a282
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tox.ini
Expand Up @@ -6,8 +6,7 @@ envlist =
commands =
zope-testrunner --test-path=src []
sphinx-build -b doctest -d {envdir}/.cache/doctrees docs {envdir}/.cache/doctest
deps =
.[test,docs]
extras = test,docs

[testenv:coverage]
usedevelop = true
Expand All @@ -16,14 +15,13 @@ basepython =
commands =
coverage run -m zope.testrunner --test-path=src []
coverage run -a -m sphinx -b doctest -d {envdir}/.cache/doctrees docs {envdir}/.cache/doctest
coverage report --fail-under=100
coverage report -m --fail-under=100
deps =
{[testenv]deps}
coverage

[testenv:docs]
basepython =
python2.7
python3
commands =
sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html
sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html
sphinx-build -b doctest -d docs/_build/doctrees docs docs/_build/doctest

0 comments on commit 8b6a282

Please sign in to comment.