mirror of
https://github.com/danog/docker-php-extension-installer.git
synced 2024-12-02 09:27:58 +01:00
Show installed PHP modules after the new extension has been installed
This commit is contained in:
parent
1de03db4ff
commit
e01db37cd1
@ -56,11 +56,11 @@ testExtension () {
|
|||||||
if test -n "$(printf '%s' "${2}" | sed -E 's/^[0-9]+\.[0-9]+$//')"
|
if test -n "$(printf '%s' "${2}" | sed -E 's/^[0-9]+\.[0-9]+$//')"
|
||||||
then
|
then
|
||||||
printf ' INVALID PHP VERSION: %s\n' "${2}" >&2
|
printf ' INVALID PHP VERSION: %s\n' "${2}" >&2
|
||||||
exit 1
|
return 0
|
||||||
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}" ./install-php-extensions "${1}"
|
docker run --rm --volume "${TRAVIS_BUILD_DIR}:/app" --workdir /app "${testExtension_Image}" bash -c "./install-php-extensions ${1} && php -m"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Test a new extension line
|
# Test a new extension line
|
||||||
|
Loading…
Reference in New Issue
Block a user