-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (25 loc) · 756 Bytes
/
Makefile
File metadata and controls
34 lines (25 loc) · 756 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
# List available commands
help:
@awk '/^#/{c=substr($$0,3);next}c&&/^[[:alpha:]][[:alnum:]_-]+:/{print substr($$1,1,index($$1,":")),c}1{c=0}' $(MAKEFILE_LIST) | column -s: -t
# Run all tests
test: lint code-style unit-tests behat phpstan
# Lint all php files
lint:
vendor/bin/parallel-lint --exclude vendor/ .
# Check code for style problems
code-style: phpmd phpcs
# Check code for design problems
phpmd:
vendor/bin/phpmd src/ text phpmd.xml --suffixes php
# Check code adheres to PSR-2
phpcs:
vendor/bin/phpcs
# Run unit tests
unit-tests:
vendor/bin/phpunit --testdox -v
# Run behat
behat:
vendor/bin/behat
phpstan:
vendor/bin/phpstan analyze --level max src/ tests/
.PHONY: help test lint code-style phpmd phpcs unit-tests behat phpstan