2013-01-24 17:42:57 +00:00
|
|
|
[tox]
|
|
|
|
envlist = py26,py27,pep8
|
2013-12-09 14:23:46 +00:00
|
|
|
minversion = 1.6
|
|
|
|
skipsdist = True
|
2013-01-24 17:42:57 +00:00
|
|
|
|
|
|
|
[testenv]
|
2013-12-09 14:23:46 +00:00
|
|
|
usedevelop = True
|
|
|
|
install_command = pip install {opts} {packages}
|
2013-01-24 17:42:57 +00:00
|
|
|
setenv = LANG=en_US.UTF-8
|
|
|
|
LANGUAGE=en_US:en
|
|
|
|
LC_ALL=C
|
2013-07-27 02:27:45 +00:00
|
|
|
deps= -r{toxinidir}/test-requirements.txt
|
2013-01-24 17:42:57 +00:00
|
|
|
commands=
|
2013-09-30 07:56:33 +00:00
|
|
|
python setup.py testr --slowest --testr-args='{posargs}'
|
2013-01-24 17:42:57 +00:00
|
|
|
|
|
|
|
[testenv:pep8]
|
2013-06-20 05:32:55 +00:00
|
|
|
commands =
|
|
|
|
flake8 {posargs}
|
2013-01-24 17:42:57 +00:00
|
|
|
|
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
|
|
|
|
|
|
|
[testenv:cover]
|
|
|
|
setenv = PYTHON=coverage run --source diskimage_builder
|
|
|
|
commands = bash -c 'if [ ! -d ./.testrepository ] ; then testr init ; fi'
|
|
|
|
bash -c 'testr run --parallel ; RET=$? ; coverage combine ; coverage html -d ./cover $OMIT && exit $RET'
|
|
|
|
|
|
|
|
[tox:jenkins]
|
|
|
|
downloadcache = ~/cache/pip
|
2013-06-20 05:32:55 +00:00
|
|
|
|
|
|
|
[flake8]
|
2013-09-18 13:19:24 +00:00
|
|
|
ignore = E125,H202,H803
|
2013-06-20 05:32:55 +00:00
|
|
|
builtins = _
|
|
|
|
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build
|