-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (32 loc) · 1.13 KB
/
Copy pathMakefile
File metadata and controls
41 lines (32 loc) · 1.13 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
# See Makefile.local.dist
-include Makefile.local
COMPOSER ?= composer
CS_CMD ?= fix
# "Executables"
PHP_CS_FIXER = devtools/php-cs-fixer/vendor/bin/php-cs-fixer
PHPSTAN = devtools/phpstan/vendor/bin/phpstan
PHPUNIT = devtools/phpunit/vendor/bin/phpunit
.PHONY: devtools
devtools: codestyle stan tests
.PHONY: codestyle
codestyle: $(PHP_CS_FIXER)
$(PHP_CS_FIXER) $(CS_CMD) --verbose
.PHONY: stan
stan: $(PHPSTAN) $(PHPUNIT)
$(PHPSTAN) analyze
$(PHPSTAN) analyze --configuration=phpstan-tests.neon.dist
.PHONY: tests
tests: $(PHPUNIT)
$(PHPUNIT)
.PHONY: validate
validate:
$(COMPOSER) validate --strict
$(COMPOSER) validate --no-check-publish --quiet --working-dir=devtools/php-cs-fixer
$(COMPOSER) validate --no-check-publish --quiet --working-dir=devtools/phpstan
$(COMPOSER) validate --no-check-publish --quiet --working-dir=devtools/phpunit
$(PHP_CS_FIXER): devtools/php-cs-fixer/composer.json
$(COMPOSER) install --working-dir=devtools/php-cs-fixer
$(PHPSTAN): devtools/phpstan/composer.json
$(COMPOSER) install --working-dir=devtools/phpstan
$(PHPUNIT): devtools/phpunit/composer.json
$(COMPOSER) install --working-dir=devtools/phpunit