Skip to content

Commit ca94c95

Browse files
authored
Merge pull request #70 from Ocramius/fix/run-infection-with-phpdbg-by-default
Run `infection` via `phpdbg` by default, since `phpdbg` is pre-installed with PHP
2 parents 4c3e930 + 2d19eef commit ca94c95

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/create-jobs.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,12 @@ function checks (config) {
181181
*/
182182
function (config) {
183183
const composerFile = parseJsonFile('composer.json', false);
184-
let commandToExecute = './vendor/bin/infection';
185184

186185
if (composerFile.hasOwnProperty('require-dev') && composerFile['require-dev'].hasOwnProperty('roave/infection-static-analysis-plugin')) {
187-
commandToExecute = './vendor/bin/roave-infection-static-analysis-plugin';
186+
return createQaJobs('phpdbg -qrr ./vendor/bin/roave-infection-static-analysis-plugin', config);
188187
}
189188

190-
return createQaJobs(commandToExecute, config);
189+
return createQaJobs('phpdbg -qrr ./vendor/bin/infection', config);
191190
}
192191
),
193192
new Check(

0 commit comments

Comments
 (0)