Skip to content

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Nov 4, 2025

similar to phpstan/build-infection#30

requires #4525

@staabm staabm marked this pull request as draft November 4, 2025 16:44
@staabm staabm marked this pull request as ready for review November 8, 2025 09:00
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

@staabm
Copy link
Contributor Author

staabm commented Nov 8, 2025

I tried so many variants.. but this one is the only one working atm, because infection has some problems regarding relative paths (finding the phpunit.xml depending on the location of the infection.json5 etc).

lets move forward with this suboptimal first version and improve on it in future infection version, when the file resolution is more sane.

wget https://github.com/infection/infection/releases/download/$$version/infection.phar --timestamping;
php infection.phar \
--configuration=infection.json5 \
--git-diff-base=origin/2.1.x \
Copy link
Contributor Author

Choose a reason for hiding this comment

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

My makefile fu is not strong enough to turn this hardcoded 2.1.x version into a variable filled from a git command determining the default target automatically

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.

3 participants