From d2b12ad057b014f72df24c9d0cf1f92ff539ea5a Mon Sep 17 00:00:00 2001 From: devosc Date: Mon, 31 Dec 2018 17:20:20 -0600 Subject: [PATCH] add phpunit --- .build-sample.env | 2 ++ Dockerfile | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/.build-sample.env b/.build-sample.env index a7b640c..1975353 100644 --- a/.build-sample.env +++ b/.build-sample.env @@ -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 diff --git a/Dockerfile b/Dockerfile index 5211a90..aa57b8a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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