-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (37 loc) · 1.07 KB
/
Makefile
File metadata and controls
47 lines (37 loc) · 1.07 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
.PHONY: test
test: phpstan psalm phpunit
.PHONY: monorepo
monorepo: monorepo-validate monorepo-merge
.PHONY: monorepo-validate
monorepo-validate:
vendor/bin/monorepo-builder validate
.PHONY: monorepo-merge
monorepo-merge:
$(PHP) vendor/bin/monorepo-builder merge
.PHONY: monorepo-release-%
monorepo-release-%:
git update-index --really-refresh > /dev/null; git diff-index --quiet HEAD || (echo "Working directory is not clean, aborting" && exit 1)
[ $$(git branch --show-current) == main ] || (echo "Not on main branch, aborting" && exit 1)
$(PHP) vendor/bin/monorepo-builder release $*
git switch -c release/$*
git add .
git commit -m "release: $*"
.PHONY: phpstan
phpstan:
vendor/bin/phpstan analyse
.PHONY: psalm
psalm:
vendor/bin/psalm
.PHONY: phpunit
phpunit:
vendor/bin/phpunit --testdox
.PHONY: php-cs-fixer
php-cs-fixer: tools/php-cs-fixer
$< fix --config=.php-cs-fixer.dist.php --verbose --allow-risky=yes
.PHONY: tools/php-cs-fixer
tools/php-cs-fixer:
phive install php-cs-fixer
.PHONY: rector
rector:
$(PHP) vendor/bin/rector process > rector.log
make php-cs-fixer