1
- IS_PHP8 : =$(shell php -r 'echo (int) version_compare(PHP_VERSION, "8.0 ", ">=");')
1
+ IS_PHP81 : =$(shell php -r 'echo (int) version_compare(PHP_VERSION, "8.1 ", ">=");')
2
2
3
3
default : build
4
4
@@ -27,7 +27,7 @@ test: vendor cs deptrac phpunit infection
27
27
test-min : update-min cs deptrac phpunit infection
28
28
.PHONY : test-min
29
29
30
- ifeq ($(IS_PHP8 ) ,1)
30
+ ifeq ($(IS_PHP81 ) ,1)
31
31
test-package :
32
32
else
33
33
test-package : package test-package-tools
@@ -36,32 +36,20 @@ endif
36
36
.PHONY : test-package
37
37
38
38
39
- ifeq ($(IS_PHP8 ) ,1)
40
- cs :
41
- else
42
39
cs : tools/php-cs-fixer
43
40
PHP_CS_FIXER_IGNORE_ENV=1 tools/php-cs-fixer --dry-run --allow-risky=yes --no-interaction --ansi --diff fix
44
- endif
45
41
.PHONY : cs
46
42
47
- ifeq ($(IS_PHP8 ) ,1)
48
- cs-fix :
49
- else
50
43
cs-fix : tools/php-cs-fixer
51
44
PHP_CS_FIXER_IGNORE_ENV=1 tools/php-cs-fixer --allow-risky=yes --no-interaction --ansi fix
52
- endif
53
45
.PHONY : cs-fix
54
46
55
47
deptrac : tools/deptrac
56
- tools/deptrac --no-interaction --ansi --formatter-graphviz-display=0
48
+ tools/deptrac --no-interaction --ansi
57
49
.PHONY : deptrac
58
50
59
- ifeq ($(IS_PHP8 ) ,1)
60
- infection :
61
- else
62
51
infection : tools/infection tools/infection.pubkey
63
- phpdbg -qrr ./tools/infection --no-interaction --formatter=progress --min-msi=95 --min-covered-msi=95 --only-covered --ansi
64
- endif
52
+ phpdbg -qrr ./tools/infection --no-interaction --formatter=progress --min-msi=100 --min-covered-msi=100 --only-covered --ansi
65
53
.PHONY : infection
66
54
67
55
phpunit : tools/phpunit
81
69
find tests/phar/tools -not -path ' */\.*' -type f -delete
82
70
.PHONY : clean
83
71
84
- ifeq ($(IS_PHP8 ) ,1)
72
+ ifeq ($(IS_PHP81 ) ,1)
85
73
package :
86
74
else
87
75
package : tools/box
@@ -93,7 +81,7 @@ package: tools/box
93
81
94
82
cd build/phar && \
95
83
composer remove phpunit/phpunit --no-update && \
96
- composer config platform.php 7.4 && \
84
+ composer config platform.php 8.0 && \
97
85
composer update --no-dev -o -a
98
86
99
87
tools/box compile
@@ -113,16 +101,16 @@ tools/php-cs-fixer:
113
101
curl -Ls http://cs.symfony.com/download/php-cs-fixer-v2.phar -o tools/php-cs-fixer && chmod +x tools/php-cs-fixer
114
102
115
103
tools/deptrac :
116
- curl -Ls https://github.com/sensiolabs-de/deptrac/releases/download/0.10.0 /deptrac.phar -o tools/deptrac && chmod +x tools/deptrac
104
+ curl -Ls https://github.com/sensiolabs-de/deptrac/releases/download/0.19.1 /deptrac.phar -o tools/deptrac && chmod +x tools/deptrac
117
105
118
106
tools/infection : tools/infection.pubkey
119
- curl -Ls https://github.com/infection/infection/releases/download/0.20 .2/infection.phar -o tools/infection && chmod +x tools/infection
107
+ curl -Ls https://github.com/infection/infection/releases/download/0.26 .2/infection.phar -o tools/infection && chmod +x tools/infection
120
108
121
109
tools/infection.pubkey :
122
- curl -Ls https://github.com/infection/infection/releases/download/0.20 .2/infection.phar.pubkey -o tools/infection.pubkey
110
+ curl -Ls https://github.com/infection/infection/releases/download/0.26 .2/infection.phar.pubkey -o tools/infection.pubkey
123
111
124
112
tools/box :
125
- curl -Ls https://github.com/humbug/box/releases/download/3.10 .0/box.phar -o tools/box && chmod +x tools/box
113
+ curl -Ls https://github.com/humbug/box/releases/download/3.14 .0/box.phar -o tools/box && chmod +x tools/box
126
114
127
115
tests/phar/tools/phpunit :
128
116
curl -Ls https://phar.phpunit.de/phpunit-9.phar -o tests/phar/tools/phpunit && chmod +x tests/phar/tools/phpunit
0 commit comments