Application Catalog for OpenStack
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.

128 lines
3.5 KiB

envlist = py36,py38,pep8
minversion = 2.0
skipsdist = True
basepython = python3
usedevelop = True
setenv =
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
commands = rm -f .testrepository/times.dbm
stestr run {posargs}
whitelist_externals = bash
commands = murano-test-runner {posargs}
commands =
flake8 {posargs}
commands = bandit -c bandit.yaml -r murano -x tests -n 5 -ll
commands = {posargs}
setenv =
PYTHON=coverage run --source murano --parallel-mode
commands =
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
commands =
find . -type f -name "*.pyc" -delete
oslo_debug_helper {posargs}
deps = -r{toxinidir}/doc/requirements.txt
commands = sphinx-build -a -E -W -d doc/build/doctrees -b html doc/source doc/build/html
deps = {[testenv:docs]deps}
whitelist_externals =
commands =
sphinx-build -W -b latex doc/source doc/build/pdf
make -C doc/build/pdf
deps = flake8
commands = flake8
setenv = VIRTUAL_ENV={envdir}
commands = bash tools/
commands =
oslo-config-generator --config-file etc/oslo-config-generator/murano.conf
commands =
oslo-config-generator --config-file etc/oslo-config-generator/murano-cfapi.conf
commands = oslopolicy-sample-generator --config-file etc/oslo-policy-generator/murano-policy-generator.conf
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
# This environment is called from CI scripts to test and publish
# the API Ref to
deps = -r{toxinidir}/doc/requirements.txt
commands =
rm -rf api-ref/build
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
whitelist_externals = rm
show-source = true
builtins = _
# W605 invalid escape sequence
# E402 fires an error on eventlet import. Should probably remove condition alltogether
ignore = W605,W504,W503,E123,H405,E402
import_exceptions = oslo.db.sqlalchemy.test_base,
extension =
M318 = checks:assert_equal_none
M322 = checks:no_mutable_default_args
M326 = checks:check_no_basestring
paths = ./murano/hacking
# 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
deps =