cloud-init/tox.ini
Daniel Watkins 765fe3c1f7 Move required tox version down to 1.6.
Change-Id: I9348711ea9df8121868fd866aae3a1869dab1339
2015-06-23 14:52:51 -06:00

41 lines
1010 B
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 = nosetests {posargs}
[testenv:py27-coverage]
commands = nosetests --with-coverage --cover-erase --cover-package=cloudinit --cover-min-percentage=90 --cover-html {posargs}
[testenv:py34-coverage]
commands = nosetests --with-coverage --cover-erase --cover-package=cloudinit --cover-min-percentage=90 --cover-html {posargs}
[testenv:pep8]
commands = flake8 {posargs}
[testenv:docs]
commands =
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