Skip to content

Commit a4cc79c

Browse files
committed
Update Makefile
1 parent f9bf010 commit a4cc79c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Makefile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,18 +169,19 @@ infection:
169169
git clone https://github.com/phpstan/build-infection.git || true
170170
git -C build-infection fetch origin && git -C build-infection reset --hard origin/1.x
171171
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
172+
php build-infection/bin/infection-config.php --source-directory='build/PHPStan/Build'> tmp/infection.json5
173173
version=$(shell jq -r '.packages[] | select(.name == "infection/infection") | .version' build-infection/composer.lock); \
174-
wget https://github.com/infection/infection/releases/download/$$version/infection.phar --no-clobber;
175-
chmod +x infection.phar
174+
wget -P tmp/ https://github.com/infection/infection/releases/download/$$version/infection.phar --no-clobber;
175+
chmod +x tmp/infection.phar
176176
XDEBUG_MODE=coverage php tests/vendor/bin/paratest \
177177
--coverage-xml=tmp/coverage/coverage-xml \
178178
--log-junit=tmp/coverage/junit.xml
179+
baseBranch=$(shell git symbolic-ref refs/remotes/${remote:-origin}/HEAD | sed 's,.*/,,') \
179180
php infection.phar \
180-
--git-diff-base=origin/2.1.x \
181+
--configuration=tmp/infection.json5
182+
--git-diff-base=origin/$$baseBranch \
181183
--git-diff-lines \
182184
--coverage=tmp/coverage \
183185
--skip-initial-tests \
184186
--ignore-msi-with-no-mutations \
185187
--logger-text=php://stdout
186-
rm infection.json5 infection.phar

0 commit comments

Comments
 (0)