diff --git a/scripts/ci-test-extensions b/scripts/ci-test-extensions index 7370066..1bfa2dc 100755 --- a/scripts/ci-test-extensions +++ b/scripts/ci-test-extensions @@ -328,7 +328,7 @@ testExtensionFor() { printf ' - Docker image: %s\n' "$testExtensionFor_Image" testExtensionFor_out="$(mktemp)" testExtensionFor_start=$(date +%s) - if $(docker run --rm --volume "$CI_BUILD_DIR:/app" --env CI=true --env IPE_FIX_CACERTS=1 --env IPE_ASPELL_LANGUAGES='en fr' --workdir /app "$testExtensionFor_Image" sh -c "./install-php-extensions $1 && php ./scripts/check-installed-extension.php $1" >"$testExtensionFor_out" 2>&1); then + if $(docker run --rm --volume "$CI_BUILD_DIR:/app" --env CI=true --env IPE_FIX_CACERTS=1 --env IPE_ASPELL_LANGUAGES='en fr' --workdir /app "$testExtensionFor_Image" sh -c "./scripts/fix-jessie-keyring && ./install-php-extensions $1 && php ./scripts/check-installed-extension.php $1" >"$testExtensionFor_out" 2>&1); then testExtensionFor_end=$(date +%s) testExtensionFor_delta=$(expr $testExtensionFor_end - $testExtensionFor_start) rm -rf "$testExtensionFor_out" diff --git a/scripts/fix-jessie-keyring b/scripts/fix-jessie-keyring new file mode 100755 index 0000000..a58ab0b --- /dev/null +++ b/scripts/fix-jessie-keyring @@ -0,0 +1,12 @@ +#!/bin/sh + +# Let's set a sane environment +set -o errexit +set -o nounset + +if grep -q 'VERSION="8 (jessie)"' /etc/os-release; then + echo 'Fix Debian Jessie keyring' + curl -o /tmp/debian-archive-keyring.deb -sSLf http://ftp.debian.org/debian/pool/main/d/debian-archive-keyring/debian-archive-keyring_2019.1+deb10u1_all.deb + dpkg -i /tmp/debian-archive-keyring.deb + rm -rf /tmp/debian-archive-keyring.deb +fi