2012-01-07 19:34:41 -08:00
|
|
|
[tox]
|
2012-08-28 15:14:11 -07:00
|
|
|
envlist = py26,py27,pep8
|
2012-01-07 19:34:41 -08:00
|
|
|
|
|
|
|
[testenv]
|
2012-02-25 12:25:56 -08:00
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
2012-08-17 16:14:51 +08:00
|
|
|
LANG=en_US.UTF-8
|
|
|
|
LANGUAGE=en_US:en
|
|
|
|
LC_ALL=C
|
2012-01-07 19:34:41 -08:00
|
|
|
deps = -r{toxinidir}/tools/pip-requires
|
|
|
|
-r{toxinidir}/tools/test-requires
|
2013-01-15 06:40:47 +00:00
|
|
|
commands = python setup.py testr --slowest --testr-args='{posargs}'
|
2012-01-07 19:34:41 -08:00
|
|
|
|
2012-05-05 13:51:32 -07:00
|
|
|
[tox:jenkins]
|
2012-09-26 17:09:10 -07:00
|
|
|
sitepackages = True
|
2012-01-07 19:34:41 -08:00
|
|
|
downloadcache = ~/cache/pip
|
|
|
|
|
|
|
|
[testenv:pep8]
|
2013-01-25 20:34:03 +00:00
|
|
|
deps=
|
|
|
|
pep8==1.3.3
|
|
|
|
pyflakes
|
2012-07-26 08:22:01 -05:00
|
|
|
commands =
|
2013-01-06 19:17:33 -05:00
|
|
|
python tools/hacking.py --doctest
|
2013-01-25 12:10:16 -05:00
|
|
|
python tools/hacking.py --ignore=E12,E711,E721,E712,N403,N404 --show-source \
|
2012-12-06 11:19:17 +02:00
|
|
|
--exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg .
|
2013-01-25 12:10:16 -05:00
|
|
|
python tools/hacking.py --ignore=E12,E711,E721,E712,N403,N404 --show-source \
|
2012-11-09 12:28:46 -05:00
|
|
|
--filename=nova* bin
|
2013-01-25 20:34:03 +00:00
|
|
|
bash tools/unused_imports.sh
|
2012-01-07 19:34:41 -08:00
|
|
|
|
2012-08-15 18:26:41 -04:00
|
|
|
[testenv:pylint]
|
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
|
|
deps = -r{toxinidir}/tools/pip-requires
|
2012-11-12 10:14:35 -05:00
|
|
|
pylint==0.26.0
|
2012-08-15 18:26:41 -04:00
|
|
|
commands = bash tools/lintstack.sh
|
|
|
|
|
2012-12-04 11:52:23 +02:00
|
|
|
[testenv:pyflakes]
|
|
|
|
deps = pyflakes
|
|
|
|
commands = python tools/flakes.py nova
|
|
|
|
|
2012-05-25 15:27:03 -04:00
|
|
|
[testenv:cover]
|
2013-01-15 06:40:47 +00:00
|
|
|
# Also do not run test_coverage_ext tests while gathering coverage as those
|
|
|
|
# tests conflict with coverage.
|
|
|
|
commands =
|
|
|
|
python setup.py testr --coverage \
|
2013-01-21 19:05:51 -08:00
|
|
|
--testr-args='^(?!.*test.*coverage).*$'
|
2012-01-07 19:34:41 -08:00
|
|
|
|
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|