37 lines
1.1 KiB
PHP
Executable file
37 lines
1.1 KiB
PHP
Executable file
#!/usr/bin/env php
|
|
<?php
|
|
/**
|
|
* 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/
|
|
*/
|
|
|
|
define('PHPCI_IS_CONSOLE', true);
|
|
|
|
require('bootstrap.php');
|
|
|
|
use PHPCI\Command\RunCommand;
|
|
use PHPCI\Command\GenerateCommand;
|
|
use PHPCI\Command\UpdateCommand;
|
|
use PHPCI\Command\InstallCommand;
|
|
use PHPCI\Command\DaemonCommand;
|
|
use PHPCI\Command\PollCommand;
|
|
use PHPCI\Command\CreateAdminCommand;
|
|
use Symfony\Component\Console\Application;
|
|
|
|
$loggerConfig = \PHPCI\Logging\LoggerConfig::newFromFile(__DIR__ . "/loggerconfig.php");
|
|
|
|
$application = new Application();
|
|
|
|
$application->add(new RunCommand($loggerConfig->getFor('RunCommand')));
|
|
$application->add(new InstallCommand);
|
|
$application->add(new UpdateCommand($loggerConfig->getFor('UpdateCommand')));
|
|
$application->add(new GenerateCommand);
|
|
$application->add(new DaemonCommand($loggerConfig->getFor('DaemonCommand')));
|
|
$application->add(new PollCommand($loggerConfig->getFor('PollCommand')));
|
|
$application->add(new CreateAdminCommand);
|
|
|
|
$application->run();
|