Skip to content

Commit c17fb77

Browse files
committed
tests
1 parent 4b1d2ff commit c17fb77

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎.github/scripts/setup-minimum-php.sh‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ docker-php-ext-configure gd --with-freetype --with-jpeg
1313
docker-php-ext-install -j2 bcmath gd intl pdo_mysql zip
1414
printf 'memory_limit=1G\n' > "$PHP_INI_DIR/conf.d/ci.ini"
1515

16-
# Verify Composer's installer before executing it, and retain the PHP 8.2-compatible 2.8 line.
17-
curl --fail --silent --show-error --location https://composer.github.io/installer.sig --output /tmp/composer-installer.sig
18-
curl --fail --silent --show-error --location https://getcomposer.org/installer --output /tmp/composer-setup.php
16+
# Retry temporary download failures, then verify the installer before executing it.
17+
# Retain the PHP 8.2-compatible Composer 2.8 line.
18+
curl --fail --silent --show-error --location --retry 3 --retry-all-errors --retry-delay 2 --connect-timeout 15 --max-time 60 https://composer.github.io/installer.sig --output /tmp/composer-installer.sig
19+
curl --fail --silent --show-error --location --retry 3 --retry-all-errors --retry-delay 2 --connect-timeout 15 --max-time 60 https://getcomposer.org/installer --output /tmp/composer-setup.php
1920
php -r 'exit(hash_equals(trim(file_get_contents("/tmp/composer-installer.sig")), hash_file("sha384", "/tmp/composer-setup.php")) ? 0 : 1);'
2021
php /tmp/composer-setup.php --version=2.8.12 --install-dir=/usr/local/bin --filename=composer
2122
rm /tmp/composer-installer.sig /tmp/composer-setup.php

0 commit comments

Comments
 (0)