oslo-incubator/tox.ini
Ben Nemec ca36a4d347 Add check_maintainers.py script
check_maintainers.py verifies that all of the files in the
oslo-incubator tree are covered by an entry in MAINTAINERS

Change-Id: I6c77a250ff3a0b537b17052d8da86b5b48a5283f
2014-01-26 01:54:42 +00:00

49 lines
1.4 KiB
INI

[tox]
minversion = 1.6
envlist = py26,py27,py33,pep8,pylint
skipsdist = True
[testenv]
sitepackages = False
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
# due to dependencies between tests (bug 1192207) we use `--concurrency=1` option
# Use the lockutils wrapper to ensure that external locking works correctly
python -m openstack.common.lockutils python setup.py test --slowest --testr-args='--concurrency=1 {posargs}'
{toxinidir}/tools/config/generate_sample.sh -p openstack
[flake8]
show-source = True
ignore = H803
exclude = .venv,.tox,dist,doc,*.egg,.update-venv
[testenv:pep8]
commands = flake8 {posargs}
python ./tools/check_maintainers.py
[testenv:pylint]
deps = pylint>=0.26.0
commands = python ./tools/lint.py ./openstack
python ./tools/lint.py ./tests
[testenv:cover]
setenv = VIRTUAL_ENV={envdir}
commands =
# due to dependencies between tests (bug 1192207) we use `--concurrency=1` option
# Use the lockutils wrapper to ensure that external locking works correctly
python -m openstack.common.lockutils python setup.py test --coverage --testr-args='--concurrency=1 {posargs}'
[testenv:venv]
commands = {posargs}
[testenv:pyflakes]
commands = flake8
[hacking]
import_exceptions = openstack.common.gettextutils._