diff options
author | Jason Madden <jamadden@gmail.com> | 2017-11-02 11:28:46 -0500 |
---|---|---|
committer | Jason Madden <jamadden@gmail.com> | 2017-11-02 11:28:46 -0500 |
commit | a8bb76bc054662905d106a1a716538a00ef911b7 (patch) | |
tree | e594aa5d63ae93feda69a4113f24c71b25254d80 /tox.ini | |
parent | 0aa5944a718040a77174857521ab70e5b566a4e8 (diff) | |
download | zope-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.ini | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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 |