add Docker and Drone boilerplate
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Lexi / Zoe 2020-06-28 17:20:42 +02:00
parent 5512a19e1f
commit 4da6e4b064
Signed by: binaryDiv
GPG key ID: F8D4956E224DA232
6 changed files with 117 additions and 0 deletions

35
Makefile Normal file
View file

@ -0,0 +1,35 @@
### Variables
DOCKER_COMPOSE_CMD := docker-compose -f docker/docker-compose.local.yml
COMPOSER := composer
PHPUNIT := vendor/bin/phpunit
.PHONY: build up down logs install test phpunit open_coverage
### Container management
build:
${DOCKER_COMPOSE_CMD} build
up:
${DOCKER_COMPOSE_CMD} up --build --detach
down:
${DOCKER_COMPOSE_CMD} down
logs:
${DOCKER_COMPOSE_CMD} logs -f || true
### Dependency management
install:
${COMPOSER} install
### Test suites
test: phpunit
phpunit:
${PHPUNIT} -c phpunit.xml
open_coverage:
${BROWSER} coverage/index.html