Merge pull request #2751 from nalatreb/fix-mongo-install-php56

fix travis ci failing tests
This commit is contained in:
Shao Yu-Lung (Allen)
2020-12-17 16:28:16 +08:00
committed by GitHub
2 changed files with 18 additions and 10 deletions

View File

@ -312,9 +312,10 @@ RUN if [ ${INSTALL_MONGO} = true ]; then \
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
pecl install mongo && \
docker-php-ext-enable mongo \
;fi && \
pecl install mongodb && \
docker-php-ext-enable mongodb \
;else \
pecl install mongodb && \
docker-php-ext-enable mongodb \
;fi \
;fi
###########################################################################