2012-05-16 17:30:46 -04:00
|
|
|
[tox]
|
2013-06-01 19:27:18 -05:00
|
|
|
envlist = py26,py27,py33,pep8
|
2012-05-16 17:30:46 -04:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
2012-12-27 15:26:50 -08:00
|
|
|
LANG=en_US.UTF-8
|
|
|
|
LANGUAGE=en_US:en
|
|
|
|
LC_ALL=C
|
|
|
|
|
2013-05-29 22:13:02 +08:00
|
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
2012-12-27 15:26:50 -08:00
|
|
|
commands = python setup.py testr --testr-args="{posargs}"
|
2012-05-16 17:30:46 -04:00
|
|
|
|
|
|
|
[testenv:pep8]
|
2013-04-28 19:16:38 -07:00
|
|
|
commands =
|
|
|
|
flake8
|
|
|
|
flake8 bin/swift
|
2012-05-16 17:30:46 -04:00
|
|
|
|
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
|
|
|
|
|
|
|
[testenv:cover]
|
2012-12-27 15:26:50 -08:00
|
|
|
commands = python setup.py testr --coverage
|
2012-05-16 17:30:46 -04:00
|
|
|
|
|
|
|
[tox:jenkins]
|
|
|
|
downloadcache = ~/cache/pip
|
2013-04-28 19:16:38 -07:00
|
|
|
|
|
|
|
[flake8]
|
|
|
|
ignore = H
|
|
|
|
show-source = True
|
|
|
|
exclude = .venv,.tox,dist,doc,test,*egg
|