2014-02-03 14:48:20 +00:00
|
|
|
[tox]
|
2014-02-18 19:10:00 +00:00
|
|
|
envlist = py26,py27,py33,pep8
|
2014-02-03 14:48:20 +00:00
|
|
|
|
|
|
|
[testenv]
|
2014-02-18 19:10:00 +00:00
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
2014-02-03 14:48:20 +00:00
|
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
commands = python setup.py testr --slowest --testr-args='{posargs}'
|
|
|
|
|
|
|
|
[testenv:pep8]
|
|
|
|
commands = flake8
|
|
|
|
|
2014-02-18 19:10:00 +00:00
|
|
|
[testenv:cover]
|
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
|
|
commands =
|
|
|
|
python setup.py testr --coverage
|
|
|
|
|
2014-02-03 14:48:20 +00:00
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
|
|
|
|
|
|
|
[flake8]
|
|
|
|
show-source = True
|
2014-02-18 19:10:00 +00:00
|
|
|
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,__init__.py
|
2014-02-03 14:48:20 +00:00
|
|
|
builtins = _
|
2014-02-19 06:13:50 +00:00
|
|
|
|
|
|
|
[hacking]
|
|
|
|
import_exceptions = oslo.vmware.openstack.common.gettextutils._
|