Files
tripleo-image-elements/tox.ini
HeroicHitesh 400108d636 Migrate from testr to stestr, disable auto discovery
Wallaby CI requires both of these backports for tox py39 to pass.
Change-Id: I8db5e382576a820f756cc936ca0fe7ca6d0ec1d1
(cherry picked from commit 0b33e111ca)
                and commit 7b7458b317)
2022-05-10 11:02:51 +12:00

31 lines
750 B
INI

[tox]
minversion = 2.0
skipsdist = True
envlist = pep8,py
[testenv]
basepython = python3
usedevelop = True
install_command = pip install {opts} {packages}
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/wallaby}
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = stestr run --slowest {posargs}
[testenv:venv]
commands = {posargs}
[testenv:pep8]
commands = ./run-flake8
[flake8]
ignore = E125,H803
exclude = .venv,.tox,dist,*.egg,build,releasenotes
show-source = true
[testenv:releasenotes]
deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/wallaby}
-r{toxinidir}/doc/requirements.txt
commands = bash -c tools/releasenotes_tox.sh