Build docs in tox

This commit is contained in:
Julian Berman
2012-11-30 12:27:44 -05:00
parent b1a1a5b525
commit ac034f9ced

10
tox.ini
View File

@@ -1,15 +1,21 @@
[tox]
envlist = py26, py27, pypy, py32, py33
envlist = py26, py27, pypy, py32, py33, docs
[testenv]
commands =
nosetests -s tests.py
{envpython} -m doctest README.rst
deps =
mock
nose
[testenv:docs]
basepython = python
changedir = doc
deps = sphinx
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:py26]
deps =
mock