Skip to content

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Nov 4, 2025

similar to phpstan/build-infection#30

requires #4525

composer install --working-dir build-infection --no-interaction --no-progress
php build-infection/bin/infection-config.php --source-directory='build/PHPStan/Build'> infection.json5
version=$(shell jq -r '.packages[] | select(.name == "infection/infection") | .version' build-infection/composer.lock); \
wget https://github.com/infection/infection/releases/download/$$version/infection.phar --no-clobber;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need to download infection.phar, you can run infection from build-infection/vendor/bin/infection

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried this beforehand, but it doesn't work. our generated config requires infection to run from the project root.

@staabm staabm marked this pull request as draft November 4, 2025 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants