Skip to content

Commit

Permalink
add phpunit
Browse files Browse the repository at this point in the history
  • Loading branch information
devosc committed Dec 31, 2018
1 parent db574d5 commit d2b12ad
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .build-sample.env
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ export PHP_EXT_CONFIGURE=
export PHP_EXT_INSTALL=
export COMPOSER=true
export XDEBUG=false
export PHPUNIT=true
export NODE_JS=true
export WP_CLI=false
export RELEASE_VERSION=apache
export CLI_RELEASE_VERSION=cli
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@ RUN if [ $WP_CLI = "true" ]; then \
chmod +x wp-cli.phar && \
mv wp-cli.phar /usr/local/bin/wp; fi

# PHPUnit
ARG PHPUNIT=true
ARG PHPUNIT_VERSION="7.5.1"
RUN if [ $PHPUNIT = "true" ]; then \
curl -O https://phar.phpunit.de/phpunit-${PHPUNIT_VERSION}.phar \
&& chmod +x phpunit-${PHPUNIT_VERSION}.phar \
&& mv phpunit-${PHPUNIT_VERSION}.phar /usr/local/bin/phpunit; fi

# Apache
ARG WWW_USER=app
ARG WWW_GROUP=app
Expand Down

0 comments on commit d2b12ad

Please sign in to comment.