diff --git a/.azure-pipelines/templates/jobs/extended-tests-jobs.yml b/.azure-pipelines/templates/jobs/extended-tests-jobs.yml index c8cbe7fb3..fadfbf257 100644 --- a/.azure-pipelines/templates/jobs/extended-tests-jobs.yml +++ b/.azure-pipelines/templates/jobs/extended-tests-jobs.yml @@ -8,86 +8,9 @@ jobs: - group: certbot-common strategy: matrix: - linux-py36: - PYTHON_VERSION: 3.6 - TOXENV: py36 - linux-py37: - PYTHON_VERSION: 3.7 - TOXENV: py37 linux-py38: PYTHON_VERSION: 3.8 TOXENV: py38 - linux-py37-nopin: - PYTHON_VERSION: 3.7 - TOXENV: py37 - CERTBOT_NO_PIN: 1 - linux-external-mock: - TOXENV: external-mock - linux-boulder-v1-integration-certbot-oldest: - PYTHON_VERSION: 3.6 - TOXENV: integration-certbot-oldest - ACME_SERVER: boulder-v1 - linux-boulder-v2-integration-certbot-oldest: - PYTHON_VERSION: 3.6 - TOXENV: integration-certbot-oldest - ACME_SERVER: boulder-v2 - linux-boulder-v1-integration-nginx-oldest: - PYTHON_VERSION: 3.6 - TOXENV: integration-nginx-oldest - ACME_SERVER: boulder-v1 - linux-boulder-v2-integration-nginx-oldest: - PYTHON_VERSION: 3.6 - TOXENV: integration-nginx-oldest - ACME_SERVER: boulder-v2 - linux-boulder-v1-py36-integration: - PYTHON_VERSION: 3.6 - TOXENV: integration - ACME_SERVER: boulder-v1 - linux-boulder-v2-py36-integration: - PYTHON_VERSION: 3.6 - TOXENV: integration - ACME_SERVER: boulder-v2 - linux-boulder-v1-py37-integration: - PYTHON_VERSION: 3.7 - TOXENV: integration - ACME_SERVER: boulder-v1 - linux-boulder-v2-py37-integration: - PYTHON_VERSION: 3.7 - TOXENV: integration - ACME_SERVER: boulder-v2 - linux-boulder-v1-py38-integration: - PYTHON_VERSION: 3.8 - TOXENV: integration - ACME_SERVER: boulder-v1 - linux-boulder-v2-py38-integration: - PYTHON_VERSION: 3.8 - TOXENV: integration - ACME_SERVER: boulder-v2 - linux-boulder-v1-py39-integration: - PYTHON_VERSION: 3.9 - TOXENV: integration - ACME_SERVER: boulder-v1 - linux-boulder-v2-py39-integration: - PYTHON_VERSION: 3.9 - TOXENV: integration - ACME_SERVER: boulder-v2 - nginx-compat: - TOXENV: nginx_compat - linux-integration-rfc2136: - IMAGE_NAME: ubuntu-18.04 - PYTHON_VERSION: 3.8 - TOXENV: integration-dns-rfc2136 - docker-dev: - TOXENV: docker_dev - macos-farmtest-apache2: - # We run one of these test farm tests on macOS to help ensure the - # tests continue to work on the platform. - IMAGE_NAME: macOS-10.15 - PYTHON_VERSION: 3.8 - TOXENV: test-farm-apache2 - farmtest-sdists: - PYTHON_VERSION: 3.7 - TOXENV: test-farm-sdists pool: vmImage: $(IMAGE_NAME) steps: diff --git a/.azure-pipelines/templates/jobs/standard-tests-jobs.yml b/.azure-pipelines/templates/jobs/standard-tests-jobs.yml index c949af44a..13ee73aa2 100644 --- a/.azure-pipelines/templates/jobs/standard-tests-jobs.yml +++ b/.azure-pipelines/templates/jobs/standard-tests-jobs.yml @@ -20,55 +20,10 @@ jobs: IMAGE_NAME: vs2017-win2016 PYTHON_VERSION: 3.8 TOXENV: py38-cover - windows-integration-certbot: - IMAGE_NAME: vs2017-win2016 - PYTHON_VERSION: 3.8 - TOXENV: integration-certbot - linux-oldest-tests-1: - IMAGE_NAME: ubuntu-18.04 - PYTHON_VERSION: 3.6 - TOXENV: '{acme,apache,apache-v2,certbot}-oldest' - linux-oldest-tests-2: - IMAGE_NAME: ubuntu-18.04 - PYTHON_VERSION: 3.6 - TOXENV: '{dns,nginx}-oldest' - linux-py36: - IMAGE_NAME: ubuntu-18.04 - PYTHON_VERSION: 3.6 - TOXENV: py36 linux-py39-cover: IMAGE_NAME: ubuntu-18.04 PYTHON_VERSION: 3.9 TOXENV: py39-cover - linux-py39-lint: - IMAGE_NAME: ubuntu-18.04 - PYTHON_VERSION: 3.9 - TOXENV: lint - linux-py39-mypy: - IMAGE_NAME: ubuntu-18.04 - PYTHON_VERSION: 3.9 - TOXENV: mypy - linux-integration: - IMAGE_NAME: ubuntu-18.04 - PYTHON_VERSION: 3.8 - TOXENV: integration - ACME_SERVER: pebble - apache-compat: - IMAGE_NAME: ubuntu-18.04 - TOXENV: apache_compat - # le-modification can be moved to the extended test suite once - # https://github.com/certbot/certbot/issues/8742 is resolved. - le-modification: - IMAGE_NAME: ubuntu-18.04 - TOXENV: modification - apacheconftest: - IMAGE_NAME: ubuntu-18.04 - PYTHON_VERSION: 3.6 - TOXENV: apacheconftest-with-pebble - nginxroundtrip: - IMAGE_NAME: ubuntu-18.04 - PYTHON_VERSION: 3.6 - TOXENV: nginxroundtrip pool: vmImage: $(IMAGE_NAME) steps: diff --git a/.azure-pipelines/templates/stages/test-and-package-stage.yml b/.azure-pipelines/templates/stages/test-and-package-stage.yml index 26010644d..81aa168ec 100644 --- a/.azure-pipelines/templates/stages/test-and-package-stage.yml +++ b/.azure-pipelines/templates/stages/test-and-package-stage.yml @@ -3,4 +3,3 @@ stages: jobs: - template: ../jobs/standard-tests-jobs.yml - template: ../jobs/extended-tests-jobs.yml - - template: ../jobs/packaging-jobs.yml diff --git a/tox.ini b/tox.ini index a45766d87..836a19767 100644 --- a/tox.ini +++ b/tox.ini @@ -65,14 +65,9 @@ passenv = CERTBOT_NO_PIN commands_pre = python {toxinidir}/tools/pipstrap.py commands = - !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 + {[base]pip_install} acme[dev] certbot[dev] + !cover: pytest certbot + cover: python tox.cover.py --packages certbot setenv = PYTEST_ADDOPTS = {env:PYTEST_ADDOPTS:--numprocesses auto} PYTHONHASHSEED = 0