-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (25 loc) · 719 Bytes
/
Makefile
File metadata and controls
33 lines (25 loc) · 719 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
32
33
default: help
## Display this message
help:
@echo "Usage: make <target>"
@echo "Available targets:"
@awk '/^##/ {c=$$0}; /^[a-zA-Z_-]+:/ {gsub(":$$", "", $$1); gsub(/^#+/, "", c); printf "\033[36m%-30s\033[0m %s\n", $$1, c}; /^([^#]|$$)/ {c=""}' $(MAKEFILE_LIST)
## Install all dependencies
install:
composer install --prefer-dist -n -v -o
## Update all dependencies
update:
composer update --prefer-dist
## Run all unit tests
unit-test:
./vendor/bin/phpunit --testsuite=Unit
## Run all tests
test: unit-test
## Run lint
lint:
find src tests -type f -iname '*php' -exec php -l {} \;
## Run static code analysis
analyse-code: lint
./vendor/bin/psalm
## Run all analysis tasks
delivery: analyse-code test