2012-01-07 19:34:41 -08:00
|
|
|
[tox]
|
2013-06-01 16:45:45 -05:00
|
|
|
envlist = py26,py27,py33,pep8
|
2012-01-07 19:34:41 -08:00
|
|
|
|
|
|
|
[testenv]
|
2013-02-07 21:39:31 -08:00
|
|
|
sitepackages = True
|
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
|
2013-07-10 13:55:53 -04:00
|
|
|
deps = -U
|
|
|
|
-r{toxinidir}/requirements.txt
|
2013-05-22 20:12:08 +00:00
|
|
|
-r{toxinidir}/test-requirements.txt
|
2013-03-06 16:00:37 -05:00
|
|
|
commands =
|
|
|
|
python tools/patch_tox_venv.py
|
|
|
|
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-05-17 12:54:12 -07:00
|
|
|
sitepackages = False
|
|
|
|
commands =
|
2013-05-28 08:12:58 +03:00
|
|
|
flake8 {posargs}
|
2013-07-23 09:02:02 +09:00
|
|
|
{toxinidir}/tools/config/check_uptodate.sh
|
2012-01-07 19:34:41 -08:00
|
|
|
|
2012-08-15 18:26:41 -04:00
|
|
|
[testenv:pylint]
|
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
|
|
commands = bash tools/lintstack.sh
|
|
|
|
|
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.
|
2013-03-06 16:00:37 -05:00
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
2013-01-15 06:40:47 +00:00
|
|
|
commands =
|
2013-03-06 16:00:37 -05:00
|
|
|
python tools/patch_tox_venv.py
|
2013-01-15 06:40:47 +00:00
|
|
|
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}
|
2013-05-17 12:54:12 -07:00
|
|
|
|
|
|
|
[flake8]
|
2013-07-24 11:54:46 -04:00
|
|
|
# TODO Hacking 0.6 checks to fix
|
|
|
|
# H102 Apache 2.0 license header not found
|
|
|
|
# H501 Do not use locals() for string formatting
|
|
|
|
|
2013-07-27 09:04:22 -07:00
|
|
|
ignore = E121,E122,E123,E124,E126,E127,E128,E711,E712,H102,H302,H303,H404,F403,H501,F811,F841,N309
|
2013-07-04 16:56:43 +01:00
|
|
|
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,*plugins/xenserver*,tools
|
2013-05-17 12:54:12 -07:00
|
|
|
|
|
|
|
[hacking]
|
|
|
|
local-check-factory = nova.hacking.checks.factory
|