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:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
@@ -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 \
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user