mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 02:35:06 +02:00
Revert fix-macos-pytest (#5853)
* Revert "Fix pytest on macOS in Travis (#5360)"
This reverts commit 5388842e5b.
* remove oldest passenv
This commit is contained in:
@@ -1,2 +0,0 @@
|
|||||||
[pytest]
|
|
||||||
addopts = --quiet
|
|
||||||
@@ -19,5 +19,5 @@ for requirement in "$@" ; do
|
|||||||
if [ $pkg = "." ]; then
|
if [ $pkg = "." ]; then
|
||||||
pkg="certbot"
|
pkg="certbot"
|
||||||
fi
|
fi
|
||||||
"$(dirname $0)/pytest.sh" --pyargs $pkg
|
pytest --numprocesses auto --quiet --pyargs $pkg
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# Runs pytest with the provided arguments, adding --numprocesses to the command
|
|
||||||
# line. This argument is set to "auto" if the environmnent variable TRAVIS is
|
|
||||||
# not set, otherwise, it is set to 2. This works around
|
|
||||||
# https://github.com/pytest-dev/pytest-xdist/issues/9. Currently every Travis
|
|
||||||
# environnment provides two cores. See
|
|
||||||
# https://docs.travis-ci.com/user/reference/overview/#Virtualization-environments.
|
|
||||||
|
|
||||||
if ${TRAVIS:-false}; then
|
|
||||||
NUMPROCESSES="2"
|
|
||||||
else
|
|
||||||
NUMPROCESSES="auto"
|
|
||||||
fi
|
|
||||||
|
|
||||||
pytest --numprocesses "$NUMPROCESSES" "$@"
|
|
||||||
+1
-2
@@ -51,8 +51,7 @@ cover () {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
pkg_dir=$(echo "$1" | tr _ -)
|
pkg_dir=$(echo "$1" | tr _ -)
|
||||||
pytest="$(dirname $0)/tools/pytest.sh"
|
pytest --cov "$pkg_dir" --cov-append --cov-report= --numprocesses auto --pyargs "$1"
|
||||||
"$pytest" --cov "$pkg_dir" --cov-append --cov-report= --pyargs "$1"
|
|
||||||
coverage report --fail-under="$min" --include="$pkg_dir/*" --show-missing
|
coverage report --fail-under="$min" --include="$pkg_dir/*" --show-missing
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -60,8 +60,6 @@ commands =
|
|||||||
setenv =
|
setenv =
|
||||||
PYTHONPATH = {toxinidir}
|
PYTHONPATH = {toxinidir}
|
||||||
PYTHONHASHSEED = 0
|
PYTHONHASHSEED = 0
|
||||||
passenv =
|
|
||||||
TRAVIS
|
|
||||||
|
|
||||||
[testenv:py27-oldest]
|
[testenv:py27-oldest]
|
||||||
commands =
|
commands =
|
||||||
@@ -69,40 +67,30 @@ commands =
|
|||||||
setenv =
|
setenv =
|
||||||
{[testenv]setenv}
|
{[testenv]setenv}
|
||||||
CERTBOT_OLDEST=1
|
CERTBOT_OLDEST=1
|
||||||
passenv =
|
|
||||||
{[testenv]passenv}
|
|
||||||
|
|
||||||
[testenv:py27-acme-oldest]
|
[testenv:py27-acme-oldest]
|
||||||
commands =
|
commands =
|
||||||
{[base]install_and_test} acme[dev]
|
{[base]install_and_test} acme[dev]
|
||||||
setenv =
|
setenv =
|
||||||
{[testenv:py27-oldest]setenv}
|
{[testenv:py27-oldest]setenv}
|
||||||
passenv =
|
|
||||||
{[testenv:py27-oldest]passenv}
|
|
||||||
|
|
||||||
[testenv:py27-apache-oldest]
|
[testenv:py27-apache-oldest]
|
||||||
commands =
|
commands =
|
||||||
{[base]install_and_test} certbot-apache
|
{[base]install_and_test} certbot-apache
|
||||||
setenv =
|
setenv =
|
||||||
{[testenv:py27-oldest]setenv}
|
{[testenv:py27-oldest]setenv}
|
||||||
passenv =
|
|
||||||
{[testenv:py27-oldest]passenv}
|
|
||||||
|
|
||||||
[testenv:py27-certbot-oldest]
|
[testenv:py27-certbot-oldest]
|
||||||
commands =
|
commands =
|
||||||
{[base]install_and_test} .[dev]
|
{[base]install_and_test} .[dev]
|
||||||
setenv =
|
setenv =
|
||||||
{[testenv:py27-oldest]setenv}
|
{[testenv:py27-oldest]setenv}
|
||||||
passenv =
|
|
||||||
{[testenv:py27-oldest]passenv}
|
|
||||||
|
|
||||||
[testenv:py27-dns-oldest]
|
[testenv:py27-dns-oldest]
|
||||||
commands =
|
commands =
|
||||||
{[base]install_and_test} {[base]dns_packages}
|
{[base]install_and_test} {[base]dns_packages}
|
||||||
setenv =
|
setenv =
|
||||||
{[testenv:py27-oldest]setenv}
|
{[testenv:py27-oldest]setenv}
|
||||||
passenv =
|
|
||||||
{[testenv:py27-oldest]passenv}
|
|
||||||
|
|
||||||
[testenv:py27-nginx-oldest]
|
[testenv:py27-nginx-oldest]
|
||||||
commands =
|
commands =
|
||||||
@@ -110,8 +98,6 @@ commands =
|
|||||||
python tests/lock_test.py
|
python tests/lock_test.py
|
||||||
setenv =
|
setenv =
|
||||||
{[testenv:py27-oldest]setenv}
|
{[testenv:py27-oldest]setenv}
|
||||||
passenv =
|
|
||||||
{[testenv:py27-oldest]passenv}
|
|
||||||
|
|
||||||
[testenv:py27_install]
|
[testenv:py27_install]
|
||||||
basepython = python2.7
|
basepython = python2.7
|
||||||
@@ -123,8 +109,6 @@ basepython = python2.7
|
|||||||
commands =
|
commands =
|
||||||
{[base]install_packages}
|
{[base]install_packages}
|
||||||
./tox.cover.sh
|
./tox.cover.sh
|
||||||
passenv =
|
|
||||||
{[testenv]passenv}
|
|
||||||
|
|
||||||
[testenv:lint]
|
[testenv:lint]
|
||||||
basepython = python2.7
|
basepython = python2.7
|
||||||
|
|||||||
Reference in New Issue
Block a user