forked from BeSimple/BeSimpleSoap
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
44 lines (32 loc) · 1.12 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
DOCKER_COMPOSE = docker-compose
EXEC = $(DOCKER_COMPOSE) exec app
RUN = $(DOCKER_COMPOSE) run app
COMPOSER = $(RUN) composer
QA = docker run -it --rm -v `pwd`:/project mykiwi/phaudit:7.2
##
## Project
## -------
##
kill:
$(DOCKER_COMPOSE) kill
$(DOCKER_COMPOSE) down --volumes --remove-orphans
start: up test ## Start the project
up: ## Up the project
$(DOCKER_COMPOSE) up -d --build --remove-orphans
stop: ## Stop the project
$(DOCKER_COMPOSE) stop
composer-install: ## Execute composer instalation
$(COMPOSER) install --prefer-dist
test: composer-install ## Execute composer instalation
$(RUN) bin/simple-phpunit
composer-update: ## Execute package update
$(COMPOSER) update $(BUNDLE)
php-cs-fixer: ## apply php-cs-fixer fixes
$(QA) php-cs-fixer fix src --using-cache=no --verbose --diff --rules @Symfony
enter: ## enter docker container
$(EXEC) bash
.PHONY: up start stop enter
.DEFAULT_GOAL := help
help:
@grep -E '(^[a-zA-Z_-]+:.*?##.*$$)|(^##)' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}' | sed -e 's/\[32m##/[33m/'
.PHONY: help