fix php5.6 workspace aerospike travis-ci build failed. (#1738)

This commit is contained in:
Shao Yu-Lung (Allen)
2018-07-31 22:38:02 +08:00
committed by GitHub
parent 8180804ae0
commit 1b865dd153
3 changed files with 23 additions and 7 deletions

View File

@ -15,6 +15,10 @@ if [ -n "${PHP_VERSION}" ]; then
sed -i -- "s/PHP_VERSION=.*/PHP_VERSION=${PHP_VERSION}/g" .env
sed -i -- 's/=false/=true/g' .env
sed -i -- 's/PHPDBG=true/PHPDBG=false/g' .env
if [ "${PHP_VERSION}" == "5.6" ]; then
sed -i -- 's/^AEROSPIKE_PHP_REPOSITORY=/##AEROSPIKE_PHP_REPOSITORY=/g' .env
sed -i -- 's/^# AEROSPIKE_PHP_REPOSITORY=/AEROSPIKE_PHP_REPOSITORY=/g' .env
fi
cat .env
docker-compose build ${BUILD_SERVICE}
docker images