5aa5a084e6
This commit changes the name of the directory where the python test code lives so that it is a legal python identifier (no dashes) and propagates the name change out to all appropriate files. Additionally, the 'pypy' environment is removed from the default environments in tox.ini and the 'docs' environment is added as a default (since creating the user story docs is the whole point of this repo). The single test that's there still doesn't do anything, but at least the framework is correct for when tests are added. Change-Id: Iacf17ac58e62b67be633c77ea95f6a82d25e7d5a
36 lines
747 B
INI
36 lines
747 B
INI
[tox]
|
|
minversion = 1.6
|
|
envlist = py34,py27,pep8,docs
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install -U {opts} {packages}
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
commands = python setup.py test --slowest --testr-args='{posargs}'
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[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
|