Files
cloudpulse/tox.ini
hayderimran7 7f004cd9dc Add option to generate sample conf file.
This patch allows user to use `tox -egenconfig` to directly
generate a sample conf file in etc/cloudpulse/cloudpulse.conf.sample.
This helps in vetting any doubts if the already given conf is
outdated or has incorrect config options.

Change-Id: Ib25b09c838114dd022a28b7b1b5e8d9c190a817b
2015-10-20 21:13:43 -07:00

40 lines
911 B
INI

[tox]
minversion = 1.6
envlist = py33,py34,py26,py27,pypy,pep8
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
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}
[testenv:genconfig]
commands = oslo-config-generator --config-file etc/cloudpulse/cloudpulse-config-generator.conf
[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}
[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