forked from re-connect/mpb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (27 loc) · 664 Bytes
/
Copy pathMakefile
File metadata and controls
37 lines (27 loc) · 664 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
29
30
31
32
33
34
35
36
37
BIN = ./vendor/bin
RECTOR = $(BIN)/rector
PHPSTAN = $(BIN)/phpstan
PHPMD = $(BIN)/phpmd
PHP_CS_FIXER = $(BIN)/php-cs-fixer
PHPUNIT = $(BIN)/simple-phpunit
DEPLOYER = $(BIN)/dep
CONSOLE = symfony console
.PHONY :
cs: rector stan md fixer fixture test
fixture:
@$(CONSOLE) doctrine:fixtures:load --env=test -q
test:
@$(PHPUNIT) tests
rector:
@$(RECTOR) process --clear-cache
stan:
@$(PHPSTAN) analyse
md:
echo 'Running Phpmd...'
@$(PHPMD) src text phpmd-ruleset.xml
fixer:
@$(PHP_CS_FIXER) fix src --allow-risky=yes
@$(PHP_CS_FIXER) fix tests --allow-risky=yes
dep: deploy
deploy:
@$(DEPLOYER) deploy