File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments