4c5ee4ca57
Bump setup.cfg version to 2.0.0 (mitaka) Change-Id: I3c2d63262a87a7d84bd95640de0140332e3e34ae Closes-Bug: #1542061
36 lines
742 B
INI
36 lines
742 B
INI
[tox]
|
|
envlist = py27,pep8,pylint
|
|
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 = py.test -v --cov-report term-missing --cov disaster_recovery
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:cover]
|
|
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
|
|
|
[flake8]
|
|
show-source = True
|
|
ignore = E123,E125,H405,H238,H306,H701
|
|
builtins = _
|
|
exclude=.venv,.tox,dist,doc,test,*egg,tests,runtests.py
|
|
|
|
[testenv:pylint]
|
|
commands = pylint --rcfile .pylintrc disaster_recovery
|
|
|
|
[testenv:docs]
|
|
commands =
|
|
python setup.py build_sphinx
|
|
|