01ee0381fe
This ensures that sphinx doc tests are ran and validated and also runs doc8 to ensure style checks are done and adjusts some of the current examples and code to fix found issues. Also fixes the `get_callback_name` method which needs to check if the __module__ is non-none (since it appears sphinx somehow triggers it being none). Change-Id: I54daecff219a9e9be71ff382d36fc2d5e67360cf
38 lines
843 B
INI
38 lines
843 B
INI
[tox]
|
|
minversion = 1.6
|
|
skipsdist = True
|
|
envlist = docs,py33,py34,py26,py27,pypy,pep8,venv
|
|
|
|
[tox:jenkins]
|
|
downloadcache = ~/cache/pip
|
|
|
|
[testenv:docs]
|
|
basepython = python2.7
|
|
commands = python setup.py build_sphinx
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install {opts} {packages}
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands = python setup.py test --slowest --testr-args='{posargs}'
|
|
|
|
[testenv:pep8]
|
|
commands = flake8 {posargs}
|
|
|
|
[testenv:py27]
|
|
commands =
|
|
python setup.py testr --slowest --testr-args='{posargs}'
|
|
sphinx-build -b doctest doc/source doc/build
|
|
doc8 doc/source
|
|
|
|
[testenv:venv]
|
|
basepython = python2.7
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
show-source = True
|
|
builtins = _
|
|
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build
|