-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathmain.php
33 lines (26 loc) · 875 Bytes
/
main.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/**
* @author hollodotme <hw@hollo.me>
*/
namespace CodeClimate\PhpTestReporter;
use CodeClimate\PhpTestReporter\ConsoleCommands\RollbackCommand;
use CodeClimate\PhpTestReporter\ConsoleCommands\SelfUpdateCommand;
use CodeClimate\PhpTestReporter\ConsoleCommands\UploadCommand;
use Symfony\Component\Console\Application;
require __DIR__ . '/../../vendor/autoload.php';
try {
$app = new Application('Code Climate PHP Test Reporter', '@package_version@');
$app->addCommands(
array(
new UploadCommand('upload'),
new SelfUpdateCommand('self-update'),
new RollbackCommand('rollback'),
)
);
$code = $app->run();
exit($code);
} catch (\Exception $e) {
echo 'Uncaught Exception ' . get_class($e) . ' with message: ' . $e->getMessage() . PHP_EOL;
echo $e->getTraceAsString();
exit(1);
}