You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.3 KiB
INI
52 lines
1.3 KiB
INI
[tox]
|
|
minversion = 3.2.0
|
|
skipsdist = True
|
|
envlist = py37,py38,pep8
|
|
ignore_basepython_conflict = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
OS_STDOUT_CAPTURE=1
|
|
OS_STDERR_CAPTURE=1
|
|
OS_TEST_TIMEOUT=60
|
|
OS_LOG_CAPTURE=1
|
|
deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
|
-r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/requirements.txt
|
|
commands = stestr run {posargs}
|
|
basepython = python3
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
|
-r{toxinidir}/doc/requirements.txt
|
|
commands = sphinx-build -W -b html doc/source doc/build/html
|
|
|
|
[testenv:pep8]
|
|
deps = flake8
|
|
whitelist_externals = bash
|
|
commands =
|
|
flake8
|
|
bash -c bin/check-up-to-date.sh
|
|
|
|
[testenv:cover]
|
|
setenv =
|
|
PYTHON=coverage run --source openstack_virtual_baremetal --parallel-mode
|
|
commands =
|
|
stestr run '{posargs}'
|
|
coverage combine
|
|
coverage html -d cover
|
|
coverage xml -o cover/coverage.xml
|
|
|
|
[testenv:genconfig]
|
|
commands = python3 bin/environment-generator.py sample-env-generator --index doc/source/deploy/environment-index.rst
|
|
|
|
[flake8]
|
|
ignore = H803,W504
|
|
show-source = True
|
|
exclude = .tox,dist,doc,*.egg,build
|