Plain Hadoop (vanilla) provisioning plugin for Sahara
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.

117 lines
3.7 KiB

envlist = py35,py27,pep8
minversion = 1.6
skipsdist = True
usedevelop = True
install_command = pip install -U -c{env:UPPER_CONSTRAINTS_FILE:} {opts} {packages}
setenv =
deps =
commands = ostestr {posargs}
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
commands = {toxinidir}/tools/ {posargs}
basepython = python2.7
commands = oslo_debug_helper -t sahara/tests/unit {posargs}
basepython = python3.5
commands = oslo_debug_helper -t sahara/tests/unit {posargs}
commands =
flake8 {posargs}
doc8 doc/source
# Run bashate checks
bash -c "find sahara -iname '*.sh' -print0 | xargs -0 bashate -v"
bash -c "find devstack -not -name \*.template -and -not -name README.rst -and -not -name \*.json -type f -print0 | xargs -0 bashate -v"
# Run security linter
bandit -c bandit.yaml -r sahara -n5 -p sahara_default -x tests
commands = {posargs}
sitepackages = True
commands = {posargs}
commands =
rm -rf doc/html doc/build
rm -rf api-ref/build api-ref/html
rm -rf doc/source/apidoc doc/source/api
python build_sphinx
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
whitelist_externals =
install_command = pip install -U --force-reinstall {opts} {packages}
commands =
rm -rf api-ref/build api-ref/html
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
whitelist_externals =
setenv = VIRTUAL_ENV={envdir}
commands = bash tools/
commands =
oslo-config-generator --config-file tools/config/config-generator.sahara.conf \
--output-file etc/sahara/sahara.conf.sample
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
# do not install test-requirements as that will pollute the virtualenv for
# determining missing packages
# this also means that pip-missing-reqs must be installed separately, outside
# of the requirements.txt files
deps =
commands = pip-missing-reqs -d --ignore-file=sahara/tests/* sahara
# It runs tests from the specified dir (default is sahara/tests)
# in interactive mode, so, you could use pbr for tests debug.
# Example usage: tox -e debug -- -t sahara/tests/unit some.test.path
commands = oslo_debug_helper -t sahara/tests/unit {posargs}
deps = -r{toxinidir}/test-requirements-bandit.txt
commands = bandit -c bandit.yaml -r sahara -n5 -p sahara_default -x tests
show-source = true
builtins = _
# [H904] Delay string interpolations at logging calls
# [H106] Don’t put vim configuration in source files
# [H203] Use assertIs(Not)None to check for None.
import_exceptions = sahara.i18n
local-check-factory = sahara.utils.hacking.checks.factory
# 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