anvil/tox.ini
Monty Taylor 1fad3b48b0 Add docs environment to tox.ini
As per the governance resolution https://review.openstack.org/119875,
projects should have a docs environment in their tox.ini testing
interface. Add one.

Change-Id: I475fd2df8c3ff6b8bc1096085d002fbbf6b4a670
2014-09-08 13:48:57 -07:00

45 lines
999 B
INI

[tox]
skipdist = True
envlist = py26,py27,pep8,pylint
[testenv]
usedevelop = True
install_command = pip install {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
# FIXME(harlowja): overriding the hash seed with a constant is a
# workaround for bug 1348818
PYTHONHASHSEED=0
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = nosetests {posargs}
{toxinidir}/tools/verify_yaml
[tox:jenkins]
downloadcache = ~/cache/pip
[testenv:pep8]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = flake8 {posargs}
[testenv:pylint]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = pylint --rcfile=pylintrc anvil
[testenv:venv]
commands = {posargs}
[flake8]
ignore = H102,H302,E501
builtins = _
exclude = .venv,.tox,dist,doc,*egg,.git,build
[nosetests]
verbosity = 2
detailed-errors = 1
[testenv:docs]
commands = python setup.py build_sphinx