-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
39 lines (26 loc) · 1.35 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
.PHONY: *
default: unit cs static-analysis ## all the things
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
unit: ## run unit tests
vendor/bin/phpunit
cs: ## verify code style rules
vendor/bin/phpcs
static-analysis: ## verify that no new static analysis issues were introduced
vendor/bin/psalm
coverage: ## generate code coverage reports
vendor/bin/phpunit --testsuite unit --coverage-html build/coverage-html --coverage-text
unit-php71: ## run unit tests with php 7.1
php7.1 vendor/bin/phpunit
deps-php71-lowest: ## Update deps to lowest
php7.1 /usr/local/bin/composer update --prefer-lowest --prefer-dist --no-interaction
deps-php8-lowest: ## Update deps to lowest
php8.0 /usr/local/bin/composer update --prefer-lowest --prefer-dist --no-interaction
deps-php71-highest: ## Update deps to highest
php7.1 /usr/local/bin/composer update --prefer-dist --no-interaction
deps-php8-highest: ## Update deps to highest
php8.0 /usr/local/bin/composer update --prefer-dist --no-interaction
update-static-analysis-baseline: ## bump static analysis baseline issues, reducing set of allowed failures
vendor/bin/psalm --update-baseline
reset-static-analysis-baseline: ## reset static analysis baseline issues to current HEAD
vendor/bin/psalm --set-baseline=known-issues.xml