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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

16
tox.ini
View file

@ -30,13 +30,9 @@ platform =
posix: ^(?!.*win32).*$
commands_pre = python {toxinidir}/tools/pipstrap.py
commands =
!cover-win: {[base]install_and_test} {[base]win_all_packages}
!cover-!win: {[base]install_and_test} {[base]all_packages}
!cover: 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
win: {[base]install_and_test} {[base]win_all_packages}
!win: {[base]install_and_test} {[base]all_packages}
python tests/lock_test.py
# We always recreate the virtual environment to avoid problems like
# https://github.com/certbot/certbot/issues/7745.
recreate = true
@ -112,6 +108,12 @@ commands =
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}]
basepython = python3
# separating into multiple invocations disables cross package