From 3c3d1b997ee0011e043c9b4469f9afaea31a612a Mon Sep 17 00:00:00 2001 From: Meritoo Date: Sun, 28 Oct 2018 00:10:42 +0200 Subject: [PATCH] Docker > docker-compose.yml > add "phpunit" service > used to run PHPUnit's tests --- CHANGELOG.md | 1 + docker-compose.yml | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9484473..55f381d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ Common and useful classes, methods, exceptions etc. 1. Phing > update configuration 2. Utilities > Date > update descriptions of methods +3. Docker > docker-compose.yml > add "phpunit" service > used to run PHPUnit's tests # 0.1.3 diff --git a/docker-compose.yml b/docker-compose.yml index b4c7404..6224f02 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,9 @@ version: '3' services: + # + # Required to run project + # php: image: ${DOCKER_CONTAINER_OWNER}/${DOCKER_CONTAINER_PROJECT}-php container_name: ${DOCKER_CONTAINER_OWNER}-${DOCKER_CONTAINER_PROJECT}-php @@ -18,3 +21,13 @@ services: entrypoint: php -d memory_limit=-1 /usr/local/bin/composer volumes: - .:/project:cached + # + # Required to run PHPUnit's tests + # + phpunit: + image: ${DOCKER_CONTAINER_OWNER}/${DOCKER_CONTAINER_PROJECT}-php + container_name: ${DOCKER_CONTAINER_OWNER}-${DOCKER_CONTAINER_PROJECT}-phpunit + entrypoint: ./vendor/bin/phpunit + command: --version + volumes: + - .:/project:cached