
This patch enables to run a few unitttest for storlet_middleware for OpenStack Swift with similer way of native Swift middleware in tox environment. N.B. To enable this, this patch changes a few things in the setup.cfg in the top of directories but this doesn't care whole things for python software packaging so... TODO: Review and Fix setup.cfg to be correct packaging info Change-Id: I8210af17300c7f3d664d858d54fd804dcd300fae
42 lines
890 B
INI
42 lines
890 B
INI
[tox]
|
|
minversion = 1.6
|
|
envlist = py27,pep8
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install -U {opts} {packages}
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
deps =
|
|
-r{toxinidir}/test-requirements.txt
|
|
PyECLib==1.0.7
|
|
https://launchpad.net/swift/kilo/2.3.0/+download/swift-2.3.0.tar.gz
|
|
#commands = python setup.py test --slowest --testr-args='{posargs}'
|
|
commands = ./.unittests
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
|
|
[testenv:func]
|
|
commands = ./.functests
|
|
|
|
[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.
|
|
ignore = E123,E125
|
|
show-source = True
|
|
builtins = _
|
|
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build
|