-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
20 lines (15 loc) · 763 Bytes
/
Makefile
File metadata and controls
20 lines (15 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
SOCIALENGINE_STRD="`pwd`/vendor/socialengine/sniffer-rules/src/Socialengine/SnifferRules/Standard/"
PHPCS=php ./vendor/bin/phpcs
INSTALLED=$(shell ${PHPCS} -i)
test:
php ./vendor/bin/phpunit
test-cover:
php ./vendor/bin/phpunit --coverage-clover=coverage.clover
sniff: check-standard
${PHPCS} --colors --standard=SocialEngine --runtime-set allowSnakeCaseMethodName '[{"classSuffix":"Test","methodPrefix":["test"]}]' src tests
sniff-fix: check-standard
php ./vendor/bin/phpcbf --colors --standard=SocialEngine --runtime-set allowSnakeCaseMethodName '[{"classSuffix":"Test","methodPrefix":["test"]}]' src tests
check-standard:
ifeq (,$(findstring SocialEngine, $(INSTALLED)))
php ./vendor/bin/phpcs --config-set installed_paths ${SOCIALENGINE_STRD}
endif