2015-05-07 12:05:52 -07:00
|
|
|
[tox]
|
|
|
|
minversion = 1.6
|
2015-12-26 12:27:58 +05:30
|
|
|
envlist = py34,py27,pypy,pep8
|
2015-05-07 12:05:52 -07:00
|
|
|
skipsdist = True
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
usedevelop = True
|
2016-01-22 11:28:12 -08:00
|
|
|
install_command = pip install {opts} {packages}
|
2015-05-07 12:05:52 -07:00
|
|
|
setenv =
|
|
|
|
VIRTUAL_ENV={envdir}
|
|
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
commands = python setup.py test --slowest --testr-args='{posargs}'
|
|
|
|
|
|
|
|
[testenv:pep8]
|
|
|
|
commands = flake8
|
|
|
|
|
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
|
|
|
|
2015-10-20 21:11:12 -07:00
|
|
|
[testenv:genconfig]
|
|
|
|
commands = oslo-config-generator --config-file etc/cloudpulse/cloudpulse-config-generator.conf
|
|
|
|
|
2015-05-07 12:05:52 -07:00
|
|
|
[testenv:cover]
|
|
|
|
commands = python setup.py test --coverage --testr-args='{posargs}'
|
|
|
|
|
|
|
|
[testenv:docs]
|
|
|
|
commands = python setup.py build_sphinx
|
|
|
|
|
|
|
|
[testenv:debug]
|
|
|
|
commands = oslo_debug_helper {posargs}
|
|
|
|
|
2015-11-13 05:16:27 -08:00
|
|
|
[testenv:bandit]
|
|
|
|
deps = bandit
|
|
|
|
commands = bandit -c bandit.yaml -r cloudpulse -p gate
|
|
|
|
|
2015-05-07 12:05:52 -07:00
|
|
|
[flake8]
|
|
|
|
# E123, E125 skipped as they are invalid PEP-8.
|
|
|
|
|
|
|
|
show-source = True
|
|
|
|
ignore = E123,E125
|
|
|
|
builtins = _
|
|
|
|
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build
|