forked from hughgrigg/php-business-time
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
21 lines (19 loc) · 737 Bytes
/
Makefile
File metadata and controls
21 lines (19 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.PHONY: test
test: src tests vendor/autoload.php
./vendor/phpmd/phpmd/src/bin/phpmd src text \
controversial,design,naming,unusedcode
./vendor/squizlabs/php_codesniffer/bin/phpcs --standard=PSR2 --colors src
./vendor/phpunit/phpunit/phpunit
vendor/autoload.php:
composer install
.PHONY: coverage
coverage: src tests vendor/autoload.php
mkdir -p build
rm -rf build/*
./vendor/phpmd/phpmd/src/bin/phpmd src text \
controversial,design,naming,unusedcode \
--reportfile ./build/phpmd.xml
./vendor/squizlabs/php_codesniffer/bin/phpcs --standard=PSR2 --colors src \
--report-file=./build/phpcs.xml
./vendor/phpunit/phpunit/phpunit --coverage-clover=build/logs/clover.xml \
--coverage-html=build/coverage --coverage-text