-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
27 lines (19 loc) · 818 Bytes
/
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
.PHONY: dependencies, unit-tests, integration-tests, test-coverage, style-check, dependency-check, static-analysis, style-fix
build:
@make dependencies && make dependency-check && make static-analysis && make style-check && make unit-tests && make integration-tests
dependencies:
@composer install
unit-tests:
@vendor/bin/phpunit --bootstrap=./tests/bootstrap.php --testsuite Unit
integration-tests:
@vendor/bin/phpunit --bootstrap=./tests/bootstrap.php --testsuite Integration
test-coverage:
@vendor/bin/phpunit --coverage-html ./coverage
style-check:
@vendor/bin/phpcs --standard=PSR12 ./src/* ./tests/*
dependency-check:
@vendor/bin/composer-require-checker check -vvv ./composer.json
static-analysis:
@vendor/bin/psalm --show-info=false
style-fix:
@vendor/bin/phpcbf --standard=PSR12 ./src ./tests