2011-12-30 14:03:15 -08:00
|
|
|
[tox]
|
2012-02-06 13:15:38 +00:00
|
|
|
envlist = py26,py27,pep8
|
2011-12-30 14:03:15 -08:00
|
|
|
|
|
|
|
[testenv]
|
2012-02-06 13:15:38 +00:00
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
2012-06-03 09:54:51 -04:00
|
|
|
NOSE_WITH_OPENSTACK=1
|
|
|
|
NOSE_OPENSTACK_COLOR=1
|
|
|
|
NOSE_OPENSTACK_RED=0.05
|
|
|
|
NOSE_OPENSTACK_YELLOW=0.025
|
|
|
|
NOSE_OPENSTACK_SHOW_ELAPSED=1
|
2012-06-20 15:24:17 +00:00
|
|
|
NOSE_OPENSTACK_STDOUT=1
|
2011-12-30 14:03:15 -08:00
|
|
|
deps = -r{toxinidir}/tools/pip-requires
|
2012-02-25 17:24:39 -08:00
|
|
|
-r{toxinidir}/tools/test-requires
|
2012-06-03 09:54:51 -04:00
|
|
|
commands = nosetests {posargs}
|
|
|
|
|
|
|
|
[tox:jenkins]
|
|
|
|
downloadcache = ~/cache/pip
|
2011-12-30 14:03:15 -08:00
|
|
|
|
|
|
|
[testenv:pep8]
|
2012-09-18 10:02:59 +08:00
|
|
|
deps = pep8==1.3.3
|
2012-11-09 12:56:25 -05:00
|
|
|
commands =
|
|
|
|
pep8 --ignore=E125,E126,E711,E712 --repeat --show-source --exclude=.venv,.tox,dist,doc,openstack .
|
|
|
|
pep8 --ignore=E125,E126,E711,E712 --repeat --show-source --filename=glance* bin
|
2011-12-30 14:03:15 -08:00
|
|
|
|
2012-02-06 13:15:38 +00:00
|
|
|
[testenv:cover]
|
2012-06-03 09:54:51 -04:00
|
|
|
setenv = NOSE_WITH_COVERAGE=1
|
2012-02-06 13:15:38 +00:00
|
|
|
|
2012-02-10 23:38:27 -08:00
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|