Skip to content

Commit edb0d16

Browse files
committed
Update Makefile
1 parent 8b5ec6f commit edb0d16

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ infection:
170170
git -C build-infection fetch origin && git -C build-infection reset --hard origin/1.x
171171
composer install --working-dir build-infection --no-interaction --no-progress
172172
php build-infection/bin/infection-config.php --source-directory='build/PHPStan/Build'> infection.json5
173-
version=$(jq -r '.packages[] | select(.name == "infection/infection") | .version' build-infection/composer.lock)
174-
composer require infection/infection:$version --dev
175-
php build-infection/vendor/bin/infection --ignore-msi-with-no-mutations --logger-text=php://stdout
176-
rm infection.json5
173+
version=$(shell jq -r '.packages[] | select(.name == "infection/infection") | .version' build-infection/composer.lock); \
174+
wget https://github.com/infection/infection/releases/download/$$version/infection.phar;
175+
chmod +x infection.phar
176+
php infection.phar --ignore-msi-with-no-mutations --logger-text=php://stdout
177+
rm infection.json5 infection.phar

0 commit comments

Comments
 (0)