Fixed namespaces in docblocks (PHPCI -> PHPCensor)
This commit is contained in:
parent
41407e1d15
commit
32f5c01728
|
@ -33,7 +33,7 @@ How to write to the Log (For people creating a new plugin)
|
||||||
|
|
||||||
For plugin creators the simplest way to get hold of an error logger is to add a parameter to the constructor and typehint on 'Psr\Log\LoggerInterface'. The code that loads your plugin will automatically inject the logger when it sees this. For example:
|
For plugin creators the simplest way to get hold of an error logger is to add a parameter to the constructor and typehint on 'Psr\Log\LoggerInterface'. The code that loads your plugin will automatically inject the logger when it sees this. For example:
|
||||||
```php
|
```php
|
||||||
class ExampleLoggingPlugin implements \PHPCI\Plugin
|
class ExampleLoggingPlugin implements \PHPCensor\Plugin
|
||||||
{
|
{
|
||||||
protected $log;
|
protected $log;
|
||||||
|
|
||||||
|
|
|
@ -22,5 +22,5 @@ phing:
|
||||||
targets:
|
targets:
|
||||||
- "build:test"
|
- "build:test"
|
||||||
properties:
|
properties:
|
||||||
config_file: "PHPCI"
|
config_file: "php-censor"
|
||||||
```
|
```
|
||||||
|
|
|
@ -34,7 +34,7 @@ For use with an existing project:
|
||||||
test:
|
test:
|
||||||
php_code_sniffer:
|
php_code_sniffer:
|
||||||
standard: "/phpcs.xml" # The leading slash is needed to trigger an external ruleset.
|
standard: "/phpcs.xml" # The leading slash is needed to trigger an external ruleset.
|
||||||
# Without it, PHPCI looks for a rule named "phpcs.xml"
|
# Without it, PHP Censor looks for a rule named "phpcs.xml"
|
||||||
allowed_errors: -1 # Even a single error will cause the build to fail. -1 = unlimited
|
allowed_errors: -1 # Even a single error will cause the build to fail. -1 = unlimited
|
||||||
allowed_warnings: -1
|
allowed_warnings: -1
|
||||||
```
|
```
|
||||||
|
|
|
@ -37,6 +37,6 @@ complete:
|
||||||
- "recipient2@jabber.org"
|
- "recipient2@jabber.org"
|
||||||
server: "gtalk.google.com"
|
server: "gtalk.google.com"
|
||||||
tls: 1
|
tls: 1
|
||||||
alias: "PHPCi Notification"
|
alias: "PHP Censor Notification"
|
||||||
date_format: "%d/%m/%Y"
|
date_format: "%d/%m/%Y"
|
||||||
```
|
```
|
||||||
|
|
|
@ -16,7 +16,7 @@ Installation
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
PROJECT_ID=1
|
PROJECT_ID=1
|
||||||
APP_URL="http://my.server.com/PHPCI/"
|
APP_URL="http://my.server.com/php-censor/"
|
||||||
|
|
||||||
trigger_hook() {
|
trigger_hook() {
|
||||||
NEWREV="$2"
|
NEWREV="$2"
|
||||||
|
|
|
@ -13,10 +13,10 @@ server {
|
||||||
... standard virtual host ...
|
... standard virtual host ...
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri @phpci;
|
try_files $uri @php-censor;
|
||||||
}
|
}
|
||||||
|
|
||||||
location @phpci {
|
location @php-censor {
|
||||||
# Pass to FastCGI:
|
# Pass to FastCGI:
|
||||||
fastcgi_pass unix:/path/to/phpfpm.sock;
|
fastcgi_pass unix:/path/to/phpfpm.sock;
|
||||||
fastcgi_index index.php;
|
fastcgi_index index.php;
|
||||||
|
@ -47,23 +47,22 @@ For Apache, you can use a standard virtual host, as long as your server supports
|
||||||
```
|
```
|
||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
ServerAdmin user@domain.com
|
ServerAdmin user@domain.com
|
||||||
DocumentRoot /var/www/phpci/public
|
DocumentRoot /var/www/php-censor.local/public
|
||||||
ServerName phpci.vagrant
|
ServerName php-censor.local
|
||||||
ServerAlias phpci.vagrant
|
|
||||||
|
|
||||||
<Directory /var/www/phpci/public/>
|
<Directory /var/www/php-censor.local/public/>
|
||||||
Options Indexes FollowSymLinks
|
Options Indexes FollowSymLinks
|
||||||
AllowOverride All
|
AllowOverride All
|
||||||
Require all granted
|
Require all granted
|
||||||
</Directory>
|
</Directory>
|
||||||
ErrorLog ${APACHE_LOG_DIR}/phpci-error_log
|
ErrorLog ${APACHE_LOG_DIR}/php-censor-error_log
|
||||||
CustomLog ${APACHE_LOG_DIR}/phpci-access_log combined
|
CustomLog ${APACHE_LOG_DIR}/php-censor-access_log combined
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
```
|
```
|
||||||
|
|
||||||
- Add in /etc/hosts
|
- Add in /etc/hosts
|
||||||
```
|
```
|
||||||
127.0.0.1 phpci.vagrant
|
127.0.0.1 php-censor.local
|
||||||
```
|
```
|
||||||
|
|
||||||
Built-in PHP Server Example
|
Built-in PHP Server Example
|
||||||
|
|
|
@ -11,10 +11,7 @@ Setting up the Cron Job
|
||||||
You'll want to set up PHP Censor to run as a regular cronjob, so run `crontab -e` and enter the following:
|
You'll want to set up PHP Censor to run as a regular cronjob, so run `crontab -e` and enter the following:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
* * * * * /usr/bin/php /path/to/phpci/console php-censor:run-builds
|
* * * * * /usr/bin/php /path/to/php-censor/console php-censor:run-builds
|
||||||
|
|
||||||
# For backward compatibility with PHPCI
|
|
||||||
* * * * * /usr/bin/php /path/to/phpci/console phpci:run-builds
|
|
||||||
```
|
```
|
||||||
|
|
||||||
**Note:** Make sure you change the `/path/to/php-censor` to the directory in which you installed PHP Censor, and update the PHP path if necessary.
|
**Note:** Make sure you change the `/path/to/php-censor` to the directory in which you installed PHP Censor, and update the PHP path if necessary.
|
||||||
|
|
|
@ -13,11 +13,11 @@ Starting the Daemon
|
||||||
On a Linux/Unix server, the following command will start the daemon and keep it running even when you log out of the server:
|
On a Linux/Unix server, the following command will start the daemon and keep it running even when you log out of the server:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
nohup php ./daemonise phpci:daemonise >/dev/null 2>&1 &
|
nohup php ./daemonise php-censor:daemonise >/dev/null 2>&1 &
|
||||||
```
|
```
|
||||||
|
|
||||||
If you need to debug what's going on with your builds, you can also run the daemon directly using the following command, which will output the daemon's log directly to your terminal:
|
If you need to debug what's going on with your builds, you can also run the daemon directly using the following command, which will output the daemon's log directly to your terminal:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
php daemonise phpci:daemonise
|
php daemonise php-censor:daemonise
|
||||||
```
|
```
|
||||||
|
|
|
@ -36,15 +36,15 @@ Once you've set up PHP Censor to add your jobs to a beanstalkd queue, you need t
|
||||||
Using your preferred text editor, create a file named `php-censor.conf` under `/etc/supervisor/conf.d`. In it, enter the following config:
|
Using your preferred text editor, create a file named `php-censor.conf` under `/etc/supervisor/conf.d`. In it, enter the following config:
|
||||||
|
|
||||||
```
|
```
|
||||||
[program:phpci]
|
[program:php-censor]
|
||||||
command=/path/to/phpci/latest/console phpci:worker
|
command=/path/to/php-censor/latest/console php-censor:worker
|
||||||
process_name=%(program_name)s_%(process_num)02d
|
process_name=%(program_name)s_%(process_num)02d
|
||||||
stdout_logfile=/var/log/phpci.log
|
stdout_logfile=/var/log/php-censor.log
|
||||||
stderr_logfile=/var/log/phpci-err.log
|
stderr_logfile=/var/log/php-censor-err.log
|
||||||
user=phpci
|
user=php-censor
|
||||||
autostart=true
|
autostart=true
|
||||||
autorestart=true
|
autorestart=true
|
||||||
environment=HOME="/home/phpci",USER="phpci"
|
environment=HOME="/home/php-censor",USER="php-censor"
|
||||||
numprocs=2
|
numprocs=2
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -53,9 +53,9 @@ You'll need to edit the '/path/to/php-censor', the `user` value and the `environ
|
||||||
Once you've created this file, simply restart supervisord using the command `service supervisor restart` and 2 instances of PHP Censor's worker should start immediately. You can verify this by running the command `ps aux | grep php-censor`, which should give you output as follows:
|
Once you've created this file, simply restart supervisord using the command `service supervisor restart` and 2 instances of PHP Censor's worker should start immediately. You can verify this by running the command `ps aux | grep php-censor`, which should give you output as follows:
|
||||||
|
|
||||||
```
|
```
|
||||||
➜ ~ ps aux | grep phpci
|
➜ ~ ps aux | grep php-censor
|
||||||
phpci 19057 0.0 0.9 200244 18720 ? S 03:00 0:01 php /phpci/console phpci:worker
|
php-censor 19057 0.0 0.9 200244 18720 ? S 03:00 0:01 php /php-censor/console php-censor:worker
|
||||||
phpci 19058 0.0 0.9 200244 18860 ? S 03:00 0:01 php /phpci/console phpci:worker
|
php-censor 19058 0.0 0.9 200244 18860 ? S 03:00 0:01 php /php-censor/console php-censor:worker
|
||||||
```
|
```
|
||||||
|
|
||||||
That's it! Now, whenever you create a new build in PHP Censor, it should start building immediately.
|
That's it! Now, whenever you create a new build in PHP Censor, it should start building immediately.
|
||||||
|
|
|
@ -22,7 +22,7 @@ use b8\View;
|
||||||
class Application extends b8\Application
|
class Application extends b8\Application
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Controller
|
* @var \PHPCensor\Controller
|
||||||
*/
|
*/
|
||||||
protected $controller;
|
protected $controller;
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,7 @@ class Builder implements LoggerAwareInterface
|
||||||
protected $verbose = true;
|
protected $verbose = true;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Model\Build
|
* @var \PHPCensor\Model\Build
|
||||||
*/
|
*/
|
||||||
protected $build;
|
protected $build;
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@ class Builder implements LoggerAwareInterface
|
||||||
protected $interpolator;
|
protected $interpolator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Store\BuildStore
|
* @var \PHPCensor\Store\BuildStore
|
||||||
*/
|
*/
|
||||||
protected $store;
|
protected $store;
|
||||||
|
|
||||||
|
@ -83,7 +83,7 @@ class Builder implements LoggerAwareInterface
|
||||||
public $quiet = false;
|
public $quiet = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Plugin\Util\Executor
|
* @var \PHPCensor\Plugin\Util\Executor
|
||||||
*/
|
*/
|
||||||
protected $pluginExecutor;
|
protected $pluginExecutor;
|
||||||
|
|
||||||
|
@ -99,8 +99,9 @@ class Builder implements LoggerAwareInterface
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set up the builder.
|
* Set up the builder.
|
||||||
* @param \PHPCI\Model\Build $build
|
*
|
||||||
* @param LoggerInterface $logger
|
* @param \PHPCensor\Model\Build $build
|
||||||
|
* @param LoggerInterface $logger
|
||||||
*/
|
*/
|
||||||
public function __construct(Build $build, LoggerInterface $logger = null)
|
public function __construct(Build $build, LoggerInterface $logger = null)
|
||||||
{
|
{
|
||||||
|
|
|
@ -100,9 +100,10 @@ class DaemoniseCommand extends Command
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called when log entries are made in Builder / the plugins.
|
* Called when log entries are made in Builder / the plugins.
|
||||||
* @see \PHPCI\Builder::log()
|
*
|
||||||
*/
|
* @see \PHPCensor\Builder::log()
|
||||||
|
*/
|
||||||
public function logCallback($log)
|
public function logCallback($log)
|
||||||
{
|
{
|
||||||
$this->output->writeln($log);
|
$this->output->writeln($log);
|
||||||
|
|
|
@ -71,7 +71,7 @@ class RebuildCommand extends Command
|
||||||
$runner->setMaxBuilds(1);
|
$runner->setMaxBuilds(1);
|
||||||
$runner->setDaemon(false);
|
$runner->setDaemon(false);
|
||||||
|
|
||||||
/** @var \PHPCI\Store\BuildStore $store */
|
/** @var \PHPCensor\Store\BuildStore $store */
|
||||||
$store = Factory::getStore('Build');
|
$store = Factory::getStore('Build');
|
||||||
$service = new BuildService($store);
|
$service = new BuildService($store);
|
||||||
|
|
||||||
|
@ -83,9 +83,10 @@ class RebuildCommand extends Command
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called when log entries are made in Builder / the plugins.
|
* Called when log entries are made in Builder / the plugins.
|
||||||
* @see \PHPCI\Builder::log()
|
*
|
||||||
*/
|
* @see \PHPCensor\Builder::log()
|
||||||
|
*/
|
||||||
public function logCallback($log)
|
public function logCallback($log)
|
||||||
{
|
{
|
||||||
$this->output->writeln($log);
|
$this->output->writeln($log);
|
||||||
|
|
|
@ -154,7 +154,7 @@ class RunCommand extends Command
|
||||||
|
|
||||||
protected function validateRunningBuilds()
|
protected function validateRunningBuilds()
|
||||||
{
|
{
|
||||||
/** @var \PHPCI\Store\BuildStore $store */
|
/** @var \PHPCensor\Store\BuildStore $store */
|
||||||
$store = Factory::getStore('Build');
|
$store = Factory::getStore('Build');
|
||||||
$running = $store->getByStatus(1);
|
$running = $store->getByStatus(1);
|
||||||
$rtn = [];
|
$rtn = [];
|
||||||
|
@ -162,7 +162,7 @@ class RunCommand extends Command
|
||||||
$timeout = Config::getInstance()->get('php-censor.build.failed_after', 1800);
|
$timeout = Config::getInstance()->get('php-censor.build.failed_after', 1800);
|
||||||
|
|
||||||
foreach ($running['items'] as $build) {
|
foreach ($running['items'] as $build) {
|
||||||
/** @var \PHPCI\Model\Build $build */
|
/** @var \PHPCensor\Model\Build $build */
|
||||||
$build = BuildFactory::getBuild($build);
|
$build = BuildFactory::getBuild($build);
|
||||||
|
|
||||||
$now = time();
|
$now = time();
|
||||||
|
|
|
@ -29,12 +29,12 @@ use PHPCensor\Controller;
|
||||||
class BuildController extends Controller
|
class BuildController extends Controller
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Store\BuildStore
|
* @var \PHPCensor\Store\BuildStore
|
||||||
*/
|
*/
|
||||||
protected $buildStore;
|
protected $buildStore;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Service\BuildService
|
* @var \PHPCensor\Service\BuildService
|
||||||
*/
|
*/
|
||||||
protected $buildService;
|
protected $buildService;
|
||||||
|
|
||||||
|
@ -173,7 +173,7 @@ class BuildController extends Controller
|
||||||
$data['finished'] = !is_null($build->getFinished()) ? $build->getFinished()->format('Y-m-d H:i:s') : null;
|
$data['finished'] = !is_null($build->getFinished()) ? $build->getFinished()->format('Y-m-d H:i:s') : null;
|
||||||
$data['duration'] = $build->getDuration();
|
$data['duration'] = $build->getDuration();
|
||||||
|
|
||||||
/** @var \PHPCI\Store\BuildErrorStore $errorStore */
|
/** @var \PHPCensor\Store\BuildErrorStore $errorStore */
|
||||||
$errorStore = b8\Store\Factory::getStore('BuildError');
|
$errorStore = b8\Store\Factory::getStore('BuildError');
|
||||||
$errors = $errorStore->getErrorsForBuild($build->getId());
|
$errors = $errorStore->getErrorsForBuild($build->getId());
|
||||||
|
|
||||||
|
|
|
@ -26,9 +26,9 @@ use PHPCensor\Controller;
|
||||||
*/
|
*/
|
||||||
class BuildStatusController extends Controller
|
class BuildStatusController extends Controller
|
||||||
{
|
{
|
||||||
/* @var \PHPCI\Store\ProjectStore */
|
/* @var \PHPCensor\Store\ProjectStore */
|
||||||
protected $projectStore;
|
protected $projectStore;
|
||||||
/* @var \PHPCI\Store\BuildStore */
|
/* @var \PHPCensor\Store\BuildStore */
|
||||||
protected $buildStore;
|
protected $buildStore;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -25,7 +25,7 @@ use PHPCensor\Helper\Lang;
|
||||||
class GroupController extends Controller
|
class GroupController extends Controller
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Store\ProjectGroupStore
|
* @var \PHPCensor\Store\ProjectGroupStore
|
||||||
*/
|
*/
|
||||||
protected $groupStore;
|
protected $groupStore;
|
||||||
|
|
||||||
|
|
|
@ -24,17 +24,17 @@ use PHPCensor\Controller;
|
||||||
class HomeController extends Controller
|
class HomeController extends Controller
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Store\BuildStore
|
* @var \PHPCensor\Store\BuildStore
|
||||||
*/
|
*/
|
||||||
protected $buildStore;
|
protected $buildStore;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Store\ProjectStore
|
* @var \PHPCensor\Store\ProjectStore
|
||||||
*/
|
*/
|
||||||
protected $projectStore;
|
protected $projectStore;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Store\ProjectGroupStore
|
* @var \PHPCensor\Store\ProjectGroupStore
|
||||||
*/
|
*/
|
||||||
protected $groupStore;
|
protected $groupStore;
|
||||||
|
|
||||||
|
|
|
@ -30,22 +30,22 @@ use PHPCensor\Service\ProjectService;
|
||||||
class ProjectController extends PHPCensor\Controller
|
class ProjectController extends PHPCensor\Controller
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Store\ProjectStore
|
* @var \PHPCensor\Store\ProjectStore
|
||||||
*/
|
*/
|
||||||
protected $projectStore;
|
protected $projectStore;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Service\ProjectService
|
* @var \PHPCensor\Service\ProjectService
|
||||||
*/
|
*/
|
||||||
protected $projectService;
|
protected $projectService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Store\BuildStore
|
* @var \PHPCensor\Store\BuildStore
|
||||||
*/
|
*/
|
||||||
protected $buildStore;
|
protected $buildStore;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Service\BuildService
|
* @var \PHPCensor\Service\BuildService
|
||||||
*/
|
*/
|
||||||
protected $buildService;
|
protected $buildService;
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ class ProjectController extends PHPCensor\Controller
|
||||||
*/
|
*/
|
||||||
public function build($projectId, $branch = '')
|
public function build($projectId, $branch = '')
|
||||||
{
|
{
|
||||||
/* @var \PHPCI\Model\Project $project */
|
/* @var \PHPCensor\Model\Project $project */
|
||||||
$project = $this->projectStore->getById($projectId);
|
$project = $this->projectStore->getById($projectId);
|
||||||
|
|
||||||
if (empty($branch)) {
|
if (empty($branch)) {
|
||||||
|
|
|
@ -23,7 +23,7 @@ use PHPCensor\Controller;
|
||||||
class SessionController extends Controller
|
class SessionController extends Controller
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Store\UserStore
|
* @var \PHPCensor\Store\UserStore
|
||||||
*/
|
*/
|
||||||
protected $userStore;
|
protected $userStore;
|
||||||
|
|
||||||
|
|
|
@ -25,12 +25,12 @@ use PHPCensor\Service\UserService;
|
||||||
class UserController extends Controller
|
class UserController extends Controller
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Store\UserStore
|
* @var \PHPCensor\Store\UserStore
|
||||||
*/
|
*/
|
||||||
protected $userStore;
|
protected $userStore;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Service\UserService
|
* @var \PHPCensor\Service\UserService
|
||||||
*/
|
*/
|
||||||
protected $userService;
|
protected $userService;
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ namespace PHPCensor;
|
||||||
/**
|
/**
|
||||||
* Error Handler
|
* Error Handler
|
||||||
*
|
*
|
||||||
* @package PHPCI\Logging
|
* @package PHPCensor\Logging
|
||||||
*/
|
*/
|
||||||
class ErrorHandler
|
class ErrorHandler
|
||||||
{
|
{
|
||||||
|
|
|
@ -14,7 +14,7 @@ use SensioLabs\AnsiConverter\AnsiToHtmlConverter;
|
||||||
/**
|
/**
|
||||||
* Converts ANSI output to HTML.
|
* Converts ANSI output to HTML.
|
||||||
*
|
*
|
||||||
* @package PHPCI\Helper
|
* @package PHPCensor\Helper
|
||||||
*/
|
*/
|
||||||
final class AnsiConverter
|
final class AnsiConverter
|
||||||
{
|
{
|
||||||
|
|
|
@ -15,7 +15,7 @@ use Psr\Log\LogLevel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handles running system commands with variables.
|
* Handles running system commands with variables.
|
||||||
* @package PHPCI\Helper
|
* @package PHPCensor\Helper
|
||||||
*/
|
*/
|
||||||
abstract class BaseCommandExecutor implements CommandExecutor
|
abstract class BaseCommandExecutor implements CommandExecutor
|
||||||
{
|
{
|
||||||
|
|
|
@ -13,7 +13,7 @@ use PHPCensor\Model\Build;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The BuildInterpolator class replaces variables in a string with build-specific information.
|
* The BuildInterpolator class replaces variables in a string with build-specific information.
|
||||||
* @package PHPCI\Helper
|
* @package PHPCensor\Helper
|
||||||
*/
|
*/
|
||||||
class BuildInterpolator
|
class BuildInterpolator
|
||||||
{
|
{
|
||||||
|
|
|
@ -11,7 +11,7 @@ namespace PHPCensor\Helper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides some basic diff processing functionality.
|
* Provides some basic diff processing functionality.
|
||||||
* @package PHPCI\Helper
|
* @package PHPCensor\Helper
|
||||||
*/
|
*/
|
||||||
class Diff
|
class Diff
|
||||||
{
|
{
|
||||||
|
|
|
@ -14,7 +14,7 @@ use PHPCensor\Builder;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper class for sending emails using PHPCI's email configuration.
|
* Helper class for sending emails using PHPCI's email configuration.
|
||||||
* @package PHPCI\Helper
|
* @package PHPCensor\Helper
|
||||||
*/
|
*/
|
||||||
class Email
|
class Email
|
||||||
{
|
{
|
||||||
|
|
|
@ -15,7 +15,7 @@ use b8\HttpClient;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Github Helper class provides some Github API call functionality.
|
* The Github Helper class provides some Github API call functionality.
|
||||||
* @package PHPCI\Helper
|
* @package PHPCensor\Helper
|
||||||
*/
|
*/
|
||||||
class Github
|
class Github
|
||||||
{
|
{
|
||||||
|
|
|
@ -14,7 +14,7 @@ use b8\Config;
|
||||||
/**
|
/**
|
||||||
* Languages Helper Class - Handles loading strings files and the strings within them.
|
* Languages Helper Class - Handles loading strings files and the strings within them.
|
||||||
*
|
*
|
||||||
* @package PHPCI\Helper
|
* @package PHPCensor\Helper
|
||||||
*/
|
*/
|
||||||
class Lang
|
class Lang
|
||||||
{
|
{
|
||||||
|
|
|
@ -11,7 +11,7 @@ namespace PHPCensor\Helper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class MailerFactory helps to set up and configure a SwiftMailer object.
|
* Class MailerFactory helps to set up and configure a SwiftMailer object.
|
||||||
* @package PHPCI\Helper
|
* @package PHPCensor\Helper
|
||||||
*/
|
*/
|
||||||
class MailerFactory
|
class MailerFactory
|
||||||
{
|
{
|
||||||
|
|
|
@ -11,7 +11,7 @@ namespace PHPCensor\Helper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper class for dealing with SSH keys.
|
* Helper class for dealing with SSH keys.
|
||||||
* @package PHPCI\Helper
|
* @package PHPCensor\Helper
|
||||||
*/
|
*/
|
||||||
class SshKey
|
class SshKey
|
||||||
{
|
{
|
||||||
|
|
|
@ -11,7 +11,7 @@ namespace PHPCensor\Helper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unix/Linux specific extension of the CommandExecutor class.
|
* Unix/Linux specific extension of the CommandExecutor class.
|
||||||
* @package PHPCI\Helper
|
* @package PHPCensor\Helper
|
||||||
*/
|
*/
|
||||||
class UnixCommandExecutor extends BaseCommandExecutor
|
class UnixCommandExecutor extends BaseCommandExecutor
|
||||||
{
|
{
|
||||||
|
|
|
@ -11,7 +11,7 @@ namespace PHPCensor\Helper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Windows-specific extension of the CommandExecutor class.
|
* Windows-specific extension of the CommandExecutor class.
|
||||||
* @package PHPCI\Helper
|
* @package PHPCensor\Helper
|
||||||
*/
|
*/
|
||||||
class WindowsCommandExecutor extends BaseCommandExecutor
|
class WindowsCommandExecutor extends BaseCommandExecutor
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,7 +16,7 @@ use Psr\Log\LogLevel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class BuildDBLogHandler writes the build log to the database.
|
* Class BuildDBLogHandler writes the build log to the database.
|
||||||
* @package PHPCI\Logging
|
* @package PHPCensor\Logging
|
||||||
*/
|
*/
|
||||||
class BuildDBLogHandler extends AbstractProcessingHandler
|
class BuildDBLogHandler extends AbstractProcessingHandler
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,7 +16,7 @@ use Psr\Log\LogLevel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class BuildLogger
|
* Class BuildLogger
|
||||||
* @package PHPCI\Logging
|
* @package PHPCensor\Logging
|
||||||
*/
|
*/
|
||||||
class BuildLogger implements LoggerAwareInterface
|
class BuildLogger implements LoggerAwareInterface
|
||||||
{
|
{
|
||||||
|
|
|
@ -13,7 +13,7 @@ use Psr\Log\LoggerInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Base Log Handler
|
* Base Log Handler
|
||||||
* @package PHPCI\Logging
|
* @package PHPCensor\Logging
|
||||||
*/
|
*/
|
||||||
class Handler
|
class Handler
|
||||||
{
|
{
|
||||||
|
|
|
@ -13,7 +13,7 @@ use PHPCensor\Model\Build;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class LoggedBuildContextTidier cleans up build log entries.
|
* Class LoggedBuildContextTidier cleans up build log entries.
|
||||||
* @package PHPCI\Logging
|
* @package PHPCensor\Logging
|
||||||
*/
|
*/
|
||||||
class LoggedBuildContextTidier
|
class LoggedBuildContextTidier
|
||||||
{
|
{
|
||||||
|
|
|
@ -14,7 +14,7 @@ use Monolog\Logger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class LoggerConfig
|
* Class LoggerConfig
|
||||||
* @package PHPCI\Logging
|
* @package PHPCensor\Logging
|
||||||
*/
|
*/
|
||||||
class LoggerConfig
|
class LoggerConfig
|
||||||
{
|
{
|
||||||
|
|
|
@ -15,7 +15,7 @@ use Symfony\Component\Console\Output\OutputInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class OutputLogHandler outputs the build log to the terminal.
|
* Class OutputLogHandler outputs the build log to the terminal.
|
||||||
* @package PHPCI\Logging
|
* @package PHPCensor\Logging
|
||||||
*/
|
*/
|
||||||
class OutputLogHandler extends AbstractProcessingHandler
|
class OutputLogHandler extends AbstractProcessingHandler
|
||||||
{
|
{
|
||||||
|
|
|
@ -7,12 +7,12 @@ use PHPCensor\Model\BuildError;
|
||||||
class ConvertErrors extends AbstractMigration
|
class ConvertErrors extends AbstractMigration
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Store\BuildMetaStore
|
* @var \PHPCensor\Store\BuildMetaStore
|
||||||
*/
|
*/
|
||||||
protected $metaStore;
|
protected $metaStore;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Store\BuildErrorStore
|
* @var \PHPCensor\Store\BuildErrorStore
|
||||||
*/
|
*/
|
||||||
protected $errorStore;
|
protected $errorStore;
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ class ConvertErrors extends AbstractMigration
|
||||||
$data = $this->metaStore->getErrorsForUpgrade(100);
|
$data = $this->metaStore->getErrorsForUpgrade(100);
|
||||||
$count = count($data);
|
$count = count($data);
|
||||||
|
|
||||||
/** @var \PHPCI\Model\BuildMeta $meta */
|
/** @var \PHPCensor\Model\BuildMeta $meta */
|
||||||
foreach ($data as $meta) {
|
foreach ($data as $meta) {
|
||||||
switch ($meta->getMetaKey()) {
|
switch ($meta->getMetaKey()) {
|
||||||
case 'phpmd-data':
|
case 'phpmd-data':
|
||||||
|
|
|
@ -568,9 +568,9 @@ class BuildBase extends Model
|
||||||
/**
|
/**
|
||||||
* Get the Project model for this Build by Id.
|
* Get the Project model for this Build by Id.
|
||||||
*
|
*
|
||||||
* @uses \PHPCI\Store\ProjectStore::getById()
|
* @uses \PHPCensor\Store\ProjectStore::getById()
|
||||||
* @uses \PHPCI\Model\Project
|
* @uses \PHPCensor\Model\Project
|
||||||
* @return \PHPCI\Model\Project
|
* @return \PHPCensor\Model\Project
|
||||||
*/
|
*/
|
||||||
public function getProject()
|
public function getProject()
|
||||||
{
|
{
|
||||||
|
|
|
@ -448,9 +448,9 @@ class BuildErrorBase extends Model
|
||||||
/**
|
/**
|
||||||
* Get the Build model for this BuildError by Id.
|
* Get the Build model for this BuildError by Id.
|
||||||
*
|
*
|
||||||
* @uses \PHPCI\Store\BuildStore::getById()
|
* @uses \PHPCensor\Store\BuildStore::getById()
|
||||||
* @uses \PHPCI\Model\Build
|
* @uses \PHPCensor\Model\Build
|
||||||
* @return \PHPCI\Model\Build
|
* @return \PHPCensor\Model\Build
|
||||||
*/
|
*/
|
||||||
public function getBuild()
|
public function getBuild()
|
||||||
{
|
{
|
||||||
|
|
|
@ -296,9 +296,9 @@ class BuildMetaBase extends Model
|
||||||
/**
|
/**
|
||||||
* Get the Project model for this BuildMeta by Id.
|
* Get the Project model for this BuildMeta by Id.
|
||||||
*
|
*
|
||||||
* @uses \PHPCI\Store\ProjectStore::getById()
|
* @uses \PHPCensor\Store\ProjectStore::getById()
|
||||||
* @uses \PHPCI\Model\Project
|
* @uses \PHPCensor\Model\Project
|
||||||
* @return \PHPCI\Model\Project
|
* @return \PHPCensor\Model\Project
|
||||||
*/
|
*/
|
||||||
public function getProject()
|
public function getProject()
|
||||||
{
|
{
|
||||||
|
@ -353,9 +353,9 @@ class BuildMetaBase extends Model
|
||||||
/**
|
/**
|
||||||
* Get the Build model for this BuildMeta by Id.
|
* Get the Build model for this BuildMeta by Id.
|
||||||
*
|
*
|
||||||
* @uses \PHPCI\Store\BuildStore::getById()
|
* @uses \PHPCensor\Store\BuildStore::getById()
|
||||||
* @uses \PHPCI\Model\Build
|
* @uses \PHPCensor\Model\Build
|
||||||
* @return \PHPCI\Model\Build
|
* @return \PHPCensor\Model\Build
|
||||||
*/
|
*/
|
||||||
public function getBuild()
|
public function getBuild()
|
||||||
{
|
{
|
||||||
|
|
|
@ -598,9 +598,9 @@ class ProjectBase extends Model
|
||||||
/**
|
/**
|
||||||
* Get the ProjectGroup model for this Project by Id.
|
* Get the ProjectGroup model for this Project by Id.
|
||||||
*
|
*
|
||||||
* @uses \PHPCI\Store\ProjectGroupStore::getById()
|
* @uses \PHPCensor\Store\ProjectGroupStore::getById()
|
||||||
* @uses \PHPCI\Model\ProjectGroup
|
* @uses \PHPCensor\Model\ProjectGroup
|
||||||
* @return \PHPCI\Model\ProjectGroup
|
* @return \PHPCensor\Model\ProjectGroup
|
||||||
*/
|
*/
|
||||||
public function getGroup()
|
public function getGroup()
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,7 +16,7 @@ use Symfony\Component\Yaml\Parser as YamlParser;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Build Model
|
* Build Model
|
||||||
* @uses PHPCI\Model\Base\BuildBase
|
* @uses PHPCensor\Model\Base\BuildBase
|
||||||
* @author Dan Cryer <dan@block8.co.uk>
|
* @author Dan Cryer <dan@block8.co.uk>
|
||||||
* @package PHPCI
|
* @package PHPCI
|
||||||
* @subpackage Core
|
* @subpackage Core
|
||||||
|
|
|
@ -10,7 +10,7 @@ use PHPCensor\Model\Base\BuildErrorBase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BuildError Model
|
* BuildError Model
|
||||||
* @uses PHPCI\Model\Base\BuildErrorBase
|
* @uses PHPCensor\Model\Base\BuildErrorBase
|
||||||
*/
|
*/
|
||||||
class BuildError extends BuildErrorBase
|
class BuildError extends BuildErrorBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -14,7 +14,7 @@ use PHPCensor\Model\Base\BuildMetaBase;
|
||||||
/**
|
/**
|
||||||
* BuildMeta Model
|
* BuildMeta Model
|
||||||
*
|
*
|
||||||
* @uses PHPCI\Model\Base\BuildMetaBase
|
* @uses PHPCensor\Model\Base\BuildMetaBase
|
||||||
*/
|
*/
|
||||||
class BuildMeta extends BuildMetaBase
|
class BuildMeta extends BuildMetaBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -15,7 +15,7 @@ use b8\Store;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Project Model
|
* Project Model
|
||||||
* @uses PHPCI\Model\Base\ProjectBase
|
* @uses PHPCensor\Model\Base\ProjectBase
|
||||||
* @author Dan Cryer <dan@block8.co.uk>
|
* @author Dan Cryer <dan@block8.co.uk>
|
||||||
* @package PHPCI
|
* @package PHPCI
|
||||||
* @subpackage Core
|
* @subpackage Core
|
||||||
|
|
|
@ -10,7 +10,7 @@ use PHPCensor\Model\Base\ProjectGroupBase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ProjectGroup Model
|
* ProjectGroup Model
|
||||||
* @uses PHPCI\Model\Base\ProjectGroupBase
|
* @uses PHPCensor\Model\Base\ProjectGroupBase
|
||||||
*/
|
*/
|
||||||
class ProjectGroup extends ProjectGroupBase
|
class ProjectGroup extends ProjectGroupBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -13,7 +13,7 @@ use PHPCensor\Model\Base\UserBase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* User Model
|
* User Model
|
||||||
* @uses PHPCI\Model\Base\UserBase
|
* @uses PHPCensor\Model\Base\UserBase
|
||||||
* @author Dan Cryer <dan@block8.co.uk>
|
* @author Dan Cryer <dan@block8.co.uk>
|
||||||
* @package PHPCI
|
* @package PHPCI
|
||||||
* @subpackage Core
|
* @subpackage Core
|
||||||
|
|
|
@ -16,7 +16,7 @@ use PHPCensor\Plugin;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Atoum plugin, runs Atoum tests within a project.
|
* Atoum plugin, runs Atoum tests within a project.
|
||||||
* @package PHPCI\Plugin
|
* @package PHPCensor\Plugin
|
||||||
*/
|
*/
|
||||||
class Atoum implements Plugin
|
class Atoum implements Plugin
|
||||||
{
|
{
|
||||||
|
|
|
@ -27,12 +27,12 @@ use PHPCensor\Plugin;
|
||||||
class Email implements Plugin
|
class Email implements Plugin
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Builder
|
* @var \PHPCensor\Builder
|
||||||
*/
|
*/
|
||||||
protected $phpci;
|
protected $phpci;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Model\Build
|
* @var \PHPCensor\Model\Build
|
||||||
*/
|
*/
|
||||||
protected $build;
|
protected $build;
|
||||||
|
|
||||||
|
|
|
@ -26,12 +26,12 @@ use b8\Database;
|
||||||
class Mysql implements Plugin
|
class Mysql implements Plugin
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Builder
|
* @var \PHPCensor\Builder
|
||||||
*/
|
*/
|
||||||
protected $phpci;
|
protected $phpci;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Model\Build
|
* @var \PHPCensor\Model\Build
|
||||||
*/
|
*/
|
||||||
protected $build;
|
protected $build;
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ class Pdepend implements Plugin
|
||||||
{
|
{
|
||||||
protected $args;
|
protected $args;
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Builder
|
* @var \PHPCensor\Builder
|
||||||
*/
|
*/
|
||||||
protected $phpci;
|
protected $phpci;
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -23,12 +23,12 @@ use PHPCensor\Plugin;
|
||||||
class Pgsql implements Plugin
|
class Pgsql implements Plugin
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Builder
|
* @var \PHPCensor\Builder
|
||||||
*/
|
*/
|
||||||
protected $phpci;
|
protected $phpci;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Model\Build
|
* @var \PHPCensor\Model\Build
|
||||||
*/
|
*/
|
||||||
protected $build;
|
protected $build;
|
||||||
|
|
||||||
|
|
|
@ -98,7 +98,7 @@ class Phing implements Plugin
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return \PHPCI\Builder
|
* @return \PHPCensor\Builder
|
||||||
*/
|
*/
|
||||||
public function getPhpci()
|
public function getPhpci()
|
||||||
{
|
{
|
||||||
|
@ -106,7 +106,7 @@ class Phing implements Plugin
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param \PHPCI\Builder $phpci
|
* @param \PHPCensor\Builder $phpci
|
||||||
*
|
*
|
||||||
* @return $this
|
* @return $this
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -23,7 +23,7 @@ use PHPCensor\Model\BuildError;
|
||||||
class PhpCodeSniffer implements PHPCensor\Plugin, PHPCensor\ZeroConfigPlugin
|
class PhpCodeSniffer implements PHPCensor\Plugin, PHPCensor\ZeroConfigPlugin
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Builder
|
* @var \PHPCensor\Builder
|
||||||
*/
|
*/
|
||||||
protected $phpci;
|
protected $phpci;
|
||||||
|
|
||||||
|
@ -90,8 +90,8 @@ class PhpCodeSniffer implements PHPCensor\Plugin, PHPCensor\ZeroConfigPlugin
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param \PHPCI\Builder $phpci
|
* @param \PHPCensor\Builder $phpci
|
||||||
* @param \PHPCI\Model\Build $build
|
* @param \PHPCensor\Model\Build $build
|
||||||
* @param array $options
|
* @param array $options
|
||||||
*/
|
*/
|
||||||
public function __construct(Builder $phpci, Build $build, array $options = [])
|
public function __construct(Builder $phpci, Build $build, array $options = [])
|
||||||
|
|
|
@ -22,12 +22,12 @@ use PHPCensor\Plugin;
|
||||||
class PhpCsFixer implements Plugin
|
class PhpCsFixer implements Plugin
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Builder
|
* @var \PHPCensor\Builder
|
||||||
*/
|
*/
|
||||||
protected $phpci;
|
protected $phpci;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Model\Build
|
* @var \PHPCensor\Model\Build
|
||||||
*/
|
*/
|
||||||
protected $build;
|
protected $build;
|
||||||
|
|
||||||
|
|
|
@ -22,12 +22,12 @@ use PHPCensor\Model\Build;
|
||||||
class PhpDocblockChecker implements PHPCensor\Plugin, PHPCensor\ZeroConfigPlugin
|
class PhpDocblockChecker implements PHPCensor\Plugin, PHPCensor\ZeroConfigPlugin
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Builder
|
* @var \PHPCensor\Builder
|
||||||
*/
|
*/
|
||||||
protected $phpci;
|
protected $phpci;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Model\Build
|
* @var \PHPCensor\Model\Build
|
||||||
*/
|
*/
|
||||||
protected $build;
|
protected $build;
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ class PhpLoc implements PHPCensor\Plugin, PHPCensor\ZeroConfigPlugin
|
||||||
*/
|
*/
|
||||||
protected $directory;
|
protected $directory;
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Builder
|
* @var \PHPCensor\Builder
|
||||||
*/
|
*/
|
||||||
protected $phpci;
|
protected $phpci;
|
||||||
|
|
||||||
|
|
|
@ -22,12 +22,12 @@ use PHPCensor\Model\Build;
|
||||||
class PhpMessDetector implements PHPCensor\Plugin, PHPCensor\ZeroConfigPlugin
|
class PhpMessDetector implements PHPCensor\Plugin, PHPCensor\ZeroConfigPlugin
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Builder
|
* @var \PHPCensor\Builder
|
||||||
*/
|
*/
|
||||||
protected $phpci;
|
protected $phpci;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Model\Build
|
* @var \PHPCensor\Model\Build
|
||||||
*/
|
*/
|
||||||
protected $build;
|
protected $build;
|
||||||
|
|
||||||
|
|
|
@ -22,12 +22,12 @@ use PHPCensor\Plugin;
|
||||||
class PhpParallelLint implements Plugin
|
class PhpParallelLint implements Plugin
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Builder
|
* @var \PHPCensor\Builder
|
||||||
*/
|
*/
|
||||||
protected $phpci;
|
protected $phpci;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Model\Build
|
* @var \PHPCensor\Model\Build
|
||||||
*/
|
*/
|
||||||
protected $build;
|
protected $build;
|
||||||
|
|
||||||
|
|
|
@ -22,12 +22,12 @@ use PHPCensor\Model\Build;
|
||||||
class PhpSpec implements PHPCensor\Plugin
|
class PhpSpec implements PHPCensor\Plugin
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Builder
|
* @var \PHPCensor\Builder
|
||||||
*/
|
*/
|
||||||
protected $phpci;
|
protected $phpci;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Model\Build
|
* @var \PHPCensor\Model\Build
|
||||||
*/
|
*/
|
||||||
protected $build;
|
protected $build;
|
||||||
|
|
||||||
|
|
|
@ -27,12 +27,12 @@ class PhpTalLint implements PHPCensor\Plugin
|
||||||
protected $ignore;
|
protected $ignore;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Builder
|
* @var \PHPCensor\Builder
|
||||||
*/
|
*/
|
||||||
protected $phpci;
|
protected $phpci;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Model\Build
|
* @var \PHPCensor\Model\Build
|
||||||
*/
|
*/
|
||||||
protected $build;
|
protected $build;
|
||||||
|
|
||||||
|
|
|
@ -22,12 +22,12 @@ use PHPCensor\Plugin;
|
||||||
class Shell implements Plugin
|
class Shell implements Plugin
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Builder
|
* @var \PHPCensor\Builder
|
||||||
*/
|
*/
|
||||||
protected $phpci;
|
protected $phpci;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Model\Build
|
* @var \PHPCensor\Model\Build
|
||||||
*/
|
*/
|
||||||
protected $build;
|
protected $build;
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ class Sqlite implements Plugin
|
||||||
protected $phpci;
|
protected $phpci;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Model\Build
|
* @var \PHPCensor\Model\Build
|
||||||
*/
|
*/
|
||||||
protected $build;
|
protected $build;
|
||||||
|
|
||||||
|
|
|
@ -77,8 +77,8 @@ class TechnicalDebt implements PHPCensor\Plugin, PHPCensor\ZeroConfigPlugin
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param \PHPCI\Builder $phpci
|
* @param \PHPCensor\Builder $phpci
|
||||||
* @param \PHPCI\Model\Build $build
|
* @param \PHPCensor\Model\Build $build
|
||||||
* @param array $options
|
* @param array $options
|
||||||
*/
|
*/
|
||||||
public function __construct(Builder $phpci, Build $build, array $options = [])
|
public function __construct(Builder $phpci, Build $build, array $options = [])
|
||||||
|
|
|
@ -6,7 +6,7 @@ use PHPCensor\Plugin;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class ComposerPluginInformation
|
* Class ComposerPluginInformation
|
||||||
* @package PHPCI\Plugin\Util
|
* @package PHPCensor\Plugin\Util
|
||||||
*/
|
*/
|
||||||
class ComposerPluginInformation implements InstalledPluginInformation
|
class ComposerPluginInformation implements InstalledPluginInformation
|
||||||
{
|
{
|
||||||
|
|
|
@ -11,7 +11,7 @@ use PHPCensor\Store\BuildStore;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Plugin Executor - Runs the configured plugins for a given build stage.
|
* Plugin Executor - Runs the configured plugins for a given build stage.
|
||||||
* @package PHPCI\Plugin\Util
|
* @package PHPCensor\Plugin\Util
|
||||||
*/
|
*/
|
||||||
class Executor
|
class Executor
|
||||||
{
|
{
|
||||||
|
@ -77,7 +77,7 @@ class Executor
|
||||||
*/
|
*/
|
||||||
protected function getBranchSpecificPlugins(&$config, $stage, $pluginsToExecute)
|
protected function getBranchSpecificPlugins(&$config, $stage, $pluginsToExecute)
|
||||||
{
|
{
|
||||||
/** @var \PHPCI\Model\Build $build */
|
/** @var \PHPCensor\Model\Build $build */
|
||||||
$build = $this->pluginFactory->getResourceFor('PHPCensor\Model\Build');
|
$build = $this->pluginFactory->getResourceFor('PHPCensor\Model\Build');
|
||||||
$branch = $build->getBranch();
|
$branch = $build->getBranch();
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ use Pimple\Container;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Plugin Factory - Loads Plugins and passes required dependencies.
|
* Plugin Factory - Loads Plugins and passes required dependencies.
|
||||||
* @package PHPCI\Plugin\Util
|
* @package PHPCensor\Plugin\Util
|
||||||
*/
|
*/
|
||||||
class Factory
|
class Factory
|
||||||
{
|
{
|
||||||
|
@ -71,7 +71,7 @@ class Factory
|
||||||
* @param $className
|
* @param $className
|
||||||
* @param array|null $options
|
* @param array|null $options
|
||||||
* @throws \InvalidArgumentException if $className doesn't represent a valid plugin
|
* @throws \InvalidArgumentException if $className doesn't represent a valid plugin
|
||||||
* @return \PHPCI\Plugin
|
* @return \PHPCensor\Plugin
|
||||||
*/
|
*/
|
||||||
public function buildPlugin($className, $options = [])
|
public function buildPlugin($className, $options = [])
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,7 +6,7 @@ use PHPCensor\Plugin;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class FilesPluginInformation
|
* Class FilesPluginInformation
|
||||||
* @package PHPCI\Plugin\Util
|
* @package PHPCensor\Plugin\Util
|
||||||
*/
|
*/
|
||||||
class FilesPluginInformation implements InstalledPluginInformation
|
class FilesPluginInformation implements InstalledPluginInformation
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,7 +3,7 @@ namespace PHPCensor\Plugin\Util;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Interface InstalledPluginInformation
|
* Interface InstalledPluginInformation
|
||||||
* @package PHPCI\Plugin\Util
|
* @package PHPCensor\Plugin\Util
|
||||||
*/
|
*/
|
||||||
interface InstalledPluginInformation
|
interface InstalledPluginInformation
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,7 +4,7 @@ namespace PHPCensor\Plugin\Util;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class PluginInformationCollection
|
* Class PluginInformationCollection
|
||||||
* @package PHPCI\Plugin\Util
|
* @package PHPCensor\Plugin\Util
|
||||||
*/
|
*/
|
||||||
class PluginInformationCollection implements InstalledPluginInformation
|
class PluginInformationCollection implements InstalledPluginInformation
|
||||||
{
|
{
|
||||||
|
|
|
@ -8,7 +8,7 @@ use Symfony\Component\Yaml\Yaml;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Processes TAP format strings into usable test result data.
|
* Processes TAP format strings into usable test result data.
|
||||||
* @package PHPCI\Plugin\Util
|
* @package PHPCensor\Plugin\Util
|
||||||
*/
|
*/
|
||||||
class TapParser
|
class TapParser
|
||||||
{
|
{
|
||||||
|
|
|
@ -8,7 +8,7 @@ use PHPCensor\Builder;
|
||||||
* Class Codeception
|
* Class Codeception
|
||||||
*
|
*
|
||||||
* @author Adam Cooper <adam@networkpie.co.uk>
|
* @author Adam Cooper <adam@networkpie.co.uk>
|
||||||
* @package PHPCI\Plugin\Util\TestResultParsers
|
* @package PHPCensor\Plugin\Util\TestResultParsers
|
||||||
*/
|
*/
|
||||||
class Codeception implements ParserInterface
|
class Codeception implements ParserInterface
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,12 +22,12 @@ use PHPCensor\Plugin;
|
||||||
class Wipe implements Plugin
|
class Wipe implements Plugin
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Builder
|
* @var \PHPCensor\Builder
|
||||||
*/
|
*/
|
||||||
protected $phpci;
|
protected $phpci;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Model\Build
|
* @var \PHPCensor\Model\Build
|
||||||
*/
|
*/
|
||||||
protected $build;
|
protected $build;
|
||||||
|
|
||||||
|
|
|
@ -21,12 +21,12 @@ use PHPCensor\Store\BuildStore;
|
||||||
/**
|
/**
|
||||||
* The build service handles the creation, duplication and deletion of builds.
|
* The build service handles the creation, duplication and deletion of builds.
|
||||||
* Class BuildService
|
* Class BuildService
|
||||||
* @package PHPCI\Service
|
* @package PHPCensor\Service
|
||||||
*/
|
*/
|
||||||
class BuildService
|
class BuildService
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Store\BuildStore
|
* @var \PHPCensor\Store\BuildStore
|
||||||
*/
|
*/
|
||||||
protected $buildStore;
|
protected $buildStore;
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ class BuildService
|
||||||
* @param string|null $committerEmail
|
* @param string|null $committerEmail
|
||||||
* @param string|null $commitMessage
|
* @param string|null $commitMessage
|
||||||
* @param string|null $extra
|
* @param string|null $extra
|
||||||
* @return \PHPCI\Model\Build
|
* @return \PHPCensor\Model\Build
|
||||||
*/
|
*/
|
||||||
public function createBuild(
|
public function createBuild(
|
||||||
Project $project,
|
Project $project,
|
||||||
|
@ -105,7 +105,7 @@ class BuildService
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param Build $copyFrom
|
* @param Build $copyFrom
|
||||||
* @return \PHPCI\Model\Build
|
* @return \PHPCensor\Model\Build
|
||||||
*/
|
*/
|
||||||
public function createDuplicateBuild(Build $copyFrom)
|
public function createDuplicateBuild(Build $copyFrom)
|
||||||
{
|
{
|
||||||
|
|
|
@ -14,7 +14,7 @@ use PHPCensor\Model\Build;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class BuildStatusService
|
* Class BuildStatusService
|
||||||
* @package PHPCI\Service
|
* @package PHPCensor\Service
|
||||||
*/
|
*/
|
||||||
class BuildStatusService
|
class BuildStatusService
|
||||||
{
|
{
|
||||||
|
|
|
@ -15,12 +15,12 @@ use PHPCensor\Store\ProjectStore;
|
||||||
/**
|
/**
|
||||||
* The project service handles the creation, modification and deletion of projects.
|
* The project service handles the creation, modification and deletion of projects.
|
||||||
* Class ProjectService
|
* Class ProjectService
|
||||||
* @package PHPCI\Service
|
* @package PHPCensor\Service
|
||||||
*/
|
*/
|
||||||
class ProjectService
|
class ProjectService
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Store\ProjectStore
|
* @var \PHPCensor\Store\ProjectStore
|
||||||
*/
|
*/
|
||||||
protected $projectStore;
|
protected $projectStore;
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ class ProjectService
|
||||||
* @param string $type
|
* @param string $type
|
||||||
* @param string $reference
|
* @param string $reference
|
||||||
* @param array $options
|
* @param array $options
|
||||||
* @return \PHPCI\Model\Project
|
* @return \PHPCensor\Model\Project
|
||||||
*/
|
*/
|
||||||
public function createProject($title, $type, $reference, $options = [])
|
public function createProject($title, $type, $reference, $options = [])
|
||||||
{
|
{
|
||||||
|
@ -54,7 +54,7 @@ class ProjectService
|
||||||
* @param string $type
|
* @param string $type
|
||||||
* @param string $reference
|
* @param string $reference
|
||||||
* @param array $options
|
* @param array $options
|
||||||
* @return \PHPCI\Model\Project
|
* @return \PHPCensor\Model\Project
|
||||||
*/
|
*/
|
||||||
public function updateProject(Project $project, $title, $type, $reference, $options = [])
|
public function updateProject(Project $project, $title, $type, $reference, $options = [])
|
||||||
{
|
{
|
||||||
|
|
|
@ -15,12 +15,12 @@ use PHPCensor\Store\UserStore;
|
||||||
/**
|
/**
|
||||||
* The user service handles the creation, modification and deletion of users.
|
* The user service handles the creation, modification and deletion of users.
|
||||||
* Class UserService
|
* Class UserService
|
||||||
* @package PHPCI\Service
|
* @package PHPCensor\Service
|
||||||
*/
|
*/
|
||||||
class UserService
|
class UserService
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Store\UserStore
|
* @var \PHPCensor\Store\UserStore
|
||||||
*/
|
*/
|
||||||
protected $store;
|
protected $store;
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ class UserService
|
||||||
* @param $emailAddress
|
* @param $emailAddress
|
||||||
* @param $password
|
* @param $password
|
||||||
* @param bool $isAdmin
|
* @param bool $isAdmin
|
||||||
* @return \PHPCI\Model\User
|
* @return \PHPCensor\Model\User
|
||||||
*/
|
*/
|
||||||
public function createUser($name, $emailAddress, $password, $isAdmin = false)
|
public function createUser($name, $emailAddress, $password, $isAdmin = false)
|
||||||
{
|
{
|
||||||
|
@ -58,7 +58,7 @@ class UserService
|
||||||
* @param $emailAddress
|
* @param $emailAddress
|
||||||
* @param null $password
|
* @param null $password
|
||||||
* @param null $isAdmin
|
* @param null $isAdmin
|
||||||
* @return \PHPCI\Model\User
|
* @return \PHPCensor\Model\User
|
||||||
*/
|
*/
|
||||||
public function updateUser(User $user, $name, $emailAddress, $password = null, $isAdmin = null)
|
public function updateUser(User $user, $name, $emailAddress, $password = null, $isAdmin = null)
|
||||||
{
|
{
|
||||||
|
|
|
@ -12,7 +12,7 @@ use PHPCensor\Store\Base\BuildErrorStoreBase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BuildError Store
|
* BuildError Store
|
||||||
* @uses PHPCI\Store\Base\BuildErrorStoreBase
|
* @uses PHPCensor\Store\Base\BuildErrorStoreBase
|
||||||
*/
|
*/
|
||||||
class BuildErrorStore extends BuildErrorStoreBase
|
class BuildErrorStore extends BuildErrorStoreBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -15,7 +15,7 @@ use PHPCensor\Model\BuildMeta;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BuildMeta Store
|
* BuildMeta Store
|
||||||
* @uses PHPCI\Store\Base\BuildMetaStoreBase
|
* @uses PHPCensor\Store\Base\BuildMetaStoreBase
|
||||||
*/
|
*/
|
||||||
class BuildMetaStore extends BuildMetaStoreBase
|
class BuildMetaStore extends BuildMetaStoreBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -10,7 +10,7 @@ use PHPCensor\Store\Base\ProjectGroupStoreBase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ProjectGroup Store
|
* ProjectGroup Store
|
||||||
* @uses PHPCI\Store\Base\ProjectGroupStoreBase
|
* @uses PHPCensor\Store\Base\ProjectGroupStoreBase
|
||||||
*/
|
*/
|
||||||
class ProjectGroupStore extends ProjectGroupStoreBase
|
class ProjectGroupStore extends ProjectGroupStoreBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,7 +3,7 @@ use PHPCensor\Helper\Lang;
|
||||||
|
|
||||||
$linkTemplate = $build->getFileLinkTemplate();
|
$linkTemplate = $build->getFileLinkTemplate();
|
||||||
|
|
||||||
/** @var \PHPCI\Model\BuildError $error */
|
/** @var \PHPCensor\Model\BuildError $error */
|
||||||
foreach ($errors as $error):
|
foreach ($errors as $error):
|
||||||
|
|
||||||
$link = str_replace('{FILE}', $error->getFile(), $linkTemplate);
|
$link = str_replace('{FILE}', $error->getFile(), $linkTemplate);
|
||||||
|
|
|
@ -15,7 +15,7 @@ use PHPCensor\Model\Build;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class BuildWorker
|
* Class BuildWorker
|
||||||
* @package PHPCI\Worker
|
* @package PHPCensor\Worker
|
||||||
*/
|
*/
|
||||||
class BuildWorker
|
class BuildWorker
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,7 +16,7 @@ use Symfony\Component\Console\Tester\CommandTester;
|
||||||
class CreateAdminCommandTest extends \PHPUnit_Framework_TestCase
|
class CreateAdminCommandTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Command\CreateAdminCommand|\PHPUnit_Framework_MockObject_MockObject
|
* @var \PHPCensor\Command\CreateAdminCommand|\PHPUnit_Framework_MockObject_MockObject
|
||||||
*/
|
*/
|
||||||
protected $command;
|
protected $command;
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ use Symfony\Component\Console\Tester\CommandTester;
|
||||||
class CreateBuildCommandTest extends \PHPUnit_Framework_TestCase
|
class CreateBuildCommandTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Command\CreateAdminCommand|\PHPUnit_Framework_MockObject_MockObject
|
* @var \PHPCensor\Command\CreateAdminCommand|\PHPUnit_Framework_MockObject_MockObject
|
||||||
*/
|
*/
|
||||||
protected $command;
|
protected $command;
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ use PHPCensor\Plugin\Util\Factory;
|
||||||
class FactoryTest extends \PHPUnit_Framework_TestCase {
|
class FactoryTest extends \PHPUnit_Framework_TestCase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\Plugin\Util\Factory
|
* @var \PHPCensor\Plugin\Util\Factory
|
||||||
*/
|
*/
|
||||||
protected $testedFactory;
|
protected $testedFactory;
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ abstract class ProcessControlTest extends \PHPUnit_Framework_TestCase
|
||||||
protected $pipes;
|
protected $pipes;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \PHPCI\ProcessControl\ProcessControlInterface
|
* @var \PHPCensor\ProcessControl\ProcessControlInterface
|
||||||
*/
|
*/
|
||||||
protected $object;
|
protected $object;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue