-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
103 lines (74 loc) · 3.62 KB
/
Copy pathMakefile
File metadata and controls
103 lines (74 loc) · 3.62 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
SHELL = /bin/bash
uid = $$(id -u)
gid = $$(id -g)
pwd = $$(pwd)
## Docker
.PHONY: build
build:
docker compose build
.PHONY: php81-cli
php81-cli:
docker compose run --rm php81 sh
.PHONY: php82-cli
php82-cli:
docker compose run --rm php82 sh
.PHONY: php83-cli
php83-cli:
docker compose run --rm php83 sh
.PHONY: php84-cli
php84-cli:
docker compose run --rm php84 sh
.PHONY: php85-cli
php85-cli:
docker compose run --rm php85 sh
validation-composer-install-php83:
docker compose run --rm php83 composer update:tools
validation-phpstan:
docker compose run --rm php83 ./tools/phpstan/vendor/bin/phpstan analyse -c phpstan.neon --ansi
validation-phpcs:
docker compose run --rm php83 ./tools/php-cs-fixer/vendor/bin/php-cs-fixer fix -vvv --diff --dry-run --allow-risky=yes --ansi
validation-phpcs-fix:
docker compose run --rm php83 ./tools/php-cs-fixer/vendor/bin/php-cs-fixer fix -vvv --allow-risky=yes --ansi
validation: validation-phpcs validation-phpstan
verify: validation test
composer-install-php81-lowest:
docker compose run --rm php81 composer update --prefer-lowest --prefer-dist --no-interaction --no-progress
composer-install-php81-stable:
docker compose run --rm php81 composer update --prefer-stable --prefer-dist --no-interaction --no-progress
composer-install-php82-lowest:
docker compose run --rm php82 composer update --prefer-lowest --prefer-dist --no-interaction --no-progress
composer-install-php82-stable:
docker compose run --rm php82 composer update --prefer-stable --prefer-dist --no-interaction --no-progress
composer-install-php83-lowest:
docker compose run --rm php83 composer update --prefer-lowest --prefer-dist --no-interaction --no-progress
composer-install-php83-stable:
docker compose run --rm php83 composer update --prefer-stable --prefer-dist --no-interaction --no-progress
composer-install-php84-lowest:
docker compose run --rm php84 composer update --prefer-lowest --prefer-dist --no-interaction --no-progress
composer-install-php84-stable:
docker compose run --rm php84 composer update --prefer-stable --prefer-dist --no-interaction --no-progress
composer-install-php85-lowest:
docker compose run --rm php85 composer update --prefer-lowest --prefer-dist --no-interaction --no-progress
composer-install-php85-stable:
docker compose run --rm php85 composer update --prefer-stable --prefer-dist --no-interaction --no-progress
lint-php81:
docker compose run --rm php81 sh -c "find src -name '*.php' -print0 | xargs -0 -n1 php -l"
lint-php82:
docker compose run --rm php82 sh -c "find src -name '*.php' -print0 | xargs -0 -n1 php -l"
lint-php83:
docker compose run --rm php83 sh -c "find src -name '*.php' -print0 | xargs -0 -n1 php -l"
lint-php84:
docker compose run --rm php84 sh -c "find src -name '*.php' -print0 | xargs -0 -n1 php -l"
lint-php85:
docker compose run --rm php85 sh -c "find src -name '*.php' -print0 | xargs -0 -n1 php -l"
test-php85-stable: composer-install-php85-stable lint-php85
test-php84-stable: composer-install-php84-stable lint-php84
test-php83-stable: composer-install-php83-stable lint-php83
test-php82-stable: composer-install-php82-stable lint-php82
test-php81-stable: composer-install-php81-stable lint-php81
test-php85-lowest: composer-install-php85-lowest lint-php85
test-php84-lowest: composer-install-php84-lowest lint-php84
test-php83-lowest: composer-install-php83-lowest lint-php83
test-php82-lowest: composer-install-php82-lowest lint-php82
test-php81-lowest: composer-install-php81-lowest lint-php81
test: test-php85-stable test-php84-stable test-php83-stable test-php82-stable test-php81-stable test-php85-lowest test-php84-lowest test-php83-lowest test-php82-lowest test-php81-lowest