2021-03-27 21:32:45 +01:00
|
|
|
install-root-dependencies:
|
|
|
|
composer update
|
|
|
|
|
|
|
|
install-coding-standard-dependencies:
|
|
|
|
cd tools/php-cs-fixer && composer update --ignore-platform-req php
|
|
|
|
cd tools/php-codesniffer && composer update
|
|
|
|
|
2021-04-11 18:12:01 +02:00
|
|
|
install-static-analysis-dependencies:
|
2021-03-27 21:32:45 +01:00
|
|
|
cd tools/psalm && composer update
|
|
|
|
|
|
|
|
install-unit-tests-dependencies:
|
|
|
|
cd tools/phpunit && composer update
|
|
|
|
|
2021-04-11 18:12:01 +02:00
|
|
|
install: install-root-dependencies install-coding-standard-dependencies install-static-analysis-dependencies install-unit-tests-dependencies
|
2021-03-27 21:32:45 +01:00
|
|
|
|
|
|
|
coding-standard-fix:
|
2021-05-14 15:15:55 +02:00
|
|
|
php tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --config=tools/php-cs-fixer/.php_cs.dist.php
|
2021-03-28 11:36:35 +02:00
|
|
|
php tools/php-codesniffer/vendor/bin/phpcbf --basepath=. --standard=tools/php-codesniffer/.phpcs.xml
|
2021-03-27 21:32:45 +01:00
|
|
|
|
|
|
|
coding-standard-check:
|
2021-05-14 15:15:55 +02:00
|
|
|
php tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --config=tools/php-cs-fixer/.php_cs.dist.php --dry-run
|
2021-03-28 11:36:35 +02:00
|
|
|
php tools/php-codesniffer/vendor/bin/phpcs --basepath=. --standard=tools/php-codesniffer/.phpcs.xml
|
2021-03-27 21:32:45 +01:00
|
|
|
|
2021-04-11 18:12:01 +02:00
|
|
|
static-analysis:
|
2021-05-15 20:47:10 +02:00
|
|
|
php tools/psalm/vendor/bin/psalm -c tools/psalm/psalm.xml --show-info=true --no-cache
|
|
|
|
php tools/psalm/vendor/bin/psalm -c tools/psalm/psalm.xml tests/static-analysis --no-cache
|
2021-03-27 21:32:45 +01:00
|
|
|
|
|
|
|
type-coverage:
|
|
|
|
php tools/psalm/vendor/bin/psalm -c tools/psalm/psalm.xml --shepherd --stats
|
|
|
|
|
|
|
|
security-analysis:
|
|
|
|
php tools/psalm/vendor/bin/psalm -c tools/psalm/psalm.xml --taint-analysis
|
|
|
|
|
|
|
|
unit-tests:
|
|
|
|
php tools/phpunit/vendor/bin/phpunit -c tools/phpunit/phpunit.xml.dist
|
|
|
|
|
|
|
|
code-coverage: unit-tests
|
|
|
|
composer global require php-coveralls/php-coveralls
|
|
|
|
php-coveralls -x tests/logs/clover.xml -o tests/logs/coveralls-upload.json -v
|
|
|
|
|
2021-04-11 18:12:01 +02:00
|
|
|
check: coding-standard-check static-analysis security-analysis unit-tests
|