diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..d4125667e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM php:7.4-apache + +# Set the working directory to /var/www/html +WORKDIR /var/www/html + +# Copy the contents of the current directory into the container at /var/www/html +COPY . /var/www/html + +# Install any needed extensions +RUN docker-php-ext-install mysqli pdo_mysql + +# Make port 80 available to the world outside this container +EXPOSE 80 + +# Run apache when the container launches +CMD ["apache2-foreground"] diff --git a/composer.json b/composer.json index d483f34ea..1d3dcf310 100644 --- a/composer.json +++ b/composer.json @@ -43,5 +43,9 @@ "branch-alias": { "dev-main": "2.x-dev" } + }, + "scripts": { + "lint": "find . -name '*.php' -exec php -l {} \\;", + "test": "./vendor/bin/phpunit --coverage-html=coverage" } } diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 1e07db961..6a0e91347 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -4,6 +4,10 @@ ./src + + + +