-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (43 loc) · 1.49 KB
/
Makefile
File metadata and controls
56 lines (43 loc) · 1.49 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
# Run `make` (no arguments) to get a short description of what is available
# within this `Makefile`.
help: ## shows this help
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_\-\.]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
.PHONY: help
install: install-tools ## Install PHP dependencies
composer install
.PHONY: install
update: ## Update PHP dependencies
composer update
.PHONY: update
bump: ## Bump PHP dev dependencies and update
composer update && composer bump -D && composer update
.PHONY: bump
clean: ## Clear out caches and documentation assets
rm -rf .phpunit.cache
rm -f .phpcs-cache
vendor/bin/psalm --clear-cache
sa: ## Run static analysis checks
vendor/bin/psalm --no-cache --threads=1
.PHONY: static-analysis
cs: ## Run coding standards checks
vendor/bin/phpcs
.PHONY: coding-standards
cs-fix: ## Fix coding standard violations
vendor/bin/phpcbf
.PHONY: coding-standards-fix
test: ## Run unit tests
vendor/bin/phpunit
.PHONY: test
install-tools: ## Install standalone tools
cd tools/crc && composer install
.PHONY: install-tools
bump-tools: ## Bump deps for all standalone tools
cd tools/crc && composer update && composer bump -D && composer update
.PHONY: bump-tools
composer-require-checker: ## Check composer.json for un-declared dependencies
tools/crc/vendor/bin/composer-require-checker check \
--config-file=tools/crc/config.json \
composer.json
.PHONY: composer-require-checker
qa: cs sa test composer-require-checker ## Run all QA Checks
.PHONY: qa