Consolidate cover envs and default to py3-cover

This commit is contained in:
Brad Warren 2020-04-14 11:34:40 -07:00
parent ff732bf975
commit 960d66ff41

23
tox.ini
View file

@ -4,7 +4,7 @@
[tox]
skipsdist = true
envlist = modification,py3,py27-cover,lint,mypy
envlist = modification,py3-cover,lint,mypy
[base]
# pip installs the requested packages in editable mode
@ -63,8 +63,11 @@ source_paths =
passenv =
CERTBOT_NO_PIN
commands =
{[base]install_and_test} {[base]all_packages}
python tests/lock_test.py
!cover: {[base]install_and_test} {[base]all_packages}
!cover: python tests/lock_test.py
cover: {[base]install_packages}
cover: {[base]pip_install} certbot-apache[dev]
cover: python tox.cover.py
# We always recreate the virtual environment to avoid problems like
# https://github.com/certbot/certbot/issues/7745.
recreate = true
@ -116,20 +119,6 @@ commands =
setenv =
{[testenv:py27-oldest]setenv}
[testenv:py27-cover]
basepython = python2.7
commands =
{[base]install_packages}
{[base]pip_install} certbot-apache[dev]
python tox.cover.py
[testenv:py37-cover]
basepython = python3.7
commands =
{[base]install_packages}
{[base]pip_install} certbot-apache[dev]
python tox.cover.py
[testenv:lint]
basepython = python3
# separating into multiple invocations disables cross package