-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
39 lines (32 loc) · 982 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
28
29
30
31
32
33
34
35
36
37
38
39
.PHONY: all
all: test
.PHONY: test
test: check-style check-rules
mkdir -p var/output
rm -rf var/output/*
XDEBUG_MODE=coverage \
SYMFONY_DEPRECATIONS_HELPER='logFile=var/output/deprecations.log' \
vendor/bin/phpunit -c phpunit.xml.dist \
--log-junit var/output/junit-report.xml \
--coverage-clover var/output/clover.xml \
--coverage-html var/output/coverage
.PHONY: check-rules
check-rules: phpstan
phpstan:
vendor/bin/phpstan analyse -c phpstan.neon --error-format=raw
.PHONY: fix-style
fix-style: vendor
@echo "-- Fixing coding style using php-cs-fixer..."
vendor/bin/php-cs-fixer fix src
vendor/bin/php-cs-fixer fix tests
.PHONY: check-style
check-style: vendor
@echo "-- Checking coding style using php-cs-fixer (run 'make fix-style' if it fails)"
vendor/bin/php-cs-fixer fix src -v --dry-run --diff
vendor/bin/php-cs-fixer fix tests -v --dry-run --diff
.PHONY: vendor
vendor:
composer install
.PHONY: clean
clean:
rm -rf vendor dist/git-manager.phar