mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 18:56:55 +02:00
travis: container env are bad at reading cpu count
Signed-off-by: Yoan Blanc <yoan.blanc@exoscale.ch>
This commit is contained in:
+1
-1
@@ -21,7 +21,7 @@ matrix:
|
|||||||
sudo: required
|
sudo: required
|
||||||
services: docker
|
services: docker
|
||||||
- python: "2.7"
|
- python: "2.7"
|
||||||
env: TOXENV=cover FYI="this also tests py27"
|
env: TOXENV=cover NUMPROCESSES=2 FYI="this also tests py27"
|
||||||
- sudo: required
|
- sudo: required
|
||||||
env: TOXENV=nginx_compat
|
env: TOXENV=nginx_compat
|
||||||
services: docker
|
services: docker
|
||||||
|
|||||||
+3
-1
@@ -8,6 +8,8 @@
|
|||||||
#
|
#
|
||||||
# -e makes sure we fail fast and don't submit coveralls submit
|
# -e makes sure we fail fast and don't submit coveralls submit
|
||||||
|
|
||||||
|
NUMPROCESSES=${NUMPROCESSES:=auto}
|
||||||
|
|
||||||
if [ "xxx$1" = "xxx" ]; then
|
if [ "xxx$1" = "xxx" ]; then
|
||||||
pkgs="certbot acme certbot_apache certbot_dns_cloudflare certbot_dns_cloudxns certbot_dns_digitalocean certbot_dns_dnsimple certbot_dns_dnsmadeeasy certbot_dns_gehirn certbot_dns_google certbot_dns_linode certbot_dns_luadns certbot_dns_nsone certbot_dns_ovh certbot_dns_rfc2136 certbot_dns_route53 certbot_dns_sakuracloud certbot_nginx certbot_postfix letshelp_certbot"
|
pkgs="certbot acme certbot_apache certbot_dns_cloudflare certbot_dns_cloudxns certbot_dns_digitalocean certbot_dns_dnsimple certbot_dns_dnsmadeeasy certbot_dns_gehirn certbot_dns_google certbot_dns_linode certbot_dns_luadns certbot_dns_nsone certbot_dns_ovh certbot_dns_rfc2136 certbot_dns_route53 certbot_dns_sakuracloud certbot_nginx certbot_postfix letshelp_certbot"
|
||||||
else
|
else
|
||||||
@@ -61,7 +63,7 @@ cover () {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
pkg_dir=$(echo "$1" | tr _ -)
|
pkg_dir=$(echo "$1" | tr _ -)
|
||||||
pytest --cov "$pkg_dir" --cov-append --cov-report= --numprocesses auto --pyargs "$1"
|
pytest --cov "$pkg_dir" --cov-append --cov-report= --numprocesses "$NUMPROCESSES" --pyargs "$1"
|
||||||
coverage report --fail-under="$min" --include="$pkg_dir/*" --show-missing
|
coverage report --fail-under="$min" --include="$pkg_dir/*" --show-missing
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user