Merge pull request #2882 from PavelSavushkinMix/fix/php5.6_turn_off_aerospike_build

fix(aerospike extension): turn off build in Travis due to image version
This commit is contained in:
Shao Yu-Lung (Allen) 2021-03-15 12:01:40 +08:00 committed by GitHub
commit d6b7d95f34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 11 deletions

View File

@ -18,6 +18,7 @@ if [ -n "${PHP_VERSION}" ]; then
if [ "${PHP_VERSION}" == "5.6" ]; then if [ "${PHP_VERSION}" == "5.6" ]; then
# Aerospike C Client SDK 4.0.7, Debian 9.6 is not supported # Aerospike C Client SDK 4.0.7, Debian 9.6 is not supported
# https://github.com/aerospike/aerospike-client-php5/issues/145 # https://github.com/aerospike/aerospike-client-php5/issues/145
sed -i -- 's/WORKSPACE_INSTALL_AEROSPIKE=true/WORKSPACE_INSTALL_AEROSPIKE=false/g' .env
sed -i -- 's/PHP_FPM_INSTALL_AEROSPIKE=true/PHP_FPM_INSTALL_AEROSPIKE=false/g' .env sed -i -- 's/PHP_FPM_INSTALL_AEROSPIKE=true/PHP_FPM_INSTALL_AEROSPIKE=false/g' .env
fi fi
if [ "${PHP_VERSION}" == "7.3" ]; then if [ "${PHP_VERSION}" == "7.3" ]; then

View File

@ -890,13 +890,17 @@ RUN set -xe; \
&& make install \ && make install \
) \ ) \
else \ else \
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ]; then \
( \ ( \
cd /tmp/aerospike-client-php/src \ cd /tmp/aerospike-client-php/src \
&& phpize \ && phpize \
&& ./build.sh \ && ./build.sh \
&& make install \ && make install \
) \ ) \
fi \ else \
echo "AEROSPIKE does not support PHP 8.0" \
;fi \
;fi \
&& rm /tmp/aerospike-client-php.tar.gz \ && rm /tmp/aerospike-client-php.tar.gz \
&& echo 'extension=aerospike.so' >> /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/aerospike.ini \ && echo 'extension=aerospike.so' >> /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/aerospike.ini \
&& echo 'aerospike.udf.lua_system_path=/usr/local/aerospike/lua' >> /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/aerospike.ini \ && echo 'aerospike.udf.lua_system_path=/usr/local/aerospike/lua' >> /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/aerospike.ini \