Skip to content
Permalink
Browse files

add dockerfiles for testing

  • Loading branch information...
morris committed May 3, 2019
1 parent 14b7f03 commit 3faf4f0dca2044daec6bca12635c2bd4dc5b64db
Showing with 24 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +7 −0 Dockerfile
  3. +4 −0 docker-compose.yml
  4. +12 −0 phpunit.xml
@@ -1,3 +1,4 @@
coverage
vendor
.php_cs.cache
composer.lock
@@ -0,0 +1,7 @@
FROM php:7.2-cli
RUN pecl install xdebug
RUN docker-php-ext-enable xdebug
RUN curl --silent --show-error https://getcomposer.org/installer | php
COPY . .
RUN php composer.phar install
CMD ["php", "composer.phar", "test"]
@@ -0,0 +1,4 @@
version: "3"
services:
test:
build: .
@@ -0,0 +1,12 @@
<phpunit>
<testsuites>
<testsuite name="tests">
<directory>tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src/LessQL</directory>
</whitelist>
</filter>
</phpunit>

0 comments on commit 3faf4f0

Please sign in to comment.
You can’t perform that action at this time.