rpm-packaging/tox.ini
Dirk Müller 52c8d40b53
Switch to tox 4.0 compatible listing
Change-Id: If711306c9ace25fabb42dcbb002ee9c1a36adaf8
2023-01-04 14:44:36 +01:00

31 lines
839 B
INI

[tox]
minversion = 4.0
envlist = rpm-packaging-lint
skipsdist = True
[testenv]
basepython = python3
setenv =
VIRTUAL_ENV={envdir}
LC_ALL=en_US.utf-8
install_command = pip install -U -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} {opts} {packages}
deps = -r{toxinidir}/test-requirements.txt
passenv = http_proxy,https_proxy,no_proxy
[testenv:linters]
commands =
{toxinidir}/tools/run_renderspec.sh {toxinidir} {posargs}
{toxinidir}/tools/run_specchecks.sh {toxinidir} {posargs}
{toxinidir}/tools/run_speccleaner.sh {toxinidir} {posargs}
allowlist_externals =
{toxinidir}/tools/run_renderspec.sh
{toxinidir}/tools/run_specchecks.sh
{toxinidir}/tools/run_speccleaner.sh
# compat. remove me
[testenv:lint]
commands = {[testenv:linters]commands}
[testenv:venv]
commands = {posargs}