-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathMakefile
57 lines (43 loc) · 1.51 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
52
53
54
55
56
COMPOSER_BIN := composer
PHP_BIN := php
PHIVE_BIN := phive
PHP_CS_FIXER_BIN := ./tools/php-cs-fixer
PHPSTAN_BIN := ./tools/phpstan
PHPUNIT_BIN := ./tools/phpunit
.PHONY: it
it: tools qa
.PHONY: tools
tools:
gpg --keyserver hkps://keyserver.ubuntu.com --receive-keys E82B2FB314E9906E 4AA394086372C20A 51C67305FFC2E5C0
$(PHIVE_BIN) --no-progress install --copy --trust-gpg-keys E82B2FB314E9906E,4AA394086372C20A,51C67305FFC2E5C0 --force-accept-unsigned
.PHONY: tools-update
tools-update: tools
$(PHIVE_BIN) --no-progress update
vendor: composer.json $(wildcard composer.lock)
$(COMPOSER_BIN) install --optimize-autoloader
.PHONY: tests
tests: tools vendor
$(PHPUNIT_BIN) -c .
.PHONY: coverage
coverage: vendor
XDEBUG_MODE=coverage $(PHPUNIT_BIN) -c . --coverage-html coverage
.PHONY: cs-check
cs-check: vendor
PHP_CS_FIXER_FUTURE_MODE=1 PHP_CS_FIXER_IGNORE_ENV=1 $(PHP_CS_FIXER_BIN) fix --allow-risky=yes --diff --using-cache=no --verbose --dry-run
.PHONY: cs-fix
cs-fix: vendor
PHP_CS_FIXER_FUTURE_MODE=1 PHP_CS_FIXER_IGNORE_ENV=1 $(PHP_CS_FIXER_BIN) fix --allow-risky=yes
.PHONY: analyze
analyze: vendor
$(PHPSTAN_BIN) analyse --memory-limit=-1
.PHONY: qa
qa: cs-check analyze tests
.PHONY: iban-registry-update
iban-registry-update:
${PHP_BIN} swift.php Resource/iban_registry_$(VERSION).txt > Resource/iban_registry_$(VERSION).php
make cs-fix
cp -r Resource/iban_registry_$(VERSION).php Resource/iban_registry.php
release:
git tag -as ${VERSION} -m '${VERSION}'
git tag -v ${VERSION}
git push origin ${VERSION}