diff --git a/travis-build.sh b/travis-build.sh index e773b823..461306c7 100755 --- a/travis-build.sh +++ b/travis-build.sh @@ -18,6 +18,7 @@ if [ -n "${PHP_VERSION}" ]; then if [ "${PHP_VERSION}" == "5.6" ]; then # Aerospike C Client SDK 4.0.7, Debian 9.6 is not supported # 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 fi if [ "${PHP_VERSION}" == "7.3" ]; then diff --git a/workspace/Dockerfile b/workspace/Dockerfile index ca1d6ed4..af8da12b 100644 --- a/workspace/Dockerfile +++ b/workspace/Dockerfile @@ -884,19 +884,23 @@ RUN set -xe; \ && \ if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \ ( \ - cd /tmp/aerospike-client-php/src/aerospike \ - && phpize \ - && ./build.sh \ - && make install \ + cd /tmp/aerospike-client-php/src/aerospike \ + && phpize \ + && ./build.sh \ + && make install \ ) \ else \ - ( \ - cd /tmp/aerospike-client-php/src \ - && phpize \ - && ./build.sh \ - && make install \ - ) \ - fi \ + if [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ]; then \ + ( \ + cd /tmp/aerospike-client-php/src \ + && phpize \ + && ./build.sh \ + && make install \ + ) \ + else \ + echo "AEROSPIKE does not support PHP 8.0" \ + ;fi \ + ;fi \ && rm /tmp/aerospike-client-php.tar.gz \ && 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 \