-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (36 loc) · 719 Bytes
/
Makefile
File metadata and controls
54 lines (36 loc) · 719 Bytes
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
.phony: install test cs-check cs-fix psalm
DOCKER=docker-compose run --rm php
CS=--standard=ruleset.xml src tests
INSTALL=composer update nothing --no-interaction
UPDATE=composer update
TEST=vendor/bin/phpunit --colors=always tests
CSCHECK=vendor/bin/phpcs $(CS)
CSFIX=vendor/bin/phpcbf $(CS)
PSALM=vendor/bin/psalm --show-info=false
install:
$(DOCKER) $(INSTALL)
update:
$(DOCKER) $(UPDATE)
githooks:
.githooks/init.sh
test:
$(DOCKER) $(TEST)
cs-check:
$(DOCKER) $(CSCHECK)
cs-fix:
$(DOCKER) $(CSFIX)
psalm:
$(DOCKER) $(PSALM)
ci: cs-check psalm test
# inside docker
_install:
$(INSTALL)
_test:
$(TEST)
_cs-check:
$(CSCHECK)
_cs-fix:
$(CSFIX)
_psalm:
$(PSALM)
_ci: _cs-check _psalm _test