
This avoid modules that have been moved/removed from continuing to have documentation generated for them. We use git clean to allow us to have other files in there. Possibly not an issue on the build hosts, but definitely irritating locally. Change-Id: I3403e8227913904a25b6a0866adfcc628d60419e
43 lines
1.2 KiB
INI
43 lines
1.2 KiB
INI
[tox]
|
|
minversion = 1.6
|
|
skipsdist = True
|
|
envlist = py27, py34, docs, pep8, py27-coverage, py34-coverage
|
|
|
|
[tox:jenkins]
|
|
downloadcache = ~/cache/pip
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
# LC_ALL see https://github.com/gabrielfalcao/HTTPretty/issues/223
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
LC_ALL = en_US.utf-8
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/requirements.txt
|
|
commands = {envpython} {toxinidir}/tools/noproxy nosetests {posargs}
|
|
|
|
[testenv:py27-coverage]
|
|
commands = {envpython} {toxinidir}/tools/noproxy nosetests --with-coverage --cover-erase --cover-package=cloudinit --cover-min-percentage=90 --cover-html {posargs}
|
|
|
|
[testenv:py34-coverage]
|
|
commands = {envpython} {toxinidir}/tools/noproxy nosetests --with-coverage --cover-erase --cover-package=cloudinit --cover-min-percentage=90 --cover-html {posargs}
|
|
|
|
[testenv:pep8]
|
|
commands = flake8 {posargs}
|
|
|
|
[testenv:docs]
|
|
whitelist_externals = git
|
|
commands =
|
|
git clean -fx doc/source/api
|
|
python setup.py build_sphinx
|
|
doc8 doc/source
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
builtins = _
|
|
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|
|
|
|
# TODO(harlowja): fix these up...
|
|
ignore = H102,H104,H105
|