-
Notifications
You must be signed in to change notification settings - Fork 23
/
Makefile
35 lines (27 loc) · 942 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
.PHONY: ci cs-dry-run cs-fix help install test update
default: help
help:
@echo "usage: make COMMAND"
@echo ""
@echo "Available commands:"
@echo " ci to run both tests suite and check style"
@echo " cs-dry-run to show files that need to be fixed"
@echo " cs-fix to fix files that need to be fixed"
@echo " help to display this help"
@echo " install to install the project dependencies"
@echo " test to run the tests suite"
@echo " update to update the project dependencies"
ci: test cs-dry-run
cs-dry-run:
@if [ ! -f vendor/bin/php-cs-fixer ]; then make install; fi
vendor/bin/php-cs-fixer fix --dry-run --diff --verbose
cs-fix:
@if [ ! -f vendor/bin/php-cs-fixer ]; then make install; fi
vendor/bin/php-cs-fixer fix --verbose
install:
composer install
test:
@if [ ! -f vendor/bin/phpunit ]; then make install; fi
vendor/bin/phpunit
update:
composer update