-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
36 lines (26 loc) · 800 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
27
28
29
30
31
32
33
34
35
36
help: ## Show this help
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
all: install cs test
install: ## install dependencies
composer install
cs: ## Check code style
./vendor/bin/phpcs --config-set ignore_warnings_on_exit 1
./vendor/bin/phpcs --colors --standard=PSR2 src tests
csfix: ## Fix Code Style
php vendor/bin/phpcbf
test: ## Run tests
php vendor/bin/phpunit
mess: ## Run mess detector
./vendor/bin/phpmd src text ./phpmd.xml
check-mess: ## Run mess detector
./vendor/bin/phpmd src text ./phpmd.xml
test-coverage: ## Run travis test suite (not tested)
./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
build:
$(MAKE) cs
$(MAKE) mess
$(MAKE) test
build-travis:
$(MAKE) cs
$(MAKE) mess
$(MAKE) test-coverage