Skip to content

Commit

Permalink
code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
devosc committed May 11, 2021
1 parent 0a04df8 commit 6153330
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 && \
Expand Down Expand Up @@ -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 \
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 4 additions & 2 deletions lib/php/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 \
Expand Down

0 comments on commit 6153330

Please sign in to comment.