2012-09-25 08:00:23 +01:00
|
|
|
[tox]
|
2012-12-04 16:41:59 +00:00
|
|
|
envlist = py26,py27,pep8,pyflakes
|
2012-11-18 02:21:08 +00:00
|
|
|
minversion = 1.4.0
|
2012-09-25 08:00:23 +01:00
|
|
|
|
2012-11-05 15:07:25 +00:00
|
|
|
[tox:jenkins]
|
|
|
|
downloadcache = ~/cache/pip
|
|
|
|
|
2012-09-25 08:00:23 +01:00
|
|
|
[testenv]
|
2012-12-11 06:10:14 -08:00
|
|
|
deps = -r{toxinidir}/tools/setup-requires
|
|
|
|
-r{toxinidir}/tools/pip-requires
|
2012-11-01 02:49:50 +00:00
|
|
|
-r{toxinidir}/tools/pip-options
|
2012-09-25 08:00:23 +01:00
|
|
|
-r{toxinidir}/tools/test-requires
|
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
|
|
NOSE_WITH_OPENSTACK=1
|
|
|
|
NOSE_OPENSTACK_COLOR=1
|
|
|
|
NOSE_OPENSTACK_RED=0.05
|
|
|
|
NOSE_OPENSTACK_YELLOW=0.025
|
|
|
|
NOSE_OPENSTACK_SHOW_ELAPSED=1
|
2012-11-18 03:03:58 +00:00
|
|
|
commands = nosetests {posargs}
|
2012-10-25 17:56:01 +01:00
|
|
|
sitepackages = False
|
2012-09-25 08:00:23 +01:00
|
|
|
|
|
|
|
[testenv:cover]
|
2012-11-18 02:21:08 +00:00
|
|
|
deps = {[testenv]deps}
|
|
|
|
coverage
|
2012-11-18 03:03:58 +00:00
|
|
|
nosexcover
|
|
|
|
setenv = {[testenv]setenv}
|
|
|
|
NOSE_WITH_COVERAGE=1
|
2012-09-25 08:00:23 +01:00
|
|
|
|
|
|
|
[testenv:pep8]
|
2012-11-18 02:21:08 +00:00
|
|
|
deps = {[testenv]deps}
|
|
|
|
pep8==1.3.3
|
2013-02-03 17:46:46 +00:00
|
|
|
commands = pep8 --repeat --show-source --exclude=.venv,.tox,dist,doc,openstack moniker setup.py bin/moniker-api bin/moniker-central bin/moniker-agent bin/moniker-sink bin/moniker-manage
|
2012-11-18 02:21:08 +00:00
|
|
|
|
|
|
|
[testenv:pyflakes]
|
|
|
|
deps = {[testenv]deps}
|
2013-01-30 18:20:58 +00:00
|
|
|
pyflakes==0.6.1
|
2012-11-18 02:21:08 +00:00
|
|
|
commands = pyflakes moniker bin setup.py
|
2012-11-18 03:03:58 +00:00
|
|
|
|
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|