Fetching contributors…
Cannot retrieve contributors at this time
87 lines (72 sloc) 2.55 KB
# noted to use py34 you need virtualenv >= 1.11.4
envlist = py35,py34,py27,pypy,pep8,docs
minversion = 2.0
skipsdist = True
usedevelop = True
# tox is silly... these need to be separated by a newline....
whitelist_externals = find
passenv = ZUUL_CACHE_DIR
install_command = {toxinidir}/tools/ {env:UPPER_CONSTRAINTS_FILE:} {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/test-requirements.txt
commands =
find . -type f -name "*.pyc" -delete
bash tools/ '{posargs}'
# there is also secret magic in which lets you run in a fail only
# mode. To do this define the TRACE_FAILONLY environmental variable.
commands = flake8 {posargs}
commands = bandit -r novaclient -n5 -x tests
commands = {posargs}
commands =
python build_sphinx
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
basepython = python2.7
setenv =
OS_TEST_PATH = ./novaclient/tests/functional
commands = bash tools/ '--concurrency=1 {posargs}'
basepython = python3.4
setenv =
OS_TEST_PATH = ./novaclient/tests/functional
commands = bash tools/ '--concurrency=1 {posargs}'
commands =
python testr --coverage --testr-args='{posargs}'
coverage report
# Following checks should be enabled in the future.
# H404 multi line docstring should start without a leading new line
# H405 multi line docstring summary not separated with an empty line
# Following checks are ignored on purpose.
# Additional checks are also ignored on purpose: F811, F821
ignore = F811,F821,H404,H405
show-source = True
import_exceptions = novaclient.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.
deps = bindep
commands = bindep test