-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
47 lines (34 loc) · 1.25 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
.PHONY: all
all: vendor
vendor: composer.json composer.lock
composer install
.PHONY: check lint static-analysis unit-tests integration-tests acceptance-tests system-tests coding-standards security-tests composer-validate
check: lint static-analysis unit-tests integration-tests acceptance-tests system-tests coding-standards security-tests composer-validate
lint: vendor
bin/console lint:yaml config/
bin/console lint:twig templates/
static-analysis: vendor
vendor/bin/phpstan analyse
vendor/bin/deptrac analyze
unit-tests: vendor
vendor/bin/phpunit --testsuite unit
integration-tests: vendor
vendor/bin/phpunit --testsuite integration
acceptance-tests: vendor
vendor/bin/behat -v --suite=acceptance
system-tests: vendor
vendor/bin/behat -v --suite=system
coding-standards: vendor
vendor/bin/phpcs -p --colors
vendor/bin/phpmd src/ text phpmd.xml
security-tests: bin/local-php-security-checker
bin/local-php-security-checker
composer-validate:
composer validate --no-check-publish
bin/local-php-security-checker:
mkdir -p $(@D)
curl -LS https://github.com/fabpot/local-php-security-checker/releases/download/v1.0.0/local-php-security-checker_1.0.0_linux_amd64 -o $@
chmod +x $@
.PHONY: clean
clean:
rm -rf build/ vendor/ bin/local-php-security-checker