summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorJason Madden <jamadden@gmail.com>2017-11-02 11:28:46 -0500
committerJason Madden <jamadden@gmail.com>2017-11-02 11:28:46 -0500
commita8bb76bc054662905d106a1a716538a00ef911b7 (patch)
treee594aa5d63ae93feda69a4113f24c71b25254d80 /tox.ini
parent0aa5944a718040a77174857521ab70e5b566a4e8 (diff)
downloadzope-pagetemplate-a8bb76bc054662905d106a1a716538a00ef911b7.tar.gz
Build documents with Sphinx for RTD
Fixes #8 Run doctests with Sphinx on all versions as well.
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini13
1 files changed, 11 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index 90869b2..8a26210 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,12 +1,13 @@
[tox]
envlist =
- py27,py34,py35,py36,pypy,pypy3,coverage
+ py27,py34,py35,py36,pypy,pypy3,coverage,docs
[testenv]
commands =
zope-testrunner --test-path=src []
+ sphinx-build -b doctest -d {envdir}/doctrees docs {envdir}/doctest
deps =
- .[test]
+ .[test,docs]
[testenv:coverage]
usedevelop = true
@@ -14,7 +15,15 @@ basepython =
python2.7
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
deps =
{[testenv]deps}
coverage
+
+[testenv:docs]
+basepython =
+ python2.7
+commands =
+ sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html
+ sphinx-build -b doctest -d docs/_build/doctrees docs docs/_build/doctest