Merge pull request #2751 from nalatreb/fix-mongo-install-php56
fix travis ci failing tests
This commit is contained in:
commit
358d02fd5a
|
@ -312,9 +312,10 @@ RUN if [ ${INSTALL_MONGO} = true ]; then \
|
||||||
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
|
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
|
||||||
pecl install mongo && \
|
pecl install mongo && \
|
||||||
docker-php-ext-enable mongo \
|
docker-php-ext-enable mongo \
|
||||||
;fi && \
|
;else \
|
||||||
pecl install mongodb && \
|
pecl install mongodb && \
|
||||||
docker-php-ext-enable mongodb \
|
docker-php-ext-enable mongodb \
|
||||||
|
;fi \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
|
|
|
@ -461,10 +461,11 @@ RUN if [ ${INSTALL_MONGO} = true ]; then \
|
||||||
pecl install mongo && \
|
pecl install mongo && \
|
||||||
echo "extension=mongo.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/mongo.ini && \
|
echo "extension=mongo.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/mongo.ini && \
|
||||||
ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/mongo.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/30-mongo.ini \
|
ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/mongo.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/30-mongo.ini \
|
||||||
;fi && \
|
;else \
|
||||||
pecl install mongodb && \
|
pecl install mongodb && \
|
||||||
echo "extension=mongodb.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/mongodb.ini && \
|
echo "extension=mongodb.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/mongodb.ini && \
|
||||||
ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/mongodb.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/30-mongodb.ini \
|
ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/mongodb.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/30-mongodb.ini \
|
||||||
|
;fi \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
|
@ -590,9 +591,15 @@ RUN if [ ${INSTALL_LIBPNG} = true ]; then \
|
||||||
ARG INSTALL_INOTIFY=false
|
ARG INSTALL_INOTIFY=false
|
||||||
|
|
||||||
RUN if [ ${INSTALL_INOTIFY} = true ]; then \
|
RUN if [ ${INSTALL_INOTIFY} = true ]; then \
|
||||||
pecl -q install inotify && \
|
if [ $(php -r "echo PHP_MAJOR_VERSION;") != "5" ]; then \
|
||||||
echo "extension=inotify.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/inotify.ini && \
|
pecl -q install inotify-0.1.6 && \
|
||||||
ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/inotify.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/20-inotify.ini \
|
echo "extension=inotify.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/inotify.ini && \
|
||||||
|
ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/inotify.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/20-inotify.ini \
|
||||||
|
else \
|
||||||
|
pecl -q install inotify && \
|
||||||
|
echo "extension=inotify.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/inotify.ini && \
|
||||||
|
ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/inotify.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/20-inotify.ini \
|
||||||
|
;fi \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
|
|
Loading…
Reference in New Issue