Added debug mode for cron run-builds command
This commit is contained in:
parent
64b0f60368
commit
54f27d5534
|
@ -65,7 +65,8 @@ class RunCommand extends Command
|
||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
->setName('phpci:run-builds')
|
->setName('phpci:run-builds')
|
||||||
->setDescription(Lang::get('run_all_pending'));
|
->setDescription(Lang::get('run_all_pending'))
|
||||||
|
->addOption('debug', null, null, 'Run PHPCI in Debug Mode');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -83,6 +84,12 @@ class RunCommand extends Command
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Allow PHPCI to run in "debug mode"
|
||||||
|
if ($input->hasOption('debug') && $input->getOption('debug')) {
|
||||||
|
$output->writeln('<comment>Debug mode enabled.</comment>');
|
||||||
|
define('PHPCI_DEBUG_MODE', true);
|
||||||
|
}
|
||||||
|
|
||||||
$running = $this->validateRunningBuilds();
|
$running = $this->validateRunningBuilds();
|
||||||
|
|
||||||
$this->logger->pushProcessor(new LoggedBuildContextTidier());
|
$this->logger->pushProcessor(new LoggedBuildContextTidier());
|
||||||
|
|
Loading…
Reference in a new issue