Merge "Simplify tox targets"

This commit is contained in:
Zuul 2024-09-30 17:32:12 +00:00 committed by Gerrit Code Review
commit 6f7ba5bbda

27
tox.ini
View File

@ -30,7 +30,7 @@ passenv =
OS_LOG_CAPTURE OS_LOG_CAPTURE
AODH_TEST_DRIVERS AODH_TEST_DRIVERS
commands = commands =
stestr --test-path=./aodh/tests run stestr --test-path=./aodh/tests run {posargs}
aodh-config-generator aodh-config-generator
allowlist_externals = allowlist_externals =
bash bash
@ -42,14 +42,11 @@ setenv =
PYTHON=coverage run --source aodh --parallel-mode PYTHON=coverage run --source aodh --parallel-mode
commands = commands =
coverage erase coverage erase
stestr run {posargs} stestr --test-path=./aodh/tests run {posargs}
stestr --test-path=./aodh/tests/functional run {posargs}
coverage combine coverage combine
coverage html -d cover coverage html -d cover
coverage xml -o cover/coverage.xml coverage xml -o cover/coverage.xml
coverage report coverage report
stestr --test-path=./aodh/tests run
coverage report
[testenv:pep8] [testenv:pep8]
deps = hacking>=6.1.0,<6.2.0 deps = hacking>=6.1.0,<6.2.0
@ -91,26 +88,6 @@ setenv = PYTHONHASHSEED=0
[testenv:debug] [testenv:debug]
commands = bash -x oslo_debug_helper {posargs} commands = bash -x oslo_debug_helper {posargs}
[testenv:debug-mysql]
deps =
gnocchi[mysql, file]
pifpaf[gnocchi]>=1.0.1
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
.[mysql]
-r{toxinidir}/test-requirements.txt
setenv = OS_TEST_PATH=aodh/tests/functional/
commands = pifpaf -g AODH_TEST_STORAGE_URL run mysql -- oslo_debug_helper {posargs}
[testenv:debug-pgsql]
deps =
gnocchi[postgresql, file]
pifpaf[gnocchi]>=1.0.1
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
.[postgresql]
-r{toxinidir}/test-requirements.txt
setenv = OS_TEST_PATH=aodh/tests/functional/
commands = pifpaf -g AODH_TEST_STORAGE_URL run postgresql -- oslo_debug_helper {posargs}
[flake8] [flake8]
# W503 line break before binary operator # W503 line break before binary operator
# W504 line break after binary operator # W504 line break after binary operator