dd24451902
... for easy reference. Also make sure old data is purged. Change-Id: I1420e5cc1bc12a92596b497795e895c90d0f4d41
45 lines
1.0 KiB
INI
45 lines
1.0 KiB
INI
[tox]
|
|
envlist = py3,pep8
|
|
ignore_basepython_conflict = True
|
|
minversion = 2.0
|
|
|
|
[testenv]
|
|
basepython = python3
|
|
usedevelop = True
|
|
install_command = pip install {opts} {packages}
|
|
deps =
|
|
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
stestr run --slowest {posargs}
|
|
|
|
[tox:jenkins]
|
|
sitepackages = True
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
|
|
[testenv:cover]
|
|
setenv =
|
|
PYTHON=coverage run --source os_collect_config --parallel-mode
|
|
commands =
|
|
coverage erase
|
|
stestr run {posargs}
|
|
coverage combine
|
|
coverage html -d cover
|
|
coverage xml -o cover/coverage.xml
|
|
coverage report
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
# H405 multi line docstring summary not separated with an empty line
|
|
# W503 line break before binary operator
|
|
# W504 line break after binary operator
|
|
# W605 invalid escape sequence
|
|
ignore = H405,W503,W504,W605
|
|
exclude = .venv,.tox,dist,doc,*.egg
|
|
show-source = true
|