-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (19 loc) · 706 Bytes
/
Makefile
File metadata and controls
28 lines (19 loc) · 706 Bytes
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
all: clean composer lint phploc phpmd phpcs phpcpd phpunit
clean:
rm -rf vendor
composer:
/usr/bin/env composer install --no-progress --prefer-source
lint:
find ./src -name "*.php" -exec /usr/bin/env php -l {} \; | grep "Parse error" > /dev/null && exit 1 || exit 0
find ./tests -name "*.php" -exec /usr/bin/env php -l {} \; | grep "Parse error" > /dev/null && exit 1 || exit 0
phploc:
vendor/bin/phploc src
phpmd:
vendor/bin/phpmd --suffixes php src/ text codesize,design,naming,unusedcode,controversial
phpcs:
vendor/bin/phpcs --standard=PSR2 --extensions=php src/ tests/
phpcpd:
vendor/bin/phpcpd src/
test:
vendor/bin/phpunit -v --colors --coverage-text
standards: phpmd phpcs phpcpd