diff --git a/Dockerfile b/Dockerfile index 207a6e4..feedc90 100644 --- a/Dockerfile +++ b/Dockerfile @@ -66,7 +66,9 @@ RUN set -ex && if [ $OPCACHE_DEFAULTS = "true" ]; then \ # Xdebug ARG XDEBUG=false -RUN if [ $XDEBUG = "true" ]; then pecl install xdebug && docker-php-ext-enable xdebug; fi +RUN if [ $XDEBUG = "true" ]; then \ + pecl install xdebug && docker-php-ext-enable xdebug \ + && echo "xdebug.mode=develop,coverage" | tee $PHP_INI_DIR/conf.d/xdebug-mode.ini; fi # Composer ARG COMPOSER=true @@ -75,7 +77,7 @@ RUN if [ $COMPOSER = "true" ]; then \ # npm ARG NODE_JS=false -ARG NODE_VERSION="setup_13.x" +ARG NODE_VERSION="setup_16.x" RUN if [ $NODE_JS = "true" ]; then \ curl -sL https://deb.nodesource.com/$NODE_VERSION | bash - && \ apt-get install -y --no-install-recommends nodejs && \ @@ -109,7 +111,7 @@ RUN if [ $WP_CLI = "true" ]; then \ # PHPUnit ARG PHPUNIT=true -ARG PHPUNIT_VERSION="9" +ARG PHPUNIT_VERSION="9.5.4" RUN if [ $PHPUNIT = "true" ]; then \ curl -LO https://phar.phpunit.de/phpunit-${PHPUNIT_VERSION}.phar \ && chmod +x phpunit-${PHPUNIT_VERSION}.phar \ diff --git a/LICENSE b/LICENSE index 0dbcaf1..124b5dc 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2018 devosc +Copyright (c) 2021 devosc Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/lib/php/Dockerfile b/lib/php/Dockerfile index 13f1a20..278de24 100644 --- a/lib/php/Dockerfile +++ b/lib/php/Dockerfile @@ -66,7 +66,9 @@ RUN set -ex && if [ $OPCACHE_DEFAULTS = "true" ]; then \ # Xdebug ARG XDEBUG=false -RUN if [ $XDEBUG = "true" ]; then pecl install xdebug && docker-php-ext-enable xdebug; fi +RUN if [ $XDEBUG = "true" ]; then \ + pecl install xdebug && docker-php-ext-enable xdebug \ + && echo "xdebug.mode=develop,coverage" | tee $PHP_INI_DIR/conf.d/xdebug-mode.ini; fi # Composer ARG COMPOSER=true @@ -85,7 +87,7 @@ RUN if [ $MAIL = "true" ]; then \ # PHPUnit ARG PHPUNIT=true -ARG PHPUNIT_VERSION="9" +ARG PHPUNIT_VERSION="9.5.4" RUN if [ $PHPUNIT = "true" ]; then \ curl -LO https://phar.phpunit.de/phpunit-${PHPUNIT_VERSION}.phar \ && chmod +x phpunit-${PHPUNIT_VERSION}.phar \