From 050b53954191e100f38977d4b89f38d715e0bcfb Mon Sep 17 00:00:00 2001 From: Martin Geisler Date: Tue, 18 Mar 2014 10:37:35 +0100 Subject: [PATCH] tox: add doc environment Using tox to run Sphinx makes it easier to setup Jenkins since no setup is needed: Jenkins already runs tox on all the default environments. --- tox.ini | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 89d01ab..7f28b49 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py27, py3, pep8, pyflakes, full +envlist = py27, py3, pep8, pyflakes, full, doc [testenv] deps = -r{toxinidir}/test-requirements.txt @@ -19,3 +19,9 @@ commands = pyflakes zpm setup.py zpmlib [testenv:full] commands = py.test --cov zpmlib --cov-report html --junit-xml junit.xml + +[testenv:doc] +basepython = python +changedir = doc +deps = sphinx +commands = sphinx-build -d _build/doctrees . _build/html