add Docker and Drone boilerplate
This commit is contained in:
parent
5512a19e1f
commit
c9b3757027
6 changed files with 117 additions and 0 deletions
35
Makefile
Normal file
35
Makefile
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue