Skip to content

Commit 6153330

Browse files
committed
code coverage
1 parent 0a04df8 commit 6153330

3 files changed

Lines changed: 10 additions & 6 deletions

File tree

Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ RUN set -ex && if [ $OPCACHE_DEFAULTS = "true" ]; then \
6666

6767
# Xdebug
6868
ARG XDEBUG=false
69-
RUN if [ $XDEBUG = "true" ]; then pecl install xdebug && docker-php-ext-enable xdebug; fi
69+
RUN if [ $XDEBUG = "true" ]; then \
70+
pecl install xdebug && docker-php-ext-enable xdebug \
71+
&& echo "xdebug.mode=develop,coverage" | tee $PHP_INI_DIR/conf.d/xdebug-mode.ini; fi
7072

7173
# Composer
7274
ARG COMPOSER=true
@@ -75,7 +77,7 @@ RUN if [ $COMPOSER = "true" ]; then \
7577

7678
# npm
7779
ARG NODE_JS=false
78-
ARG NODE_VERSION="setup_13.x"
80+
ARG NODE_VERSION="setup_16.x"
7981
RUN if [ $NODE_JS = "true" ]; then \
8082
curl -sL https://deb.nodesource.com/$NODE_VERSION | bash - && \
8183
apt-get install -y --no-install-recommends nodejs && \
@@ -109,7 +111,7 @@ RUN if [ $WP_CLI = "true" ]; then \
109111

110112
# PHPUnit
111113
ARG PHPUNIT=true
112-
ARG PHPUNIT_VERSION="9"
114+
ARG PHPUNIT_VERSION="9.5.4"
113115
RUN if [ $PHPUNIT = "true" ]; then \
114116
curl -LO https://phar.phpunit.de/phpunit-${PHPUNIT_VERSION}.phar \
115117
&& chmod +x phpunit-${PHPUNIT_VERSION}.phar \

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2018 devosc
3+
Copyright (c) 2021 devosc
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

lib/php/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ RUN set -ex && if [ $OPCACHE_DEFAULTS = "true" ]; then \
6666

6767
# Xdebug
6868
ARG XDEBUG=false
69-
RUN if [ $XDEBUG = "true" ]; then pecl install xdebug && docker-php-ext-enable xdebug; fi
69+
RUN if [ $XDEBUG = "true" ]; then \
70+
pecl install xdebug && docker-php-ext-enable xdebug \
71+
&& echo "xdebug.mode=develop,coverage" | tee $PHP_INI_DIR/conf.d/xdebug-mode.ini; fi
7072

7173
# Composer
7274
ARG COMPOSER=true
@@ -85,7 +87,7 @@ RUN if [ $MAIL = "true" ]; then \
8587

8688
# PHPUnit
8789
ARG PHPUNIT=true
88-
ARG PHPUNIT_VERSION="9"
90+
ARG PHPUNIT_VERSION="9.5.4"
8991
RUN if [ $PHPUNIT = "true" ]; then \
9092
curl -LO https://phar.phpunit.de/phpunit-${PHPUNIT_VERSION}.phar \
9193
&& chmod +x phpunit-${PHPUNIT_VERSION}.phar \

0 commit comments

Comments
 (0)