mirror of
https://github.com/danog/docker-php-extension-installer.git
synced 2024-12-11 17:09:51 +01:00
Better check of installed extension
This commit is contained in:
parent
79f6025d71
commit
b58f5f192c
@ -60,7 +60,7 @@ testExtension () {
|
|||||||
fi
|
fi
|
||||||
testExtension_Image="$(getExtensionImage "${1}" "${2}")"
|
testExtension_Image="$(getExtensionImage "${1}" "${2}")"
|
||||||
printf ' - Docker image: %s\n' "${testExtension_Image}"
|
printf ' - Docker image: %s\n' "${testExtension_Image}"
|
||||||
docker run --rm --volume "${TRAVIS_BUILD_DIR}:/app" --workdir /app "${testExtension_Image}" bash -c "./install-php-extensions ${1} && php -m"
|
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);"'"'""
|
||||||
}
|
}
|
||||||
|
|
||||||
# Test a new extension line
|
# Test a new extension line
|
||||||
|
Loading…
Reference in New Issue
Block a user