-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
111 lines (82 loc) · 2.07 KB
/
Makefile
File metadata and controls
111 lines (82 loc) · 2.07 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
SHELL = /bin/bash
uid = $$(id -u)
gid = $$(id -g)
pwd = $$(pwd)
default: help
##
## Help
## ----
##
##
## Docker
## ------
##
.PHONY: build
build:
docker compose build
.PHONY: up
up: .up
.up:
docker compose up -d
.PHONY: down
down: .down
.down:
docker compose down
.PHONY: .install
install: install-8.5
.PHONY: install-8.4
install-8.4:
docker compose run --rm php-8.4 composer install
.PHONY: install-8.5
install-8.5:
docker compose run --rm php-8.5 composer install
.PHONY: .php-cli
php-cli: php-8.5-cli
.PHONY: php-8.4-cli
php-8.4-cli:
docker compose run --rm php-8.4 sh
.PHONY: php-8.5-cli
php-8.5-cli:
docker compose run --rm php-8.5 sh
##
## Tests and code quality
## ----------------------
##
.PHONY: verify
verify: php-code-validation php-tests php-mutation-testing
.PHONY: php-tests
php-tests: php-8.4-tests php-8.5-tests
.PHONY: php-8.4-tests
php-8.4-tests:
docker compose run --rm php-8.4 ./vendor/bin/phpunit
.PHONY: php-8.5-tests
php-8.5-tests:
docker compose run --rm php-8.5 ./vendor/bin/phpunit
.PHONY: php-tests-coverage
php-tests-coverage: php-8.5-tests-html-coverage
.PHONY: php-8.4-tests-html-coverage
php-8.4-tests-html-coverage:
docker compose run --rm php-8.4 ./vendor/bin/phpunit --coverage-html ./coverage
.PHONY: php-8.5-tests-html-coverage
php-8.5-tests-html-coverage:
docker compose run --rm php-8.5 ./vendor/bin/phpunit --coverage-html ./coverage
.PHONY: php-code-validation
php-code-validation:
docker compose run --rm php-8.4 ./vendor/bin/php-cs-fixer fix
docker compose run --rm php-8.4 ./vendor/bin/psalm --show-info=false --no-diff
.PHONY: php-mutation-testing
php-mutation-testing:
docker compose run --rm php-8.4 ./vendor/bin/infection --show-mutations --threads=8
##
## CI
## --
##
.PHONY: php-8.4-tests-ci
php-8.4-tests-ci:
docker compose run --rm php-8.4 ./vendor/bin/phpunit
.PHONY: php-8.5-tests-ci
php-8.5-tests-ci:
docker compose run --rm php-8.5 ./vendor/bin/phpunit --coverage-clover ./coverage.xml
.PHONY: php-mutation-testing-ci
php-mutation-testing-ci:
docker compose run --rm php-8.4 ./vendor/bin/infection --threads=max