Adding pcov for php 8.x to php-fpm and workspace
This commit is contained in:
parent
878c267d89
commit
b217f54d7a
@ -260,11 +260,9 @@ USER root
|
||||
ARG INSTALL_PCOV=false
|
||||
|
||||
RUN if [ ${INSTALL_PCOV} = true ]; then \
|
||||
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ]; then \
|
||||
if [ $(php -r "echo PHP_MINOR_VERSION;") != "0" ]; then \
|
||||
pecl install pcov && \
|
||||
docker-php-ext-enable pcov \
|
||||
;fi \
|
||||
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ] || { [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ] && [ $(php -r "echo PHP_MINOR_VERSION;") != "0" ]; }; then \
|
||||
pecl install pcov && \
|
||||
docker-php-ext-enable pcov \
|
||||
;fi \
|
||||
;fi
|
||||
|
||||
|
@ -376,12 +376,10 @@ USER root
|
||||
ARG INSTALL_PCOV=false
|
||||
|
||||
RUN if [ ${INSTALL_PCOV} = true ]; then \
|
||||
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ]; then \
|
||||
if [ $(php -r "echo PHP_MINOR_VERSION;") != "0" ]; then \
|
||||
pecl install pcov && \
|
||||
echo "extension=pcov.so" >> /etc/php/${LARADOCK_PHP_VERSION}/cli/php.ini && \
|
||||
echo "pcov.enabled" >> /etc/php/${LARADOCK_PHP_VERSION}/cli/php.ini \
|
||||
;fi \
|
||||
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ] || { [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ] && [ $(php -r "echo PHP_MINOR_VERSION;") != "0" ]; }; then \
|
||||
pecl install pcov && \
|
||||
echo "extension=pcov.so" >> /etc/php/${LARADOCK_PHP_VERSION}/cli/php.ini && \
|
||||
echo "pcov.enabled" >> /etc/php/${LARADOCK_PHP_VERSION}/cli/php.ini \
|
||||
;fi \
|
||||
;fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user