1
0
Fork 0
mirror of https://github.com/mlocati/docker-php-extension-installer synced 2025-05-09 08:32:42 +00:00

Test yac with dependencies

Test: yac,yac+igbinary,yac+msgpack,yac+igbinary+msgpack
This commit is contained in:
Michele Locati 2021-08-02 17:18:35 +02:00
parent 73c96fc031
commit af74929e39
No known key found for this signature in database
GPG key ID: 98B7CE2E7234E28B

View file

@ -4,19 +4,28 @@ set -o errexit
set -o nounset
rc=0
if test -z "$(php --ri yac | grep 'Serializer => .*igbinary')"; then
echo 'yac has not been compiled with Igbinary support' >&2
else
echo 'yac has been compiled with Igbinary support'
if php --ri igbinary >/dev/null 2>/dev/null; then
if test -z "$(php --ri yac | grep 'Serializer => .*igbinary')"; then
echo 'yac has not been compiled with Igbinary support' >&2
rc=1
else
echo 'yac has been compiled with Igbinary support'
fi
fi
if test -z "$(php --ri yac | grep 'Serializer => .*json')"; then
echo 'yac has not been compiled with Json support' >&2
else
echo 'yac has been compiled with Json support'
if php --ri json >/dev/null 2>/dev/null; then
if test -z "$(php --ri yac | grep 'Serializer => .*json')"; then
echo 'yac has not been compiled with Json support' >&2
rc=1
else
echo 'yac has been compiled with Json support'
fi
fi
if test -z "$(php --ri yac | grep 'Serializer => .*msgpack')"; then
echo 'yac has not been compiled with Msgpack support' >&2
else
echo 'yac has been compiled with Msgpack support'
if php --ri msgpack >/dev/null 2>/dev/null; then
if test -z "$(php --ri yac | grep 'Serializer => .*msgpack')"; then
echo 'yac has not been compiled with Msgpack support' >&2
rc=1
else
echo 'yac has been compiled with Msgpack support'
fi
fi
exit $rc