mirror of
https://github.com/mlocati/docker-php-extension-installer
synced 2025-05-09 08:32:42 +00:00
Remove not passing extensions, test fewer extensions, fix installed extensions check
This commit is contained in:
parent
6fbd39d2fa
commit
817156a26f
3 changed files with 40 additions and 19 deletions
|
@ -56,7 +56,7 @@ testExtension () {
|
|||
testExtension_Image="$(getExtensionImage "${1}" "${2}")"
|
||||
printf ' - Docker image: %s\n' "${testExtension_Image}"
|
||||
testExtension_out=`mktemp`
|
||||
if $(docker run --rm --volume "${TRAVIS_BUILD_DIR}:/app" --workdir /app "${testExtension_Image}" bash -c "./install-php-extensions ${1} && php -r "'"'"exit(extension_loaded('${1}') ? 0 : 1);"'"'"" >"${testExtension_out}" 2>&1); then
|
||||
if $(docker run --rm --volume "${TRAVIS_BUILD_DIR}:/app" --workdir /app "${testExtension_Image}" bash -c "./install-php-extensions '${1}' && php ./scripts/check-installed-extension.php '${1}'" >"${testExtension_out}" 2>&1); then
|
||||
rm -rf "${testExtension_out}"
|
||||
printf ' - Passed\n'
|
||||
return 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue