-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
38 lines (26 loc) · 1.08 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
ci: composer-validate cbf cs require-check unused-check security-check test stan mutate deptrac
deptrac:
php vendor/bin/deptrac analyse --config-file=depfile.yml
composer-validate:
composer validate
require-check:
php -dmemory_limit=4G vendor/bin/composer-require-checker --config-file=require-checker.json check composer.json
unused-check:
php -dmemory_limit=4G vendor/bin/unused_scanner
security-check:
vendor/bin/local-php-security-checker-installer
vendor/bin/local-php-security-checker
cbf:
php -dmemory_limit=4G vendor/bin/phpcbf
cs:
php -dmemory_limit=4G vendor/bin/phpcs
stan:
php -dmemory_limit=4G vendor/bin/phpstan analyse && php vendor/bin/psalm --show-info=false
test:
phpdbg -qrr -dmemory_limit=4G vendor/bin/phpunit --stop-on-failure && vendor/bin/coverage-check var/coverage.xml 90
phpunit-xml:
[ -f phpunit.xml ] || cp phpunit.xml.dist phpunit.xml
mutate: test phpunit-xml
phpdbg -qrr -dmemory_limit=4G vendor/bin/infection run --verbose --show-mutations --no-interaction --only-covered --coverage var --min-msi=85 --min-covered-msi=85 -j2
clean:
rm -rf var/