33e6f86e13
The openstack directory no longer exists, after refactoring. Change-Id: I991319689a6221b2f376a244ee14c90c91f3787d
43 lines
996 B
INI
43 lines
996 B
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 =
|
|
stestr run {posargs}
|
|
coverage combine
|
|
coverage html -d cover
|
|
coverage xml -o cover/coverage.xml
|
|
|
|
[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
|