-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (18 loc) · 1013 Bytes
/
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
install-root-dependencies:
composer update
install-coding-standard-dependencies:
cd tools/php-coding-standard && composer update
install-unit-test-dependencies:
cd tools/php-unit && composer update
install: install-root-dependencies install-coding-standard-dependencies install-unit-test-dependencies
coding-standard-fix:
./tools/php-coding-standard/vendor/bin/phpcbf --config-set php_version 70300
./tools/php-coding-standard/vendor/bin/phpcbf --basepath=. --standard=tools/php-coding-standard/.phpcs.xml
coding-standard-check:
./tools/php-coding-standard/vendor/bin/phpcs --config-set php_version 70300
./tools/php-coding-standard/vendor/bin/phpcs --basepath=. --standard=tools/php-coding-standard/.phpcs.xml
unit-test:
./tools/php-unit/vendor/bin/phpunit -c tools/php-unit/phpunit.xml.dist
code-coverage-html:
XDEBUG_MODE=coverage ./tools/php-unit/vendor/bin/phpunit -c tools/php-unit/phpunit.xml.dist --coverage-html tools/php-unit/reports/codecoverage
check: coding-standard-check unit-test