Skip to content

Commit 4288a1c

Browse files
committed
Fix makefile
Add missing dependencies, and make sure cs-fix works
1 parent 8741be8 commit 4288a1c

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

Diff for: Makefile

+13-7
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,29 @@
11
.PHONY: check
22
check: lint cs tests phpstan
33

4+
vendor:
5+
composer install;
6+
7+
build-cs/vendor:
8+
composer install --working-dir build-cs
9+
410
.PHONY: tests
5-
tests:
11+
tests: vendor
612
php vendor/bin/phpunit
713

814
.PHONY: lint
9-
lint:
15+
lint: vendor
1016
php vendor/bin/parallel-lint --colors --show-deprecated \
1117
src tests
1218

1319
.PHONY: cs
14-
cs:
15-
composer install --working-dir build-cs && php build-cs/vendor/bin/phpcs
20+
cs: build-cs/vendor
21+
php build-cs/vendor/bin/phpcs
1622

1723
.PHONY: cs-fix
18-
cs-fix:
19-
vendor/bin/phpcbf
24+
cs-fix: build-cs/vendor
25+
build-cs/vendor/bin/phpcbf
2026

2127
.PHONY: phpstan
22-
phpstan:
28+
phpstan: vendor
2329
php vendor/bin/phpstan analyse -l 9 -c phpstan.neon src tests

0 commit comments

Comments
 (0)