Skip to content

Commit 5fa7cd8

Browse files
committed
Added make infection command to run it locally
1 parent 19bb299 commit 5fa7cd8

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
@@ -163,3 +163,12 @@ name-collision:
163163

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

0 commit comments

Comments
 (0)