mirror of
https://github.com/certbot/certbot.git
synced 2026-08-03 03:41:53 +02:00
Separate integration coverage (#6113)
* check coverage separately * Add coverage minimums for integration tests.
This commit is contained in:
@@ -62,3 +62,5 @@ test_deployment_and_rollback nginx6.wtf
|
|||||||
# note: not reached if anything above fails, hence "killall" at the
|
# note: not reached if anything above fails, hence "killall" at the
|
||||||
# top
|
# top
|
||||||
nginx -c $nginx_root/nginx.conf -s stop
|
nginx -c $nginx_root/nginx.conf -s stop
|
||||||
|
|
||||||
|
coverage report --fail-under 75 --include 'certbot-nginx/*' --show-missing
|
||||||
|
|||||||
@@ -486,11 +486,11 @@ if [ "${BOULDER_INTEGRATION:-v1}" = "v2" ]; then
|
|||||||
--manual-cleanup-hook ./tests/manual-dns-cleanup.sh
|
--manual-cleanup-hook ./tests/manual-dns-cleanup.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
coverage report --fail-under 65 --include 'certbot/*' --show-missing
|
||||||
|
|
||||||
# Most CI systems set this variable to true.
|
# Most CI systems set this variable to true.
|
||||||
# If the tests are running as part of CI, Nginx should be available.
|
# If the tests are running as part of CI, Nginx should be available.
|
||||||
if ${CI:-false} || type nginx;
|
if ${CI:-false} || type nginx;
|
||||||
then
|
then
|
||||||
. ./certbot-nginx/tests/boulder-integration.sh
|
. ./certbot-nginx/tests/boulder-integration.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
coverage report --fail-under 67 -m
|
|
||||||
|
|||||||
Reference in New Issue
Block a user