Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
621 lars 1
# Well documented Makefiles
2
DEFAULT_GOAL := help
3
help:
4
	@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n  make \033[36m<target>\033[0m\n"} /^[a-zA-Z0-9_-]+:.*?##/ { printf "  \033[36m%-40s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
5
 
6
##@ [Docker]
7
start: ## Spin up the container
8
	docker-compose up -d
9
 
10
stop: ## Shut down the containers
11
	docker-compose down
12
 
13
build: ## Build all docker images
14
	docker-compose build
15
 
16
##@ [Application]
17
composer: ## Run composer commands. Specify the command e.g. via "make composer ARGS="install|update|require <dependency>"
18
	docker-compose run --rm app composer $(ARGS)
19
 
20
lint: ## Run the Linter
21
	docker-compose run --rm app ./vendor/bin/pint -v
22
 
23
test-lint: ## Run the Linter Test
24
	docker-compose run --rm app ./vendor/bin/pint --test -v
25
 
26
test-types: ## Run the PHPStan analysis
27
	docker-compose run --rm app ./vendor/bin/phpstan analyse --ansi
28
 
29
test-unit: ## Run the Pest Test Suite
30
	docker-compose run --rm app ./vendor/bin/pest --colors=always
31
 
32
test: ## Run the tests. Apply arguments via make test ARGS="--init"
33
	make test-lint && make test-types && make test-unit