OpenStack library for collecting metrics from Oslo libraries
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.

59 lines
1.3 KiB

minversion = 3.18.0
envlist = py3,pep8
ignore_basepython_conflict = True
basepython = python3
allowlist_externals =
deps =
commands =
find . -type f -name "*.pyc" -delete
stestr run --slowest {posargs}
deps = {[testenv]deps}
commands =
bandit -r oslo_metrics -x tests -n5
commands = {posargs}
allowlist_externals = rm
deps =
commands =
rm -fr doc/build
sphinx-build -W --keep-going -b html doc/source doc/build/html
setenv =
PYTHON=coverage run --source oslo_metrics --parallel-mode
commands =
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
show-source = True
ignore = H405,W504,F405
builtins = _
import_exceptions =
allowlist_externals =
deps = {[testenv:docs]deps}
commands =
rm -rf releasenotes/build
sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html