-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
51 lines (35 loc) · 1.46 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
sources = bin/release config/ src/
.PHONY: all dist check test static-analysis unit-tests integration-tests coding-standards security-tests
all: vendor
vendor: composer.json composer.lock
composer install
build/release-tool.phar: $(sources) bin/box.phar composer.lock vendor
mkdir -p build
bin/box.phar compile
dist: build/release-tool.phar
check test: static-analysis unit-tests integration-tests acceptance-tests system-tests coding-standards security-tests
static-analysis: vendor
vendor/bin/phpstan analyse
unit-tests: vendor
vendor/bin/phpunit --testsuite unit-tests
integration-tests: vendor
vendor/bin/phpunit --testsuite integration-tests
acceptance-tests: vendor
vendor/bin/behat
system-tests: vendor build/release-tool.phar
vendor/bin/phpunit --testsuite system-tests
coding-standards: vendor
vendor/bin/phpcs -p --colors
vendor/bin/phpmd src/ text phpmd.xml
security-tests: vendor bin/local-security-checker
bin/local-security-checker
security_checker_binary = local-php-security-checker_2.0.6_linux_amd64
ifeq ($(shell uname -s), Darwin)
security_checker_binary = local-php-security-checker_2.0.6_darwin_amd64
endif
bin/local-security-checker:
curl -LS https://github.com/fabpot/local-php-security-checker/releases/download/v2.0.6/$(security_checker_binary) -o bin/local-security-checker
chmod a+x bin/local-security-checker
bin/box.phar:
curl -LS https://github.com/humbug/box/releases/download/3.16.0/box.phar -o bin/box.phar
chmod a+x bin/box.phar