-
Notifications
You must be signed in to change notification settings - Fork 544
Added make infection command to run it locally
#4524
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 2.1.x
Are you sure you want to change the base?
Conversation
|
This pull request has been marked as ready for review. |
|
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 \ |
There was a problem hiding this comment.
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
similar to phpstan/build-infection#30
requires #4525