2012-01-31 15:27:29 -08:00
|
|
|
[tox]
|
2013-06-01 19:21:07 -05:00
|
|
|
envlist = py26,py27,py33,pep8
|
2012-01-31 15:27:29 -08:00
|
|
|
|
|
|
|
[testenv]
|
2012-06-08 19:59:26 -04:00
|
|
|
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
|
|
|
|
NOSE_OPENSTACK_STDOUT=1
|
2013-06-02 21:28:56 -04:00
|
|
|
NOSE_WITH_COVERAGE=1
|
|
|
|
NOSE_COVER_BRANCHES=1
|
2012-01-31 15:27:29 -08:00
|
|
|
deps =
|
2013-05-29 22:03:40 +08:00
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
2012-06-08 19:59:26 -04:00
|
|
|
commands = nosetests test/unit {posargs}
|
|
|
|
|
2013-09-04 22:25:28 -04:00
|
|
|
[testenv:cover]
|
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
|
|
NOSE_WITH_COVERAGE=1
|
|
|
|
NOSE_COVER_BRANCHES=1
|
|
|
|
NOSE_COVER_HTML=1
|
|
|
|
NOSE_COVER_HTML_DIR={toxinidir}/cover
|
|
|
|
|
2012-06-08 19:59:26 -04:00
|
|
|
[tox:jenkins]
|
|
|
|
downloadcache = ~/cache/pip
|
2012-01-31 15:27:29 -08:00
|
|
|
|
|
|
|
[testenv:pep8]
|
2012-05-03 18:33:05 -07:00
|
|
|
commands =
|
2013-04-28 18:32:12 -07:00
|
|
|
flake8
|
|
|
|
flake8 --filename=swift* bin
|
2012-01-31 15:27:29 -08:00
|
|
|
|
2012-03-16 01:23:39 -07:00
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
2013-04-28 18:32:12 -07:00
|
|
|
|
|
|
|
[flake8]
|
2013-08-30 23:56:55 +02:00
|
|
|
# TODO(dmllr): Review some of the hacking warnings and fix if applicable
|
|
|
|
# H233 Use print function, not print operator
|
2013-11-15 15:10:39 -08:00
|
|
|
ignore = H203,H233,H301,H302,H306,H402,H404,H703,H201
|
2013-09-01 15:10:39 -04:00
|
|
|
exclude = .venv,.tox,dist,doc,*egg
|
2013-04-28 18:32:12 -07:00
|
|
|
show-source = True
|