-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (40 loc) · 1.49 KB
/
Makefile
File metadata and controls
54 lines (40 loc) · 1.49 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Description: Makefile for the project
# php ./vendor/bin/phpstan analyse -c phpstan.neon -l 4 src/Domain/Publisher/SeoSanitizer.php
# default target
all: help
.PHONY: help # --------- HELP ---------
help:
@grep '^.PHONY: .* #' Makefile | sed 's/\.PHONY: \(.*\) # \(.*\)/\1 \2/' | expand -t20
.PHONY: phpstan-all # Launch local Phpstan
phpstan-all:
php -d memory_limit=1G ./vendor/bin/phpstan
.PHONY: phpstan # phpstan path="src/.../myclass" (level 4)
phpstan:
php -d memory_limit=1G ./vendor/bin/phpstan analyse -c phpstan.neon -l 4 $(path)
.PHONY: phpunit # Phpunit all tests
phpunit:
php ./vendor/bin/phpunit
.PHONY: coverage # Phpunit with coverage
coverage:
php ./vendor/bin/phpunit --coverage-html coverage
.PHONY: rector # rector path="src/.../myclass" (dry run)
rector:
php ./vendor/bin/rector process ${path} --dry-run
.PHONY: rector-hard # make rector-hard path="src/.../myclass" (HARD RUN!)
rector-hard:
php ./vendor/bin/rector process ${path}
.PHONY: externref # extern reference wikipedia
externref:
php ./src/Application/CLI/externRefprocess.php
.PHONY: googleExtern # extern reference google
googleExtern:
php ./src/Application/CLI/gooExternProcess.php
.PHONY: cleanError # clean error reports on wiki
cleanError:
php ./src/Application/CLI/cleanErrorReport.php
.PHONY: ouvrageComplete # complete ouvrage
ouvrageComplete:
php ./src/Application/CLI/ouvrageCompleteProcess.php
.PHONY: ouvrageEdit # edit ouvrage
ouvrageEdit:
php ./src/Application/CLI/ouvrageEditProcess.php