separate cover environment to workaround tox bug (#9519)

This commit is contained in:
Brad Warren
2022-12-19 13:38:04 -08:00
committed by GitHub
parent ac75977156
commit 124e6d80c3
+9 -7
View File
@@ -30,13 +30,9 @@ platform =
posix: ^(?!.*win32).*$ posix: ^(?!.*win32).*$
commands_pre = python {toxinidir}/tools/pipstrap.py commands_pre = python {toxinidir}/tools/pipstrap.py
commands = commands =
!cover-win: {[base]install_and_test} {[base]win_all_packages} win: {[base]install_and_test} {[base]win_all_packages}
!cover-!win: {[base]install_and_test} {[base]all_packages} !win: {[base]install_and_test} {[base]all_packages}
!cover: python tests/lock_test.py python tests/lock_test.py
cover-win: {[base]pip_install} {[base]win_all_packages}
cover-!win: {[base]pip_install} {[base]all_packages} certbot-apache[dev]
cover: python tox.cover.py
# We always recreate the virtual environment to avoid problems like # We always recreate the virtual environment to avoid problems like
# https://github.com/certbot/certbot/issues/7745. # https://github.com/certbot/certbot/issues/7745.
recreate = true recreate = true
@@ -112,6 +108,12 @@ commands =
setenv = setenv =
{[testenv:oldest]setenv} {[testenv:oldest]setenv}
[testenv:cover{,-win,-posix}]
commands =
win: {[base]pip_install} {[base]win_all_packages}
!win: {[base]pip_install} {[base]all_packages} certbot-apache[dev]
python tox.cover.py
[testenv:lint{,-win,-posix}] [testenv:lint{,-win,-posix}]
basepython = python3 basepython = python3
# separating into multiple invocations disables cross package # separating into multiple invocations disables cross package