2011-12-30 14:54:19 -08:00
|
|
|
[tox]
|
2012-05-16 10:40:33 -04:00
|
|
|
envlist = py26,py27,pep8
|
2011-12-30 14:54:19 -08:00
|
|
|
|
|
|
|
[testenv]
|
2012-05-16 10:40:33 -04:00
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
2012-12-24 19:58:11 -06:00
|
|
|
LANG=en_US.UTF-8
|
|
|
|
LANGUAGE=en_US:en
|
|
|
|
LC_ALL=C
|
|
|
|
|
2011-12-30 14:54:19 -08:00
|
|
|
deps = -r{toxinidir}/tools/pip-requires
|
2012-05-16 10:40:33 -04:00
|
|
|
-r{toxinidir}/tools/test-requires
|
2012-12-24 19:58:11 -06:00
|
|
|
commands = python setup.py testr --testr-args='{posargs}'
|
2011-12-30 14:54:19 -08:00
|
|
|
|
|
|
|
[testenv:pep8]
|
2013-02-01 12:13:19 -08:00
|
|
|
deps = pep8==1.3.3
|
|
|
|
commands =
|
|
|
|
pep8 --ignore=E12,E711,E721,E712 --show-source \
|
2013-03-25 16:41:46 -04:00
|
|
|
--exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build .
|
2011-12-30 14:54:19 -08:00
|
|
|
|
2012-05-16 10:40:33 -04:00
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
|
|
|
|
|
|
|
[testenv:cover]
|
2012-12-24 19:58:11 -06:00
|
|
|
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
2012-05-16 10:40:33 -04:00
|
|
|
|
|
|
|
[tox:jenkins]
|
|
|
|
downloadcache = ~/cache/pip
|