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 ", ">=");')
22
33default : build
44
@@ -27,7 +27,7 @@ test: vendor cs deptrac phpunit infection
2727test-min : update-min cs deptrac phpunit infection
2828.PHONY : test-min
2929
30- ifeq ($(IS_PHP8 ) ,1)
30+ ifeq ($(IS_PHP81 ) ,1)
3131test-package :
3232else
3333test-package : package test-package-tools
@@ -36,32 +36,20 @@ endif
3636.PHONY : test-package
3737
3838
39- ifeq ($(IS_PHP8 ) ,1)
40- cs :
41- else
4239cs : tools/php-cs-fixer
4340 PHP_CS_FIXER_IGNORE_ENV=1 tools/php-cs-fixer --dry-run --allow-risky=yes --no-interaction --ansi --diff fix
44- endif
4541.PHONY : cs
4642
47- ifeq ($(IS_PHP8 ) ,1)
48- cs-fix :
49- else
5043cs-fix : tools/php-cs-fixer
5144 PHP_CS_FIXER_IGNORE_ENV=1 tools/php-cs-fixer --allow-risky=yes --no-interaction --ansi fix
52- endif
5345.PHONY : cs-fix
5446
5547deptrac : tools/deptrac
56- tools/deptrac --no-interaction --ansi --formatter-graphviz-display=0
48+ tools/deptrac --no-interaction --ansi
5749.PHONY : deptrac
5850
59- ifeq ($(IS_PHP8 ) ,1)
60- infection :
61- else
6251infection : 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
6553.PHONY : infection
6654
6755phpunit : tools/phpunit
8169 find tests/phar/tools -not -path ' */\.*' -type f -delete
8270.PHONY : clean
8371
84- ifeq ($(IS_PHP8 ) ,1)
72+ ifeq ($(IS_PHP81 ) ,1)
8573package :
8674else
8775package : tools/box
@@ -93,7 +81,7 @@ package: tools/box
9381
9482 cd build/phar && \
9583 composer remove phpunit/phpunit --no-update && \
96- composer config platform.php 7.4 && \
84+ composer config platform.php 8.0 && \
9785 composer update --no-dev -o -a
9886
9987 tools/box compile
@@ -113,16 +101,16 @@ tools/php-cs-fixer:
113101 curl -Ls http://cs.symfony.com/download/php-cs-fixer-v2.phar -o tools/php-cs-fixer && chmod +x tools/php-cs-fixer
114102
115103tools/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
117105
118106tools/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
120108
121109tools/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
123111
124112tools/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
126114
127115tests/phar/tools/phpunit :
128116 curl -Ls https://phar.phpunit.de/phpunit-9.phar -o tests/phar/tools/phpunit && chmod +x tests/phar/tools/phpunit
0 commit comments