Workflow Service 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.

131 lines
3.7 KiB

envlist = py3,pep8
minversion = 2.0
skipsdist = True
ignore_basepython_conflict = True
basepython = python3
usedevelop = True
install_command = pip install {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
deps =
# javascript engine
commands =
rm -f .testrepository/times.dbm
find . -type f -name "*.pyc" -delete
stestr run --slowest {posargs}
whitelist_externals =
setenv = VIRTUAL_ENV={envdir}
passenv = ZUUL_PROJECT
commands = ./ -N --db-type postgresql
setenv = VIRTUAL_ENV={envdir}
passenv = ZUUL_PROJECT
commands = ./ -N --db-type mysql
commands =
doc8 doc/source
flake8 {posargs} . {toxinidir}/tools/
setenv =
PYTHON=coverage run --source mistral --parallel-mode
commands =
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
commands =
oslo-config-generator --config-file tools/config/config-generator.mistral.conf \
--output-file etc/mistral.conf.sample
commands =
oslopolicy-sample-generator --config-file tools/config/policy-generator.mistral.conf \
--output-file etc/policy.yaml.sample
#set PYTHONHASHSEED=0 to prevent wsmeext.sphinxext from randomly failing.
commands = {posargs}
#set PYTHONHASHSEED=0 to prevent wsmeext.sphinxext from randomly failing.
deps =
commands =
rm -rf doc/build
sphinx-build -E -W --keep-going -b html doc/source doc/build/html
deps =
whitelist_externals =
commands =
sphinx-build -W -b latex doc/source doc/build/pdf
make -C doc/build/pdf
commands =
rm -rf releasenotes/build
sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html
# This environment is called from CI scripts to test and publish
# the API Ref to
commands =
rm -rf api-ref/build
sphinx-build -W --keep-going -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
whitelist_externals = rm
#Skip PEP257 violation.
ignore = D100,D101,D102,D103,D104,D105,D200,D203,D202,D204,D205,D208,D400,D401,E402,W503,E731,W504
show-source = true
builtins = _
# [H106] Don't put vim configuration in source files.
# [H203] Use assertIs(Not)None to check for None.
# [H904] Delay string interpolations at logging calls.
enable-extensions = H106,H203,H904
extensions = .rst, .yaml, .mistral
# Maximal line length should be 80.
max-line-length = 80
import_exceptions = mistral._i18n
extension =
M001 = checks:CheckForLoggingIssues
M319 = checks:no_assert_equal_true_false
M320 = checks:no_assert_true_false_is_not
M327 = checks:check_python3_xrange
M328 = checks:check_python3_no_iteritems
M329 = checks:check_python3_no_iterkeys
M330 = checks:check_python3_no_itervalues
O323 = checks:check_oslo_namespace_imports
paths = ./mistral/hacking