Adding a tox environment for docs

This change adds a new tox environment for building the docs, it also
brings the sphinx package into the test requirements.

The docs can now be generated by typing `tox -e docs`.

* adding doc environment to tox.ini
* adding sphinx to test-requirements.txt
This commit is contained in:
Michael McCune 2015-06-03 15:22:19 -04:00
parent 3e88ba7c8c
commit 30b7f5f0e9
2 changed files with 9 additions and 1 deletions

View File

@ -3,3 +3,4 @@ tox
testrepository
coverage
hacking
sphinx

View File

@ -1,7 +1,7 @@
[tox]
minversion = 1.6
skipsdist = True
envlist = py27,py33,py34,pep8,limit,failskip
envlist = py27,py33,py34,pep8,limit,failskip,docs
[testenv]
deps = -r{toxinidir}/requirements.txt
@ -29,6 +29,13 @@ commands = {toxinidir}/test-failskip.sh
[testenv:cover]
commands = python setup.py testr --coverage --testr-args="{posargs}"
[testenv:docs]
commands =
rm -rf doc/build
python setup.py build_sphinx
whitelist_externals =
rm
[flake8]
ignore = H405,E126
exclude=.venv,.git,.tox,dist,*egg,*.egg-info,build,examples,docs