Volume discovery and local storage management lib
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

96 lines
2.6 KiB

minversion = 2.0
envlist = py35,py27,pep8
skipsdist = True
usedevelop = True
setenv =
install_command = pip install {opts} {packages}
deps =
# By default ostestr will set concurrency
# to ncpu, to specify something else use
# the concurrency=<n> option.
# call ie: 'tox -epy27 -- --concurrency=4'
commands = ostestr {posargs}
whitelist_externals = bash
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
commands =
find . -type f -name "*.pyc" -delete
oslo_debug_helper {posargs}
commands = flake8 {posargs}
envdir = {toxworkdir}/pep8
commands =
deps =
commands = bash tools/lintstack.sh
commands = {posargs}
# To see the report of missing coverage add to commands
# coverage report --show-missing
setenv =
PYTHON=coverage run --source os_brick --parallel-mode
commands =
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage/xml
commands = python setup.py build_sphinx
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
# Following checks are ignored on purpose.
# E251 unexpected spaces around keyword / parameter equals
# reason: no improvement in readability
show-source = True
ignore = E251
builtins = _
import_exceptions = os_brick.i18n
# Do not install any requirements. We want this to be fast and work even if
# system dependencies are missing, since it's used to tell you what system
# dependencies are missing! This also means that bindep must be installed
# separately, outside of the requirements files, and develop mode disabled
# explicitly to avoid unnecessarily installing the checked-out repo too (this
# further relies on "tox.skipsdist = True" above).
deps = bindep
commands = bindep test
usedevelop = False