diff options
author | Brad Warren <bmw@users.noreply.github.com> | 2020-04-16 18:59:40 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-16 18:59:40 +0300 |
commit | 859dc38cb9195de072bc46e30e3edc0dab04f84d (patch) | |
tree | 21202d16ea01b61615170840852aa76a2918243a /tox.ini | |
parent | f66314926aa842804b8b64af785f2cef5296e0c5 (diff) |
Consolidate cover envs and default to py3-cover (#7905)
* Consolidate cover envs and default to py3-cover
* use py38 for code coverage in Travis
* Disable coverage on Python < 3.6 line.
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 23 |
1 files changed, 6 insertions, 17 deletions
@@ -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 |