-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (21 loc) · 995 Bytes
/
Makefile
File metadata and controls
31 lines (21 loc) · 995 Bytes
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
.PHONY: help start stop
.DEFAULT_GOAL := help
help: # Show Help
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n\nTargets:\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-10s\033[0m %s\n", $$1, $$2 }' $(MAKEFILE_LIST)
install: ## First entry command to install all the necessary
make startd
make composer-install
start: ## Start docker-compose
@docker-compose up
startd: ## Startd
@docker-compose up -d
stop: ## Stop
@docker-compose stop
composer-install: ## Install composer dependencies
@docker exec php sh -c "XDEBUG_MODE=off composer install"
test: ## Execute PHPUnite test
@docker exec php sh -c "XDEBUG_MODE=off php ./vendor/bin/phpunit -c phpunit.xml.dist"
coverage-text: ## Execute phpunit coverage in text format
@docker exec php sh -c "XDEBUG_MODE=coverage php -n -dzend_extension=xdebug ./vendor/phpunit/phpunit/phpunit --coverage-text"
infection: ## Execute Infection
@docker exec php sh -c "XDEBUG_MODE=coverage infection --threads=1"