2013-05-15 19:27:13 +02:00
|
|
|
#!/usr/bin/env php
|
|
|
|
<?php
|
2013-05-16 03:16:56 +02:00
|
|
|
/**
|
|
|
|
* PHPCI - Continuous Integration for PHP
|
|
|
|
*
|
2013-05-16 03:57:02 +02:00
|
|
|
* @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-05-15 19:27:13 +02:00
|
|
|
|
2013-10-10 02:01:06 +02:00
|
|
|
define('PHPCI_IS_CONSOLE', true);
|
2013-05-15 23:29:09 +02:00
|
|
|
|
2013-05-16 03:57:02 +02:00
|
|
|
require('bootstrap.php');
|
2013-05-15 23:29:09 +02:00
|
|
|
|
2013-05-15 19:27:13 +02:00
|
|
|
use PHPCI\Command\RunCommand;
|
2015-02-20 14:37:36 +01:00
|
|
|
use PHPCI\Command\RebuildCommand;
|
2013-05-15 19:27:13 +02:00
|
|
|
use PHPCI\Command\GenerateCommand;
|
2013-10-08 08:45:20 +02:00
|
|
|
use PHPCI\Command\UpdateCommand;
|
2013-05-15 19:27:13 +02:00
|
|
|
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;
|
2014-01-14 22:09:40 +01:00
|
|
|
use PHPCI\Command\CreateAdminCommand;
|
2015-03-28 13:04:28 +01:00
|
|
|
use PHPCI\Command\CreateBuildCommand;
|
|
|
|
use PHPCI\Service\BuildService;
|
2013-05-15 19:27:13 +02:00
|
|
|
use Symfony\Component\Console\Application;
|
2014-12-04 12:31:21 +01:00
|
|
|
use b8\Store\Factory;
|
2013-05-15 19:27:13 +02:00
|
|
|
|
|
|
|
$application = new Application();
|
2013-11-02 16:28:24 +01:00
|
|
|
|
2013-11-28 22:18:11 +01:00
|
|
|
$application->add(new RunCommand($loggerConfig->getFor('RunCommand')));
|
2015-02-20 14:37:36 +01:00
|
|
|
$application->add(new RebuildCommand($loggerConfig->getFor('RunCommand')));
|
2013-05-15 19:27:13 +02:00
|
|
|
$application->add(new InstallCommand);
|
2013-11-28 22:18:11 +01:00
|
|
|
$application->add(new UpdateCommand($loggerConfig->getFor('UpdateCommand')));
|
2013-05-15 19:27:13 +02:00
|
|
|
$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')));
|
2015-03-28 13:04:28 +01:00
|
|
|
$application->add(new CreateBuildCommand(Factory::getStore('Project'), new BuildService(Factory::getStore('Build'))));
|
2013-11-02 16:28:24 +01:00
|
|
|
|
2014-12-04 12:31:21 +01:00
|
|
|
$application->run();
|