phpci/console

45 lines
1.6 KiB
Plaintext
Raw Permalink Normal View History

#!/usr/bin/env php
<?php
2013-05-16 03:16:56 +02:00
/**
* PHPCI - Continuous Integration for PHP
*
* @copyright Copyright 2013, Block 8 Limited.
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
* @link http://www.phptesting.org/
2013-05-16 03:16:56 +02:00
*/
2013-10-10 02:01:06 +02:00
define('PHPCI_IS_CONSOLE', true);
require('bootstrap.php');
use PHPCI\Command\RunCommand;
use PHPCI\Command\RebuildCommand;
use PHPCI\Command\GenerateCommand;
2013-10-08 08:45:20 +02:00
use PHPCI\Command\UpdateCommand;
use PHPCI\Command\InstallCommand;
2013-06-09 18:42:50 +02:00
use PHPCI\Command\DaemonCommand;
2013-11-18 22:49:18 +01:00
use PHPCI\Command\PollCommand;
use PHPCI\Command\CreateAdminCommand;
use PHPCI\Command\CreateBuildCommand;
use PHPCI\Command\WorkerCommand;
2015-11-03 21:42:47 +01:00
use PHPCI\Command\RebuildQueueCommand;
use PHPCI\Service\BuildService;
use Symfony\Component\Console\Application;
2014-12-04 12:31:21 +01:00
use b8\Store\Factory;
$application = new Application();
2013-11-28 22:18:11 +01:00
$application->add(new RunCommand($loggerConfig->getFor('RunCommand')));
$application->add(new RebuildCommand($loggerConfig->getFor('RunCommand')));
$application->add(new InstallCommand);
2013-11-28 22:18:11 +01:00
$application->add(new UpdateCommand($loggerConfig->getFor('UpdateCommand')));
$application->add(new GenerateCommand);
2013-11-28 22:18:11 +01:00
$application->add(new DaemonCommand($loggerConfig->getFor('DaemonCommand')));
$application->add(new PollCommand($loggerConfig->getFor('PollCommand')));
2014-12-04 12:31:21 +01:00
$application->add(new CreateAdminCommand(Factory::getStore('User')));
$application->add(new CreateBuildCommand(Factory::getStore('Project'), new BuildService(Factory::getStore('Build'))));
$application->add(new WorkerCommand($loggerConfig->getFor('WorkerCommand')));
2015-11-03 21:42:47 +01:00
$application->add(new RebuildQueueCommand($loggerConfig->getFor('RebuildQueueCommand')));
2014-12-04 12:31:21 +01:00
$application->run();