From 793c1a085f87c26c3f165efed11ef3c737267958 Mon Sep 17 00:00:00 2001 From: Pavel Savushkin Date: Sun, 14 Mar 2021 18:40:06 +0200 Subject: [PATCH] fix(aerospike extension): turn off build in Travis due to image version PHP 8.0 is not supported by Aerospike. See the issue's references. Closes #2881 --- workspace/Dockerfile | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/workspace/Dockerfile b/workspace/Dockerfile index 1225fc8..205436c 100644 --- a/workspace/Dockerfile +++ b/workspace/Dockerfile @@ -872,18 +872,22 @@ 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 \ - ) \ + 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 \