Fix tests on XlsWriter ext
This commit is contained in:
parent
37b22ebe01
commit
186928fb07
|
@ -492,7 +492,7 @@ ARG INSTALL_XLSWRITER=false
|
||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
if [ ${INSTALL_XLSWRITER} = true ]; then \
|
if [ ${INSTALL_XLSWRITER} = true ]; then \
|
||||||
# Install Php xlswriter Extension \
|
# Install Php xlswriter Extension \
|
||||||
if [ $(php -r "echo PHP_MAJOR_VERSION;") > "5" ]; then \
|
if [ $(php -r "echo PHP_MAJOR_VERSION;") != "5" ]; then \
|
||||||
pecl install xlswriter &&\
|
pecl install xlswriter &&\
|
||||||
docker-php-ext-enable xlswriter &&\
|
docker-php-ext-enable xlswriter &&\
|
||||||
php -m | grep -q 'xlswriter'; \
|
php -m | grep -q 'xlswriter'; \
|
||||||
|
|
|
@ -372,7 +372,7 @@ ARG INSTALL_XLSWRITER=false
|
||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
if [ ${INSTALL_XLSWRITER} = true ]; then \
|
if [ ${INSTALL_XLSWRITER} = true ]; then \
|
||||||
# Install Php xlswriter Extension \
|
# Install Php xlswriter Extension \
|
||||||
if [ $(php -r "echo PHP_MAJOR_VERSION;") > "5" ]; then \
|
if [ $(php -r "echo PHP_MAJOR_VERSION;") != "5" ]; then \
|
||||||
pecl install xlswriter && \
|
pecl install xlswriter && \
|
||||||
docker-php-ext-enable xlswriter && \
|
docker-php-ext-enable xlswriter && \
|
||||||
php -m | grep -q 'xlswriter'; \
|
php -m | grep -q 'xlswriter'; \
|
||||||
|
|
|
@ -567,7 +567,7 @@ ARG INSTALL_XLSWRITER=false
|
||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
if [ ${INSTALL_XLSWRITER} = true ]; then \
|
if [ ${INSTALL_XLSWRITER} = true ]; then \
|
||||||
# Install Php xlswriter Extension
|
# Install Php xlswriter Extension
|
||||||
if [ $(php -r "echo PHP_MAJOR_VERSION;") > "5" ]; then \
|
if [ $(php -r "echo PHP_MAJOR_VERSION;") != "5" ]; then \
|
||||||
echo '' | pecl -q install xlswriter && \
|
echo '' | pecl -q install xlswriter && \
|
||||||
echo "extension=xlswriter.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/xlswriter.ini && \
|
echo "extension=xlswriter.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/xlswriter.ini && \
|
||||||
ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/xlswriter.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/20-xlswriter.ini; \
|
ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/xlswriter.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/20-xlswriter.ini; \
|
||||||
|
|
Loading…
Reference in New Issue