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,15 +36,15 @@ endif
36
36
.PHONY : test-package
37
37
38
38
39
- ifeq ($(IS_PHP8 ) ,1)
39
+ ifeq ($(IS_PHP81 ) ,1)
40
40
cs :
41
41
else
42
42
cs : tools/php-cs-fixer
43
43
PHP_CS_FIXER_IGNORE_ENV=1 tools/php-cs-fixer --dry-run --allow-risky=yes --no-interaction --ansi --diff fix
44
44
endif
45
45
.PHONY : cs
46
46
47
- ifeq ($(IS_PHP8 ) ,1)
47
+ ifeq ($(IS_PHP81 ) ,1)
48
48
cs-fix :
49
49
else
50
50
cs-fix : tools/php-cs-fixer
@@ -53,14 +53,14 @@ endif
53
53
.PHONY : cs-fix
54
54
55
55
deptrac : tools/deptrac
56
- tools/deptrac --no-interaction --ansi --formatter-graphviz-display=0
56
+ tools/deptrac --no-interaction --ansi
57
57
.PHONY : deptrac
58
58
59
- ifeq ($(IS_PHP8 ) ,1)
59
+ ifeq ($(IS_PHP81 ) ,1)
60
60
infection :
61
61
else
62
62
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
63
+ phpdbg -qrr ./tools/infection --no-interaction --formatter=progress --min-msi=100 --min-covered-msi=100 --only-covered --ansi
64
64
endif
65
65
.PHONY : infection
66
66
81
81
find tests/phar/tools -not -path ' */\.*' -type f -delete
82
82
.PHONY : clean
83
83
84
- ifeq ($(IS_PHP8 ) ,1)
84
+ ifeq ($(IS_PHP81 ) ,1)
85
85
package :
86
86
else
87
87
package : tools/box
@@ -93,7 +93,7 @@ package: tools/box
93
93
94
94
cd build/phar && \
95
95
composer remove phpunit/phpunit --no-update && \
96
- composer config platform.php 7.4 && \
96
+ composer config platform.php 8.0 && \
97
97
composer update --no-dev -o -a
98
98
99
99
tools/box compile
@@ -113,16 +113,16 @@ tools/php-cs-fixer:
113
113
curl -Ls http://cs.symfony.com/download/php-cs-fixer-v2.phar -o tools/php-cs-fixer && chmod +x tools/php-cs-fixer
114
114
115
115
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
116
+ curl -Ls https://github.com/sensiolabs-de/deptrac/releases/download/0.19.1 /deptrac.phar -o tools/deptrac && chmod +x tools/deptrac
117
117
118
118
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
119
+ curl -Ls https://github.com/infection/infection/releases/download/0.26 .2/infection.phar -o tools/infection && chmod +x tools/infection
120
120
121
121
tools/infection.pubkey :
122
- curl -Ls https://github.com/infection/infection/releases/download/0.20 .2/infection.phar.pubkey -o tools/infection.pubkey
122
+ curl -Ls https://github.com/infection/infection/releases/download/0.26 .2/infection.phar.pubkey -o tools/infection.pubkey
123
123
124
124
tools/box :
125
- curl -Ls https://github.com/humbug/box/releases/download/3.10 .0/box.phar -o tools/box && chmod +x tools/box
125
+ curl -Ls https://github.com/humbug/box/releases/download/3.14 .0/box.phar -o tools/box && chmod +x tools/box
126
126
127
127
tests/phar/tools/phpunit :
128
128
curl -Ls https://phar.phpunit.de/phpunit-9.phar -o tests/phar/tools/phpunit && chmod +x tests/phar/tools/phpunit
0 commit comments