-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
60 lines (44 loc) · 1.29 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
59
60
test: phpcheck-no-defects phpunit
watch:
while inotifywait -e close_write -r composer.* ./src ./checks ./functions ./tests; do make phpunit phpcheck; done
watch-playground:
while inotifywait -e close_write -r composer.* ./src ./checks ./functions ./playground ./tests; do php playground/test.php; done
docs-build:
php sami.phar update sami.config.php
docs-clean:
rm -rf build/ cache/
docs-functions:
mkdir -p docs
cp css/functions.css docs/
./generate-function-docs > docs/functions.html
phpcheck:
@phpcheck
phpcheck-coverage:
sudo phpenmod xdebug
@phpcheck --coverage-html report/phpcheck-coverage
sudo phpdismod xdebug
@xdg-open report/phpcheck-coverage/index.html
phpcheck-log-junit:
@phpcheck --log-junit build/phpcheck.xml
phpcheck-log-text:
@phpcheck --log-text build/phpcheck.txt
phpcheck-no-defects:
@phpcheck -d
php-cs-fixer:
php-cs-fixer fix --using-cache=no
phpmd:
@phpmd src,checks text phpmd.xml
phpstan:
@phpstan analyse src checks --level 5
phpunit:
@phpunit
phpunit-coverage:
sudo phpenmod xdebug
@phpunit --coverage-html report/phpunit-coverage
sudo phpdismod xdebug
@xdg-open report/phpunit-coverage/index.html
profile:
sudo phpenmod xdebug
# @php -d xdebug.profiler_enable=1 `which phpunit`
@php -d xdebug.profiler_enable=1 `which phpcheck`
sudo phpdismod xdebug