-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
29 lines (19 loc) · 830 Bytes
/
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
#!/usr/bin/make
SHELL = /bin/sh
.PHONY : help build latest install lowest test 'shell' clean
.DEFAULT_GOAL : help
help: ## Show this help
@printf "\033[33m%s:\033[0m\n" 'Available commands'
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf " \033[32m%-14s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
build: ## Build docker image for local development
docker compose build
install: clean ## Install regular PHP dependencies
docker compose run app composer update --no-interaction --prefer-dist
test: ## Execute php tests and linters
docker compose run app composer test
phpunit: ## Execute PHPUnit tests
docker compose run app composer phpunit
shell: ## Start shell into container with php
docker compose run app sh
clean: ## Remove all dependencies and unimportant files
-rm -Rf ./composer.lock ./vendor