Skip to content

Commit

Permalink
tox: add doc environment
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mgeisler committed Mar 18, 2014
1 parent 9e1bd5e commit 050b539
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

0 comments on commit 050b539

Please sign in to comment.