diff --git a/tox.ini b/tox.ini index 8125304f7..a3436e95a 100644 --- a/tox.ini +++ b/tox.ini @@ -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