Files
glean/tox.ini
Ian Wienand e1aed7ce1a Minor testing cleanups
test_glean.py inherits base.BaseTestCase from oslotest, so the
"base.py" definition is unnecessary.  Remove this file.

Add OS_DEBUG=1 to the environment so when we do get failures, we have
the debug logs enabled.

Change-Id: Iff3fb764aab15e402aefc88dcc2eae4f39f35de7
2015-12-21 14:49:39 +11:00

35 lines
769 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}
OS_DEBUG=1
deps = -r{toxinidir}/test-requirements.txt
commands = python setup.py testr --slowest --testr-args='{posargs}'
[testenv:pep8]
commands = flake8
[testenv:venv]
commands = {posargs}
[testenv:cover]
commands = python setup.py testr --coverage --testr-args='{posargs}'
[testenv:docs]
commands = python setup.py build_sphinx
[flake8]
# H803 skipped on purpose per list discussion.
# E123, E125 skipped as they are invalid PEP-8.
show-source = True
ignore = E123,E125,H803
builtins = _
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build