-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
58 lines (44 loc) · 1.28 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
PU=./vendor/bin/phpunit
PHPCS=./vendor/bin/phpcs
PHPCBF=./vendor/bin/phpcbf
PHPMD=./vendor/bin/phpmd
help:
@echo "Use \`make <target>' where <target> is one of"
@echo " doc build the documentation in build/api/"
@echo " test run unit tests"
@echo " testdox gerenate testdox report in build/"
@echo " show-testdox run unit tests in testdox format"
@echo " coverage generate code coverage report"
@echo " show-coverage show code coverage report"
@echo " phpcs check code quality with PHP_CodeSniffer"
@echo " phpcbf fix PHP Code with PHP_CodeSniffer"
@echo " phpmd check for code mess"
@echo " changelog generate CHANGELOG.md"
@echo " release VERSION=x.x.x create a new release, running changelog and git bump"
@echo " clean delete build/ folder content"
doc:
apigen generate --source src --destination build/api
test:
$(PU)
show-testdox:
$(PU) --testdox
testdox:
$(PU) --testdox-text build/agile-doc.txt
coverage:
$(PU) --coverage-html build/coverage
show-coverage:
$(PU) --coverage-text
phpcs:
$(PHPCS) --standard=ruleset.xml -v
phpcbf:
$(PHPCBF) --standard=ruleset.xml -v
phpmd:
$(PHPMD) src/ text ruleset.phpmd.xml
bump: changelog
git bump
bump-minor: changelog
git bump minor
bump-major: changelog
git bump major
clean:
rm -rf build/*