-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (29 loc) · 1.27 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
40
41
vendor: composer.lock
composer install --prefer-dist --no-suggest
@touch vendor
# TESTS
tests: validate-composer phpstan phpunit
phpunit: vendor
php -d memory_limit=256M vendor/bin/phpunit --stop-on-failure
phpstan: vendor tools/phpstan/vendor
php -d memory_limit=512M tools/phpstan/vendor/bin/phpstan analyse
tools/phpstan/vendor: tools/phpstan/composer.lock
composer install --working-dir="tools/phpstan"
@touch tools/phpstan/vendor
validate-composer: tools/composer-require-checker/vendor
composer validate --strict
tools/composer-require-checker/vendor/bin/composer-require-checker check
tools/composer-require-checker/vendor: tools/composer-require-checker/composer.lock
composer install --working-dir="tools/composer-require-checker"
@touch tools/composer-require-checker/vendor
# CODING STYLE
cs: php-cs-fixer
php-cs-fixer: tools/php-cs-fixer/vendor
mkdir -p var/php-cs-fixer
tools/php-cs-fixer/vendor/bin/php-cs-fixer fix -v --show-progress=dots --diff
php-cs-fixer-dry-run: tools/php-cs-fixer/vendor
mkdir -p var/php-cs-fixer
tools/php-cs-fixer/vendor/bin/php-cs-fixer fix -v --show-progress=dots --diff --dry-run
tools/php-cs-fixer/vendor: tools/php-cs-fixer/composer.lock
composer install --working-dir="tools/php-cs-fixer"
@touch tools/php-cs-fixer/vendor