Skip to content

Commit 2714d0a

Browse files
committed
Added make infection command to run it locally
1 parent 6284186 commit 2714d0a

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
/compiler/vendor
44
/conf/config.local.yml
55
/build-cs
6+
/infection.json5
7+
/build-infection
68
/vendor
79
/.idea/*
810
!.idea/icon.png

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,3 +165,12 @@ name-collision:
165165

166166
composer-dependency-analyser:
167167
php vendor/bin/composer-dependency-analyser --config build/composer-dependency-analyser.php
168+
169+
.PHONY: infection
170+
infection:
171+
git clone https://github.com/phpstan/build-infection.git || true
172+
git -C build-infection fetch origin && git -C build-infection reset --hard origin/1.x
173+
composer install --working-dir build-infection --no-interaction --no-progress
174+
php build-infection/bin/infection-config.php --source-directory='build/PHPStan/Build'> infection.json5
175+
php vendor/bin/infection --ignore-msi-with-no-mutations --logger-text=php://stdout
176+
rm infection.json5

0 commit comments

Comments
 (0)