docker-compose-viz/Makefile

35 lines
581 B
Makefile
Raw Normal View History

2016-08-05 15:10:28 +02:00
DCV_IMAGE_NAME=pmsipilot/docker-compose-viz
COMPOSER ?= composer
COMPOSERFLAGS ?=
DOCKER ?= docker
PHP ?= php
2016-08-05 20:40:29 +02:00
.PHONY: clean docker test unit cs fix-cs
2016-08-05 15:10:28 +02:00
docker: docker.lock
2016-08-05 20:40:29 +02:00
test: vendor unit cs
unit: vendor
2020-07-23 22:26:42 +02:00
$(COMPOSER) run ut
2016-08-05 15:10:28 +02:00
2016-08-05 20:40:29 +02:00
cs:
2020-07-23 22:26:42 +02:00
$(COMPOSER) run cst
2016-08-05 20:40:29 +02:00
2016-08-05 20:51:29 +02:00
fix-cs:
2020-07-23 22:26:42 +02:00
$(COMPOSER) run cs
2016-08-05 20:40:29 +02:00
2016-08-05 15:10:28 +02:00
clean:
rm -rf vendor/
docker.lock: Dockerfile bin/entrypoint.sh vendor src/application.php src/functions.php
2016-08-05 15:10:28 +02:00
$(DOCKER) build -t $(DCV_IMAGE_NAME) .
touch docker.lock
vendor: composer.lock
$(COMPOSER) install --prefer-dist
composer.lock: composer.json
$(COMPOSER) update $(COMPOSERFLAGS)