Code style fixes
This commit is contained in:
parent
cbb0f1d2b4
commit
a2fbd9b775
|
@ -1,13 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
return [
|
return [
|
||||||
/** Loggers attached to every command */
|
/** Loggers attached to every command */
|
||||||
"_" => function() {
|
"_" => function() {
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
#!/usr/bin/env php
|
#!/usr/bin/env php
|
||||||
<?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/
|
|
||||||
*/
|
|
||||||
|
|
||||||
use PHPCensor\Console\Application;
|
use PHPCensor\Console\Application;
|
||||||
|
|
||||||
error_reporting(-1);
|
error_reporting(-1);
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?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/
|
|
||||||
*/
|
|
||||||
|
|
||||||
if (!defined('ROOT_DIR')) {
|
if (!defined('ROOT_DIR')) {
|
||||||
define('ROOT_DIR', __DIR__ . DIRECTORY_SEPARATOR);
|
define('ROOT_DIR', __DIR__ . DIRECTORY_SEPARATOR);
|
||||||
|
|
|
@ -1,13 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
session_set_cookie_params(43200); // Set session cookie to last 12 hours.
|
session_set_cookie_params(43200); // Set session cookie to last 12 hours.
|
||||||
session_start();
|
session_start();
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor;
|
namespace PHPCensor;
|
||||||
|
|
||||||
|
@ -16,9 +9,10 @@ use b8\Http\Response\RedirectResponse;
|
||||||
use b8\View;
|
use b8\View;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PHPCI Front Controller
|
* PHPCI Front Controller
|
||||||
* @author Dan Cryer <dan@block8.co.uk>
|
*
|
||||||
*/
|
* @author Dan Cryer <dan@block8.co.uk>
|
||||||
|
*/
|
||||||
class Application extends b8\Application
|
class Application extends b8\Application
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor;
|
namespace PHPCensor;
|
||||||
|
|
||||||
|
@ -13,9 +6,10 @@ use b8\Store\Factory;
|
||||||
use PHPCensor\Model\Build;
|
use PHPCensor\Model\Build;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PHPCI Build Factory - Takes in a generic "Build" and returns a type-specific build model.
|
* PHPCI Build Factory - Takes in a generic "Build" and returns a type-specific build model.
|
||||||
* @author Dan Cryer <dan@block8.co.uk>
|
*
|
||||||
*/
|
* @author Dan Cryer <dan@block8.co.uk>
|
||||||
|
*/
|
||||||
class BuildFactory
|
class BuildFactory
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,17 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor;
|
namespace PHPCensor;
|
||||||
|
|
||||||
use PHPCensor\Helper\BuildInterpolator;
|
use PHPCensor\Helper\BuildInterpolator;
|
||||||
use PHPCensor\Helper\Lang;
|
|
||||||
use PHPCensor\Helper\MailerFactory;
|
use PHPCensor\Helper\MailerFactory;
|
||||||
use PHPCensor\Logging\BuildLogger;
|
use PHPCensor\Logging\BuildLogger;
|
||||||
use PHPCensor\Model\Build;
|
use PHPCensor\Model\Build;
|
||||||
|
@ -24,7 +15,8 @@ use PHPCensor\Plugin\Util\Factory as PluginFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PHPCI Build Runner
|
* PHPCI Build Runner
|
||||||
* @author Dan Cryer <dan@block8.co.uk>
|
*
|
||||||
|
* @author Dan Cryer <dan@block8.co.uk>
|
||||||
*/
|
*/
|
||||||
class Builder implements LoggerAwareInterface
|
class Builder implements LoggerAwareInterface
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor;
|
namespace PHPCensor;
|
||||||
|
|
||||||
|
@ -17,7 +10,6 @@ use b8\View;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PHPCI Base Controller
|
* PHPCI Base Controller
|
||||||
* @package PHPCI
|
|
||||||
*/
|
*/
|
||||||
class Controller extends \b8\Controller
|
class Controller extends \b8\Controller
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,13 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Controller;
|
namespace PHPCensor\Controller;
|
||||||
|
|
||||||
use b8;
|
use b8;
|
||||||
|
@ -22,11 +14,10 @@ use PHPCensor\Service\BuildService;
|
||||||
use PHPCensor\Controller;
|
use PHPCensor\Controller;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Build Controller - Allows users to run and view builds.
|
* Build Controller - Allows users to run and view builds.
|
||||||
* @author Dan Cryer <dan@block8.co.uk>
|
*
|
||||||
* @package PHPCI
|
* @author Dan Cryer <dan@block8.co.uk>
|
||||||
* @subpackage Web
|
*/
|
||||||
*/
|
|
||||||
class BuildController extends Controller
|
class BuildController extends Controller
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,13 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Controller;
|
namespace PHPCensor\Controller;
|
||||||
|
|
||||||
use b8;
|
use b8;
|
||||||
|
@ -20,15 +12,15 @@ use PHPCensor\Service\BuildStatusService;
|
||||||
use PHPCensor\Controller;
|
use PHPCensor\Controller;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Build Status Controller - Allows external access to build status information / images.
|
* Build Status Controller - Allows external access to build status information / images.
|
||||||
* @author Dan Cryer <dan@block8.co.uk>
|
*
|
||||||
* @package PHPCI
|
* @author Dan Cryer <dan@block8.co.uk>
|
||||||
* @subpackage Web
|
*/
|
||||||
*/
|
|
||||||
class BuildStatusController extends Controller
|
class BuildStatusController extends Controller
|
||||||
{
|
{
|
||||||
/* @var \PHPCensor\Store\ProjectStore */
|
/* @var \PHPCensor\Store\ProjectStore */
|
||||||
protected $projectStore;
|
protected $projectStore;
|
||||||
|
|
||||||
/* @var \PHPCensor\Store\BuildStore */
|
/* @var \PHPCensor\Store\BuildStore */
|
||||||
protected $buildStore;
|
protected $buildStore;
|
||||||
|
|
||||||
|
|
|
@ -1,27 +1,17 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2015, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Controller;
|
namespace PHPCensor\Controller;
|
||||||
|
|
||||||
use b8;
|
use b8;
|
||||||
use b8\Form;
|
use b8\Form;
|
||||||
use b8\Store;
|
|
||||||
use PHPCensor\Controller;
|
use PHPCensor\Controller;
|
||||||
use PHPCensor\Model\ProjectGroup;
|
use PHPCensor\Model\ProjectGroup;
|
||||||
use PHPCensor\Helper\Lang;
|
use PHPCensor\Helper\Lang;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Project Controller - Allows users to create, edit and view projects.
|
* Project Controller - Allows users to create, edit and view projects.
|
||||||
* @author Dan Cryer <dan@block8.co.uk>
|
*
|
||||||
* @package PHPCI
|
* @author Dan Cryer <dan@block8.co.uk>
|
||||||
* @subpackage Web
|
|
||||||
*/
|
*/
|
||||||
class GroupController extends Controller
|
class GroupController extends Controller
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,13 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Controller;
|
namespace PHPCensor\Controller;
|
||||||
|
|
||||||
use b8;
|
use b8;
|
||||||
|
@ -17,11 +9,10 @@ use PHPCensor\Model\Build;
|
||||||
use PHPCensor\Controller;
|
use PHPCensor\Controller;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Home Controller - Displays the PHPCI Dashboard.
|
* Home Controller - Displays the PHPCI Dashboard.
|
||||||
* @author Dan Cryer <dan@block8.co.uk>
|
*
|
||||||
* @package PHPCI
|
* @author Dan Cryer <dan@block8.co.uk>
|
||||||
* @subpackage Web
|
*/
|
||||||
*/
|
|
||||||
class HomeController extends Controller
|
class HomeController extends Controller
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,13 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Controller;
|
namespace PHPCensor\Controller;
|
||||||
|
|
||||||
use b8;
|
use b8;
|
||||||
|
@ -23,11 +15,10 @@ use PHPCensor\Service\BuildService;
|
||||||
use PHPCensor\Service\ProjectService;
|
use PHPCensor\Service\ProjectService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Project Controller - Allows users to create, edit and view projects.
|
* Project Controller - Allows users to create, edit and view projects.
|
||||||
* @author Dan Cryer <dan@block8.co.uk>
|
*
|
||||||
* @package PHPCI
|
* @author Dan Cryer <dan@block8.co.uk>
|
||||||
* @subpackage Web
|
*/
|
||||||
*/
|
|
||||||
class ProjectController extends PHPCensor\Controller
|
class ProjectController extends PHPCensor\Controller
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,13 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2015, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Controller;
|
namespace PHPCensor\Controller;
|
||||||
|
|
||||||
use b8;
|
use b8;
|
||||||
|
@ -18,12 +10,10 @@ use PHPCensor\Security\Authentication\Service;
|
||||||
use PHPCensor\Store\UserStore;
|
use PHPCensor\Store\UserStore;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Session Controller - Handles user login / logout.
|
* Session Controller - Handles user login / logout.
|
||||||
*
|
*
|
||||||
* @author Dan Cryer <dan@block8.co.uk>
|
* @author Dan Cryer <dan@block8.co.uk>
|
||||||
* @package PHPCI
|
*/
|
||||||
* @subpackage Web
|
|
||||||
*/
|
|
||||||
class SessionController extends Controller
|
class SessionController extends Controller
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Controller;
|
namespace PHPCensor\Controller;
|
||||||
|
|
||||||
|
@ -18,11 +11,10 @@ use PHPCensor\Model\User;
|
||||||
use PHPCensor\Service\UserService;
|
use PHPCensor\Service\UserService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* User Controller - Allows an administrator to view, add, edit and delete users.
|
* User Controller - Allows an administrator to view, add, edit and delete users.
|
||||||
* @author Dan Cryer <dan@block8.co.uk>
|
*
|
||||||
* @package PHPCI
|
* @author Dan Cryer <dan@block8.co.uk>
|
||||||
* @subpackage Web
|
*/
|
||||||
*/
|
|
||||||
class UserController extends Controller
|
class UserController extends Controller
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Helper;
|
namespace PHPCensor\Helper;
|
||||||
|
|
||||||
|
@ -13,8 +6,6 @@ use SensioLabs\AnsiConverter\AnsiToHtmlConverter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Converts ANSI output to HTML.
|
* Converts ANSI output to HTML.
|
||||||
*
|
|
||||||
* @package PHPCensor\Helper
|
|
||||||
*/
|
*/
|
||||||
final class AnsiConverter
|
final class AnsiConverter
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Helper;
|
namespace PHPCensor\Helper;
|
||||||
|
|
||||||
|
@ -15,7 +8,6 @@ use Psr\Log\LogLevel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handles running system commands with variables.
|
* Handles running system commands with variables.
|
||||||
* @package PHPCensor\Helper
|
|
||||||
*/
|
*/
|
||||||
abstract class BaseCommandExecutor implements CommandExecutorInterface
|
abstract class BaseCommandExecutor implements CommandExecutorInterface
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,19 +1,11 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Helper;
|
namespace PHPCensor\Helper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* User Helper - Provides access to logged in user information in views.
|
* User Helper - Provides access to logged in user information in views.
|
||||||
* @author Dan Cryer <dan@block8.co.uk>
|
*
|
||||||
* @package PHPCI
|
* @author Dan Cryer <dan@block8.co.uk>
|
||||||
* @subpackage Web
|
|
||||||
*/
|
*/
|
||||||
class Build
|
class Build
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Helper;
|
namespace PHPCensor\Helper;
|
||||||
|
|
||||||
|
@ -13,6 +6,7 @@ use PHPCensor\Model\Build as BaseBuild;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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 PHPCensor\Helper
|
* @package PHPCensor\Helper
|
||||||
*/
|
*/
|
||||||
class BuildInterpolator
|
class BuildInterpolator
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Helper;
|
namespace PHPCensor\Helper;
|
||||||
|
|
||||||
|
|
|
@ -1,17 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2015, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Helper;
|
namespace PHPCensor\Helper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides some basic diff processing functionality.
|
* Provides some basic diff processing functionality.
|
||||||
* @package PHPCensor\Helper
|
|
||||||
*/
|
*/
|
||||||
class Diff
|
class Diff
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Helper;
|
namespace PHPCensor\Helper;
|
||||||
|
|
||||||
|
@ -14,7 +7,6 @@ use PHPCensor\Builder;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper class for sending emails using PHPCI's email configuration.
|
* Helper class for sending emails using PHPCI's email configuration.
|
||||||
* @package PHPCensor\Helper
|
|
||||||
*/
|
*/
|
||||||
class Email
|
class Email
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Helper;
|
namespace PHPCensor\Helper;
|
||||||
|
|
||||||
|
@ -15,7 +8,6 @@ use b8\HttpClient;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Github Helper class provides some Github API call functionality.
|
* The Github Helper class provides some Github API call functionality.
|
||||||
* @package PHPCensor\Helper
|
|
||||||
*/
|
*/
|
||||||
class Github
|
class Github
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Helper;
|
namespace PHPCensor\Helper;
|
||||||
|
|
||||||
|
@ -14,8 +7,6 @@ use PHPCensor\Model\User;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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 PHPCensor\Helper
|
|
||||||
*/
|
*/
|
||||||
class Lang
|
class Lang
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,22 +1,14 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Helper;
|
namespace PHPCensor\Helper;
|
||||||
|
|
||||||
use b8\Config;
|
use b8\Config;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Login Is Disabled Helper - Checks if login is disabled in the view
|
* Login Is Disabled Helper - Checks if login is disabled in the view
|
||||||
* @author Stephen Ball <phpci@stephen.rebelinblue.com>
|
*
|
||||||
* @package PHPCI
|
* @author Stephen Ball <phpci@stephen.rebelinblue.com>
|
||||||
* @subpackage Web
|
*/
|
||||||
*/
|
|
||||||
class LoginIsDisabled
|
class LoginIsDisabled
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,17 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Helper;
|
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 PHPCensor\Helper
|
|
||||||
*/
|
*/
|
||||||
class MailerFactory
|
class MailerFactory
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,17 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Helper;
|
namespace PHPCensor\Helper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper class for dealing with SSH keys.
|
* Helper class for dealing with SSH keys.
|
||||||
* @package PHPCensor\Helper
|
|
||||||
*/
|
*/
|
||||||
class SshKey
|
class SshKey
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,17 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Helper;
|
namespace PHPCensor\Helper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unix/Linux specific extension of the CommandExecutor class.
|
* Unix/Linux specific extension of the CommandExecutor class.
|
||||||
* @package PHPCensor\Helper
|
|
||||||
*/
|
*/
|
||||||
class UnixCommandExecutor extends BaseCommandExecutor
|
class UnixCommandExecutor extends BaseCommandExecutor
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,20 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Helper;
|
namespace PHPCensor\Helper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* User Helper - Provides access to logged in user information in views.
|
* User Helper - Provides access to logged in user information in views.
|
||||||
* @author Dan Cryer <dan@block8.co.uk>
|
*
|
||||||
* @package PHPCI
|
* @author Dan Cryer <dan@block8.co.uk>
|
||||||
* @subpackage Web
|
*/
|
||||||
*/
|
|
||||||
class User
|
class User
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'language_name' => 'Dansk',
|
'language_name' => 'Dansk',
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'language_name' => 'Deutsch',
|
'language_name' => 'Deutsch',
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'language_name' => 'Ελληνικά',
|
'language_name' => 'Ελληνικά',
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'language_name' => 'English',
|
'language_name' => 'English',
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'language_name' => 'Español',
|
'language_name' => 'Español',
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'language_name' => 'Français',
|
'language_name' => 'Français',
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'language_name' => 'Italiano',
|
'language_name' => 'Italiano',
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'language_name' => 'Nederlands',
|
'language_name' => 'Nederlands',
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'language_name' => 'Polski',
|
'language_name' => 'Polski',
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'language_name' => 'Português Brasil',
|
'language_name' => 'Português Brasil',
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'language_name' => 'Pусский',
|
'language_name' => 'Pусский',
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'language_name' => 'Українська',
|
'language_name' => 'Українська',
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'language_name' => '简体中文',
|
'language_name' => '简体中文',
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Logging;
|
namespace PHPCensor\Logging;
|
||||||
|
|
||||||
|
@ -16,7 +9,6 @@ use Psr\Log\LogLevel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class BuildDBLogHandler writes the build log to the database.
|
* Class BuildDBLogHandler writes the build log to the database.
|
||||||
* @package PHPCensor\Logging
|
|
||||||
*/
|
*/
|
||||||
class BuildDBLogHandler extends AbstractProcessingHandler
|
class BuildDBLogHandler extends AbstractProcessingHandler
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Logging;
|
namespace PHPCensor\Logging;
|
||||||
|
|
||||||
|
@ -16,7 +9,6 @@ use Psr\Log\LogLevel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class BuildLogger
|
* Class BuildLogger
|
||||||
* @package PHPCensor\Logging
|
|
||||||
*/
|
*/
|
||||||
class BuildLogger implements LoggerAwareInterface
|
class BuildLogger implements LoggerAwareInterface
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Logging;
|
namespace PHPCensor\Logging;
|
||||||
|
|
||||||
|
@ -13,7 +6,6 @@ use Psr\Log\LoggerInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Base Log Handler
|
* Base Log Handler
|
||||||
* @package PHPCensor\Logging
|
|
||||||
*/
|
*/
|
||||||
class Handler
|
class Handler
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Logging;
|
namespace PHPCensor\Logging;
|
||||||
|
|
||||||
|
@ -13,7 +6,6 @@ use PHPCensor\Model\Build;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class LoggedBuildContextTidier cleans up build log entries.
|
* Class LoggedBuildContextTidier cleans up build log entries.
|
||||||
* @package PHPCensor\Logging
|
|
||||||
*/
|
*/
|
||||||
class LoggedBuildContextTidier
|
class LoggedBuildContextTidier
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Logging;
|
namespace PHPCensor\Logging;
|
||||||
|
|
||||||
|
@ -13,7 +6,6 @@ use Monolog\Logger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class LoggerConfig
|
* Class LoggerConfig
|
||||||
* @package PHPCensor\Logging
|
|
||||||
*/
|
*/
|
||||||
class LoggerConfig
|
class LoggerConfig
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Logging;
|
namespace PHPCensor\Logging;
|
||||||
|
|
||||||
|
@ -15,7 +8,6 @@ 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 PHPCensor\Logging
|
|
||||||
*/
|
*/
|
||||||
class OutputLogHandler extends AbstractProcessingHandler
|
class OutputLogHandler extends AbstractProcessingHandler
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,18 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor;
|
namespace PHPCensor;
|
||||||
|
|
||||||
/**
|
|
||||||
* PHPCI Base Model.
|
|
||||||
* @package PHPCI
|
|
||||||
*/
|
|
||||||
abstract class Model extends \b8\Model
|
abstract class Model extends \b8\Model
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
|
@ -625,7 +625,7 @@ class Build extends Model
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return a template to use to generate a link to a specific file.
|
* Return a template to use to generate a link to a specific file.
|
||||||
*
|
*
|
||||||
* @return null
|
* @return null
|
||||||
*/
|
*/
|
||||||
public function getFileLinkTemplate()
|
public function getFileLinkTemplate()
|
||||||
|
@ -830,7 +830,12 @@ class Build extends Model
|
||||||
|
|
||||||
if (empty($this->currentBuildPath)) {
|
if (empty($this->currentBuildPath)) {
|
||||||
$buildDirectory = $this->getId() . '_' . substr(md5(microtime(true)), 0, 5);
|
$buildDirectory = $this->getId() . '_' . substr(md5(microtime(true)), 0, 5);
|
||||||
$this->currentBuildPath = RUNTIME_DIR . 'builds' . DIRECTORY_SEPARATOR . $buildDirectory . DIRECTORY_SEPARATOR;
|
$this->currentBuildPath =
|
||||||
|
RUNTIME_DIR .
|
||||||
|
'builds' .
|
||||||
|
DIRECTORY_SEPARATOR .
|
||||||
|
$buildDirectory .
|
||||||
|
DIRECTORY_SEPARATOR;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->currentBuildPath;
|
return $this->currentBuildPath;
|
||||||
|
@ -880,10 +885,10 @@ class Build extends Model
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a working copy by cloning, copying, or similar.
|
* Create a working copy by cloning, copying, or similar.
|
||||||
*
|
*
|
||||||
* @param Builder $builder
|
* @param Builder $builder
|
||||||
* @param string $buildPath
|
* @param string $buildPath
|
||||||
*
|
*
|
||||||
* @return boolean
|
* @return boolean
|
||||||
*/
|
*/
|
||||||
public function createWorkingCopy(Builder $builder, $buildPath)
|
public function createWorkingCopy(Builder $builder, $buildPath)
|
||||||
|
|
|
@ -1,21 +1,14 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor;
|
namespace PHPCensor;
|
||||||
|
|
||||||
use PHPCensor\Model\Build;
|
use PHPCensor\Model\Build;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PHPCI Plugin class - Used by all build plugins.
|
* PHPCI Plugin class - Used by all build plugins.
|
||||||
*
|
*
|
||||||
* @author Dan Cryer <dan@block8.co.uk>
|
* @author Dan Cryer <dan@block8.co.uk>
|
||||||
*/
|
*/
|
||||||
abstract class Plugin
|
abstract class Plugin
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,29 +1,34 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Plugin;
|
namespace PHPCensor\Plugin;
|
||||||
|
|
||||||
use PHPCensor\Builder;
|
use PHPCensor\Builder;
|
||||||
use PHPCensor\Helper\Lang;
|
|
||||||
use PHPCensor\Model\Build;
|
use PHPCensor\Model\Build;
|
||||||
use PHPCensor\Plugin;
|
use PHPCensor\Plugin;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Atoum plugin, runs Atoum tests within a project.
|
* Atoum plugin, runs Atoum tests within a project.
|
||||||
*
|
|
||||||
* @package PHPCI\Plugin
|
|
||||||
*/
|
*/
|
||||||
class Atoum extends Plugin
|
class Atoum extends Plugin
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
protected $executable;
|
protected $executable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
protected $args;
|
protected $args;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
protected $config;
|
protected $config;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
protected $directory;
|
protected $directory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -62,6 +67,7 @@ class Atoum extends Plugin
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Run the Atoum plugin.
|
* Run the Atoum plugin.
|
||||||
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function execute()
|
public function execute()
|
||||||
|
@ -71,27 +77,33 @@ class Atoum extends Plugin
|
||||||
if ($this->args !== null) {
|
if ($this->args !== null) {
|
||||||
$cmd .= " {$this->args}";
|
$cmd .= " {$this->args}";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->config !== null) {
|
if ($this->config !== null) {
|
||||||
$cmd .= " -c '{$this->config}'";
|
$cmd .= " -c '{$this->config}'";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->directory !== null) {
|
if ($this->directory !== null) {
|
||||||
$dirPath = $this->builder->buildPath . DIRECTORY_SEPARATOR . $this->directory;
|
$dirPath = $this->builder->buildPath . DIRECTORY_SEPARATOR . $this->directory;
|
||||||
$cmd .= " -d '{$dirPath}'";
|
$cmd .= " -d '{$dirPath}'";
|
||||||
}
|
}
|
||||||
|
|
||||||
chdir($this->builder->buildPath);
|
chdir($this->builder->buildPath);
|
||||||
|
|
||||||
$output = '';
|
$output = '';
|
||||||
$status = true;
|
$status = true;
|
||||||
|
|
||||||
exec($cmd, $output);
|
exec($cmd, $output);
|
||||||
|
|
||||||
if (count(preg_grep("/Success \(/", $output)) == 0) {
|
if (count(preg_grep("/Success \(/", $output)) == 0) {
|
||||||
$status = false;
|
$status = false;
|
||||||
$this->builder->log($output);
|
$this->builder->log($output);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count($output) == 0) {
|
if (count($output) == 0) {
|
||||||
$status = false;
|
$status = false;
|
||||||
$this->builder->log('No tests have been performed.');
|
$this->builder->log('No tests have been performed.');
|
||||||
}
|
}
|
||||||
|
|
||||||
return $status;
|
return $status;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,16 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Plugin;
|
namespace PHPCensor\Plugin;
|
||||||
|
|
||||||
use PHPCensor\Builder;
|
use PHPCensor\Builder;
|
||||||
use PHPCensor\Helper\Lang;
|
|
||||||
use PHPCensor\Model\Build;
|
use PHPCensor\Model\Build;
|
||||||
use PHPCensor\Model\BuildError;
|
use PHPCensor\Model\BuildError;
|
||||||
use PHPCensor\Plugin;
|
use PHPCensor\Plugin;
|
||||||
|
@ -18,9 +10,7 @@ use PHPCensor\Plugin;
|
||||||
/**
|
/**
|
||||||
* Behat BDD Plugin
|
* Behat BDD Plugin
|
||||||
*
|
*
|
||||||
* @author Dan Cryer <dan@block8.co.uk>
|
* @author Dan Cryer <dan@block8.co.uk>
|
||||||
* @package PHPCI
|
|
||||||
* @subpackage Plugins
|
|
||||||
*/
|
*/
|
||||||
class Behat extends Plugin
|
class Behat extends Plugin
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,26 +1,15 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Plugin;
|
namespace PHPCensor\Plugin;
|
||||||
|
|
||||||
use PHPCensor\Builder;
|
use PHPCensor\Builder;
|
||||||
use PHPCensor\Helper\Lang;
|
|
||||||
use PHPCensor\Model\Build;
|
use PHPCensor\Model\Build;
|
||||||
use PHPCensor\Plugin;
|
use PHPCensor\Plugin;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Campfire Plugin - Allows Campfire API actions.
|
* Campfire Plugin - Allows Campfire API actions. Strongly based on icecube (http://labs.mimmin.com/icecube)
|
||||||
* strongly based on icecube (http://labs.mimmin.com/icecube)
|
|
||||||
*
|
*
|
||||||
* @author André Cianfarani <acianfa@gmail.com>
|
* @author André Cianfarani <acianfa@gmail.com>
|
||||||
* @package PHPCI
|
|
||||||
* @subpackage Plugins
|
|
||||||
*/
|
*/
|
||||||
class Campfire extends Plugin
|
class Campfire extends Plugin
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Plugin;
|
namespace PHPCensor\Plugin;
|
||||||
|
|
||||||
|
@ -17,9 +10,7 @@ use PHPCensor\Plugin;
|
||||||
* Clean build removes Composer related files and allows PHPCI users to clean up their build directory.
|
* Clean build removes Composer related files and allows PHPCI users to clean up their build directory.
|
||||||
* Useful as a precursor to copy_build.
|
* Useful as a precursor to copy_build.
|
||||||
*
|
*
|
||||||
* @author Dan Cryer <dan@block8.co.uk>
|
* @author Dan Cryer <dan@block8.co.uk>
|
||||||
* @package PHPCI
|
|
||||||
* @subpackage Plugins
|
|
||||||
*/
|
*/
|
||||||
class CleanBuild extends Plugin
|
class CleanBuild extends Plugin
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Plugin;
|
namespace PHPCensor\Plugin;
|
||||||
|
|
||||||
|
@ -19,11 +12,9 @@ use PHPCensor\ZeroConfigPluginInterface;
|
||||||
/**
|
/**
|
||||||
* Codeception Plugin - Enables full acceptance, unit, and functional testing.
|
* Codeception Plugin - Enables full acceptance, unit, and functional testing.
|
||||||
*
|
*
|
||||||
* @author Don Gilbert <don@dongilbert.net>
|
* @author Don Gilbert <don@dongilbert.net>
|
||||||
* @author Igor Timoshenko <contact@igortimoshenko.com>
|
* @author Igor Timoshenko <contact@igortimoshenko.com>
|
||||||
* @author Adam Cooper <adam@networkpie.co.uk>
|
* @author Adam Cooper <adam@networkpie.co.uk>
|
||||||
* @package PHPCI
|
|
||||||
* @subpackage Plugins
|
|
||||||
*/
|
*/
|
||||||
class Codeception extends Plugin implements ZeroConfigPluginInterface
|
class Codeception extends Plugin implements ZeroConfigPluginInterface
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Plugin;
|
namespace PHPCensor\Plugin;
|
||||||
|
|
||||||
|
@ -18,9 +11,7 @@ use PHPCensor\ZeroConfigPluginInterface;
|
||||||
/**
|
/**
|
||||||
* Composer Plugin - Provides access to Composer functionality.
|
* Composer Plugin - Provides access to Composer functionality.
|
||||||
*
|
*
|
||||||
* @author Dan Cryer <dan@block8.co.uk>
|
* @author Dan Cryer <dan@block8.co.uk>
|
||||||
* @package PHPCI
|
|
||||||
* @subpackage Plugins
|
|
||||||
*/
|
*/
|
||||||
class Composer extends Plugin implements ZeroConfigPluginInterface
|
class Composer extends Plugin implements ZeroConfigPluginInterface
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,25 +1,15 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Plugin;
|
namespace PHPCensor\Plugin;
|
||||||
|
|
||||||
use PHPCensor\Builder;
|
use PHPCensor\Builder;
|
||||||
use PHPCensor\Model\Build;
|
use PHPCensor\Model\Build;
|
||||||
use PHPCensor\Helper\Lang;
|
|
||||||
use PHPCensor\Plugin;
|
use PHPCensor\Plugin;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Copy Build Plugin - Copies the entire build to another directory.
|
* Copy Build Plugin - Copies the entire build to another directory.
|
||||||
*
|
*
|
||||||
* @author Dan Cryer <dan@block8.co.uk>
|
* @author Dan Cryer <dan@block8.co.uk>
|
||||||
* @package PHPCI
|
|
||||||
* @subpackage Plugins
|
|
||||||
*/
|
*/
|
||||||
class CopyBuild extends Plugin
|
class CopyBuild extends Plugin
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2015, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Plugin;
|
namespace PHPCensor\Plugin;
|
||||||
|
|
||||||
|
@ -17,9 +10,7 @@ use PHPCensor\Plugin;
|
||||||
/**
|
/**
|
||||||
* Integrates PHPCI with Deployer: https://github.com/rebelinblue/deployer
|
* Integrates PHPCI with Deployer: https://github.com/rebelinblue/deployer
|
||||||
*
|
*
|
||||||
* @author Dan Cryer <dan@block8.co.uk>
|
* @author Dan Cryer <dan@block8.co.uk>
|
||||||
* @package PHPCI
|
|
||||||
* @subpackage Plugins
|
|
||||||
*/
|
*/
|
||||||
class Deployer extends Plugin
|
class Deployer extends Plugin
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,16 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Plugin;
|
namespace PHPCensor\Plugin;
|
||||||
|
|
||||||
use b8\View;
|
use b8\View;
|
||||||
use PHPCensor\Helper\Lang;
|
|
||||||
use PHPCensor\Helper\Email as EmailHelper;
|
use PHPCensor\Helper\Email as EmailHelper;
|
||||||
use Psr\Log\LogLevel;
|
use Psr\Log\LogLevel;
|
||||||
use PHPCensor\Plugin;
|
use PHPCensor\Plugin;
|
||||||
|
@ -18,9 +10,7 @@ use PHPCensor\Plugin;
|
||||||
/**
|
/**
|
||||||
* Email Plugin - Provides simple email capability to PHPCI.
|
* Email Plugin - Provides simple email capability to PHPCI.
|
||||||
*
|
*
|
||||||
* @author Steve Brazier <meadsteve@gmail.com>
|
* @author Steve Brazier <meadsteve@gmail.com>
|
||||||
* @package PHPCI
|
|
||||||
* @subpackage Plugins
|
|
||||||
*/
|
*/
|
||||||
class Email extends Plugin
|
class Email extends Plugin
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,23 +1,13 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Plugin;
|
namespace PHPCensor\Plugin;
|
||||||
|
|
||||||
use PHPCensor\Helper\Lang;
|
|
||||||
use PHPCensor\Plugin;
|
use PHPCensor\Plugin;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Environment variable plugin
|
* Environment variable plugin
|
||||||
*
|
*
|
||||||
* @author Steve Kamerman <stevekamerman@gmail.com>
|
* @author Steve Kamerman <stevekamerman@gmail.com>
|
||||||
* @package PHPCI
|
|
||||||
* @subpackage Plugins
|
|
||||||
*/
|
*/
|
||||||
class Env extends Plugin
|
class Env extends Plugin
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,10 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Plugin;
|
namespace PHPCensor\Plugin;
|
||||||
|
|
||||||
|
|
|
@ -1,23 +1,13 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Plugin;
|
namespace PHPCensor\Plugin;
|
||||||
|
|
||||||
use PHPCensor\Helper\Lang;
|
|
||||||
use PHPCensor\Plugin;
|
use PHPCensor\Plugin;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Git plugin.
|
* Git plugin.
|
||||||
*
|
*
|
||||||
* @author Dan Cryer <dan@block8.co.uk>
|
* @author Dan Cryer <dan@block8.co.uk>
|
||||||
* @package PHPCI
|
|
||||||
* @subpackage Plugins
|
|
||||||
*/
|
*/
|
||||||
class Git extends Plugin
|
class Git extends Plugin
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Plugin;
|
namespace PHPCensor\Plugin;
|
||||||
|
|
||||||
|
@ -16,9 +9,7 @@ use PHPCensor\Plugin;
|
||||||
/**
|
/**
|
||||||
* Grunt Plugin - Provides access to grunt functionality.
|
* Grunt Plugin - Provides access to grunt functionality.
|
||||||
*
|
*
|
||||||
* @author Tobias Tom <t.tom@succont.de>
|
* @author Tobias Tom <t.tom@succont.de>
|
||||||
* @package PHPCI
|
|
||||||
* @subpackage Plugins
|
|
||||||
*/
|
*/
|
||||||
class Grunt extends Plugin
|
class Grunt extends Plugin
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Plugin;
|
namespace PHPCensor\Plugin;
|
||||||
|
|
||||||
|
@ -16,9 +9,7 @@ use PHPCensor\Plugin;
|
||||||
/**
|
/**
|
||||||
* Gulp Plugin - Provides access to gulp functionality.
|
* Gulp Plugin - Provides access to gulp functionality.
|
||||||
*
|
*
|
||||||
* @author Dirk Heilig <dirk@heilig-online.com>
|
* @author Dirk Heilig <dirk@heilig-online.com>
|
||||||
* @package PHPCI
|
|
||||||
* @subpackage Plugins
|
|
||||||
*/
|
*/
|
||||||
class Gulp extends Plugin
|
class Gulp extends Plugin
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Plugin;
|
namespace PHPCensor\Plugin;
|
||||||
|
|
||||||
|
@ -18,9 +11,7 @@ use HipChat\HipChat;
|
||||||
/**
|
/**
|
||||||
* Hipchat Plugin
|
* Hipchat Plugin
|
||||||
*
|
*
|
||||||
* @author James Inman <james@jamesinman.co.uk>
|
* @author James Inman <james@jamesinman.co.uk>
|
||||||
* @package PHPCI
|
|
||||||
* @subpackage Plugins
|
|
||||||
*/
|
*/
|
||||||
class HipchatNotify extends Plugin
|
class HipchatNotify extends Plugin
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,25 +1,15 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Plugin;
|
namespace PHPCensor\Plugin;
|
||||||
|
|
||||||
use PHPCensor\Builder;
|
use PHPCensor\Builder;
|
||||||
use PHPCensor\Helper\Lang;
|
|
||||||
use PHPCensor\Model\Build;
|
use PHPCensor\Model\Build;
|
||||||
use PHPCensor\Plugin;
|
use PHPCensor\Plugin;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* IRC Plugin - Sends a notification to an IRC channel
|
* IRC Plugin - Sends a notification to an IRC channel
|
||||||
*
|
*
|
||||||
* @author Dan Cryer <dan@block8.co.uk>
|
* @author Dan Cryer <dan@block8.co.uk>
|
||||||
* @package PHPCI
|
|
||||||
* @subpackage Plugins
|
|
||||||
*/
|
*/
|
||||||
class Irc extends Plugin
|
class Irc extends Plugin
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Plugin;
|
namespace PHPCensor\Plugin;
|
||||||
|
|
||||||
|
@ -17,9 +10,7 @@ use PHPCensor\Plugin;
|
||||||
/**
|
/**
|
||||||
* PHP Lint Plugin - Provides access to PHP lint functionality.
|
* PHP Lint Plugin - Provides access to PHP lint functionality.
|
||||||
*
|
*
|
||||||
* @author Dan Cryer <dan@block8.co.uk>
|
* @author Dan Cryer <dan@block8.co.uk>
|
||||||
* @package PHPCI
|
|
||||||
* @subpackage Plugins
|
|
||||||
*/
|
*/
|
||||||
class Lint extends Plugin
|
class Lint extends Plugin
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,17 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Plugin;
|
namespace PHPCensor\Plugin;
|
||||||
|
|
||||||
use PDO;
|
use PDO;
|
||||||
use PHPCensor\Builder;
|
use PHPCensor\Builder;
|
||||||
use PHPCensor\Helper\Lang;
|
|
||||||
use PHPCensor\Model\Build;
|
use PHPCensor\Model\Build;
|
||||||
use PHPCensor\Plugin;
|
use PHPCensor\Plugin;
|
||||||
use b8\Database;
|
use b8\Database;
|
||||||
|
@ -19,10 +11,8 @@ use b8\Database;
|
||||||
/**
|
/**
|
||||||
* MySQL Plugin - Provides access to a MySQL database.
|
* MySQL Plugin - Provides access to a MySQL database.
|
||||||
*
|
*
|
||||||
* @author Dan Cryer <dan@block8.co.uk>
|
* @author Dan Cryer <dan@block8.co.uk>
|
||||||
* @author Steve Kamerman <stevekamerman@gmail.com>
|
* @author Steve Kamerman <stevekamerman@gmail.com>
|
||||||
* @package PHPCI
|
|
||||||
* @subpackage Plugins
|
|
||||||
*/
|
*/
|
||||||
class Mysql extends Plugin
|
class Mysql extends Plugin
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,21 +1,11 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Plugin\Option;
|
namespace PHPCensor\Plugin\Option;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class PhpUnitOptions validates and parse the option for the PhpUnitV2 plugin
|
* Class PhpUnitOptions validates and parse the option for the PhpUnitV2 plugin
|
||||||
*
|
*
|
||||||
* @author Pablo Tejada <pablo@ptejada.com>
|
* @author Pablo Tejada <pablo@ptejada.com>
|
||||||
* @package PHPCI
|
|
||||||
* @subpackage Plugin
|
|
||||||
*/
|
*/
|
||||||
class PhpUnitOptions
|
class PhpUnitOptions
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Plugin;
|
namespace PHPCensor\Plugin;
|
||||||
|
|
||||||
|
@ -16,9 +9,7 @@ use PHPCensor\Plugin;
|
||||||
/**
|
/**
|
||||||
* Create a ZIP or TAR.GZ archive of the entire build.
|
* Create a ZIP or TAR.GZ archive of the entire build.
|
||||||
*
|
*
|
||||||
* @author Dan Cryer <dan@block8.co.uk>
|
* @author Dan Cryer <dan@block8.co.uk>
|
||||||
* @package PHPCI
|
|
||||||
* @subpackage Plugins
|
|
||||||
*/
|
*/
|
||||||
class PackageBuild extends Plugin
|
class PackageBuild extends Plugin
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Plugin;
|
namespace PHPCensor\Plugin;
|
||||||
|
|
||||||
|
@ -16,9 +9,7 @@ use PHPCensor\Plugin;
|
||||||
/**
|
/**
|
||||||
* Pdepend Plugin - Allows Pdepend report
|
* Pdepend Plugin - Allows Pdepend report
|
||||||
*
|
*
|
||||||
* @author Johan van der Heide <info@japaveh.nl>
|
* @author Johan van der Heide <info@japaveh.nl>
|
||||||
* @package PHPCI
|
|
||||||
* @subpackage Plugins
|
|
||||||
*/
|
*/
|
||||||
class Pdepend extends Plugin
|
class Pdepend extends Plugin
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Plugin;
|
namespace PHPCensor\Plugin;
|
||||||
|
|
||||||
|
@ -17,9 +10,7 @@ use PHPCensor\Plugin;
|
||||||
/**
|
/**
|
||||||
* PgSQL Plugin - Provides access to a PgSQL database.
|
* PgSQL Plugin - Provides access to a PgSQL database.
|
||||||
*
|
*
|
||||||
* @author Dan Cryer <dan@block8.co.uk>
|
* @author Dan Cryer <dan@block8.co.uk>
|
||||||
* @package PHPCI
|
|
||||||
* @subpackage Plugins
|
|
||||||
*/
|
*/
|
||||||
class Pgsql extends Plugin
|
class Pgsql extends Plugin
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
namespace PHPCensor\Plugin;
|
namespace PHPCensor\Plugin;
|
||||||
|
|
||||||
use PHPCensor\Builder;
|
use PHPCensor\Builder;
|
||||||
use PHPCensor\Helper\Lang;
|
|
||||||
use PHPCensor\Model\Build;
|
use PHPCensor\Model\Build;
|
||||||
use Phar as PHPPhar;
|
use Phar as PHPPhar;
|
||||||
use PHPCensor\Plugin;
|
use PHPCensor\Plugin;
|
||||||
|
|
|
@ -1,25 +1,15 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Plugin;
|
namespace PHPCensor\Plugin;
|
||||||
|
|
||||||
use PHPCensor\Builder;
|
use PHPCensor\Builder;
|
||||||
use PHPCensor\Helper\Lang;
|
|
||||||
use PHPCensor\Model\Build;
|
use PHPCensor\Model\Build;
|
||||||
use PHPCensor\Plugin;
|
use PHPCensor\Plugin;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Phing Plugin - Provides access to Phing functionality.
|
* Phing Plugin - Provides access to Phing functionality.
|
||||||
*
|
*
|
||||||
* @author Pavel Pavlov <ppavlov@alera.ru>
|
* @author Pavel Pavlov <ppavlov@alera.ru>
|
||||||
* @package PHPCI
|
|
||||||
* @subpackage Plugins
|
|
||||||
*/
|
*/
|
||||||
class Phing extends Plugin
|
class Phing extends Plugin
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Plugin;
|
namespace PHPCensor\Plugin;
|
||||||
|
|
||||||
|
@ -19,9 +12,7 @@ use PHPCensor\ZeroConfigPluginInterface;
|
||||||
/**
|
/**
|
||||||
* PHP Code Sniffer Plugin - Allows PHP Code Sniffer testing.
|
* PHP Code Sniffer Plugin - Allows PHP Code Sniffer testing.
|
||||||
*
|
*
|
||||||
* @author Dan Cryer <dan@block8.co.uk>
|
* @author Dan Cryer <dan@block8.co.uk>
|
||||||
* @package PHPCI
|
|
||||||
* @subpackage Plugins
|
|
||||||
*/
|
*/
|
||||||
class PhpCodeSniffer extends Plugin implements ZeroConfigPluginInterface
|
class PhpCodeSniffer extends Plugin implements ZeroConfigPluginInterface
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Plugin;
|
namespace PHPCensor\Plugin;
|
||||||
|
|
||||||
|
@ -16,9 +9,7 @@ use PHPCensor\Plugin;
|
||||||
/**
|
/**
|
||||||
* PHP CS Fixer - Works with the PHP Coding Standards Fixer for testing coding standards.
|
* PHP CS Fixer - Works with the PHP Coding Standards Fixer for testing coding standards.
|
||||||
*
|
*
|
||||||
* @author Gabriel Baker <gabriel@autonomicpilot.co.uk>
|
* @author Gabriel Baker <gabriel@autonomicpilot.co.uk>
|
||||||
* @package PHPCI
|
|
||||||
* @subpackage Plugins
|
|
||||||
*/
|
*/
|
||||||
class PhpCsFixer extends Plugin
|
class PhpCsFixer extends Plugin
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Plugin;
|
namespace PHPCensor\Plugin;
|
||||||
|
|
||||||
|
@ -18,9 +11,7 @@ use PHPCensor\ZeroConfigPluginInterface;
|
||||||
/**
|
/**
|
||||||
* PHP Docblock Checker Plugin - Checks your PHP files for appropriate uses of Docblocks
|
* PHP Docblock Checker Plugin - Checks your PHP files for appropriate uses of Docblocks
|
||||||
*
|
*
|
||||||
* @author Dan Cryer <dan@block8.co.uk>
|
* @author Dan Cryer <dan@block8.co.uk>
|
||||||
* @package PHPCI
|
|
||||||
* @subpackage Plugins
|
|
||||||
*/
|
*/
|
||||||
class PhpDocblockChecker extends Plugin implements ZeroConfigPluginInterface
|
class PhpDocblockChecker extends Plugin implements ZeroConfigPluginInterface
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Plugin;
|
namespace PHPCensor\Plugin;
|
||||||
|
|
||||||
|
@ -18,9 +11,7 @@ use PHPCensor\ZeroConfigPluginInterface;
|
||||||
/**
|
/**
|
||||||
* PHP Loc - Allows PHP Copy / Lines of Code testing.
|
* PHP Loc - Allows PHP Copy / Lines of Code testing.
|
||||||
*
|
*
|
||||||
* @author Johan van der Heide <info@japaveh.nl>
|
* @author Johan van der Heide <info@japaveh.nl>
|
||||||
* @package PHPCI
|
|
||||||
* @subpackage Plugins
|
|
||||||
*/
|
*/
|
||||||
class PhpLoc extends Plugin implements ZeroConfigPluginInterface
|
class PhpLoc extends Plugin implements ZeroConfigPluginInterface
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Plugin;
|
namespace PHPCensor\Plugin;
|
||||||
|
|
||||||
|
@ -18,9 +11,7 @@ use PHPCensor\ZeroConfigPluginInterface;
|
||||||
/**
|
/**
|
||||||
* PHP Mess Detector Plugin - Allows PHP Mess Detector testing.
|
* PHP Mess Detector Plugin - Allows PHP Mess Detector testing.
|
||||||
*
|
*
|
||||||
* @author Dan Cryer <dan@block8.co.uk>
|
* @author Dan Cryer <dan@block8.co.uk>
|
||||||
* @package PHPCI
|
|
||||||
* @subpackage Plugins
|
|
||||||
*/
|
*/
|
||||||
class PhpMessDetector extends Plugin implements ZeroConfigPluginInterface
|
class PhpMessDetector extends Plugin implements ZeroConfigPluginInterface
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Plugin;
|
namespace PHPCensor\Plugin;
|
||||||
|
|
||||||
|
@ -17,9 +10,7 @@ use PHPCensor\ZeroConfigPluginInterface;
|
||||||
/**
|
/**
|
||||||
* Php Parallel Lint Plugin - Provides access to PHP lint functionality.
|
* Php Parallel Lint Plugin - Provides access to PHP lint functionality.
|
||||||
*
|
*
|
||||||
* @author Vaclav Makes <vaclav@makes.cz>
|
* @author Vaclav Makes <vaclav@makes.cz>
|
||||||
* @package PHPCI
|
|
||||||
* @subpackage Plugins
|
|
||||||
*/
|
*/
|
||||||
class PhpParallelLint extends Plugin implements ZeroConfigPluginInterface
|
class PhpParallelLint extends Plugin implements ZeroConfigPluginInterface
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Plugin;
|
namespace PHPCensor\Plugin;
|
||||||
|
|
||||||
|
@ -15,9 +8,7 @@ use PHPCensor\Plugin;
|
||||||
/**
|
/**
|
||||||
* PHP Spec Plugin - Allows PHP Spec testing.
|
* PHP Spec Plugin - Allows PHP Spec testing.
|
||||||
*
|
*
|
||||||
* @author Dan Cryer <dan@block8.co.uk>
|
* @author Dan Cryer <dan@block8.co.uk>
|
||||||
* @package PHPCI
|
|
||||||
* @subpackage Plugins
|
|
||||||
*/
|
*/
|
||||||
class PhpSpec extends Plugin
|
class PhpSpec extends Plugin
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Plugin;
|
namespace PHPCensor\Plugin;
|
||||||
|
|
||||||
|
@ -17,9 +10,7 @@ use PHPCensor\Plugin;
|
||||||
/**
|
/**
|
||||||
* PHPTAL Lint Plugin - Provides access to PHPTAL lint functionality.
|
* PHPTAL Lint Plugin - Provides access to PHPTAL lint functionality.
|
||||||
*
|
*
|
||||||
* @author Stephen Ball <phpci@stephen.rebelinblue.com>
|
* @author Stephen Ball <phpci@stephen.rebelinblue.com>
|
||||||
* @package PHPCI
|
|
||||||
* @subpackage Plugins
|
|
||||||
*/
|
*/
|
||||||
class PhpTalLint extends Plugin
|
class PhpTalLint extends Plugin
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,17 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Plugin;
|
namespace PHPCensor\Plugin;
|
||||||
|
|
||||||
use PHPCensor;
|
use PHPCensor;
|
||||||
use PHPCensor\Builder;
|
use PHPCensor\Builder;
|
||||||
use PHPCensor\Helper\Lang;
|
|
||||||
use PHPCensor\Model\Build;
|
use PHPCensor\Model\Build;
|
||||||
use PHPCensor\Model\BuildError;
|
use PHPCensor\Model\BuildError;
|
||||||
use PHPCensor\Plugin\Option\PhpUnitOptions;
|
use PHPCensor\Plugin\Option\PhpUnitOptions;
|
||||||
|
@ -22,10 +14,8 @@ use PHPCensor\ZeroConfigPluginInterface;
|
||||||
/**
|
/**
|
||||||
* PHP Unit Plugin - A rewrite of the original PHP Unit plugin
|
* PHP Unit Plugin - A rewrite of the original PHP Unit plugin
|
||||||
*
|
*
|
||||||
* @author Dan Cryer <dan@block8.co.uk>
|
* @author Dan Cryer <dan@block8.co.uk>
|
||||||
* @author Pablo Tejada <pablo@ptejada.com>
|
* @author Pablo Tejada <pablo@ptejada.com>
|
||||||
* @package PHPCI
|
|
||||||
* @subpackage Plugins
|
|
||||||
*/
|
*/
|
||||||
class PhpUnit extends Plugin implements ZeroConfigPluginInterface
|
class PhpUnit extends Plugin implements ZeroConfigPluginInterface
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,10 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Plugin;
|
namespace PHPCensor\Plugin;
|
||||||
|
|
||||||
|
@ -18,9 +12,7 @@ use Maknz\Slack\AttachmentField;
|
||||||
/**
|
/**
|
||||||
* Slack Plugin
|
* Slack Plugin
|
||||||
*
|
*
|
||||||
* @author Stephen Ball <phpci@stephen.rebelinblue.com>
|
* @author Stephen Ball <phpci@stephen.rebelinblue.com>
|
||||||
* @package PHPCI
|
|
||||||
* @subpackage Plugins
|
|
||||||
*/
|
*/
|
||||||
class SlackNotify extends Plugin
|
class SlackNotify extends Plugin
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Plugin;
|
namespace PHPCensor\Plugin;
|
||||||
|
|
||||||
|
@ -17,9 +10,7 @@ use PHPCensor\Plugin;
|
||||||
/**
|
/**
|
||||||
* SQLite Plugin — Provides access to a SQLite database.
|
* SQLite Plugin — Provides access to a SQLite database.
|
||||||
*
|
*
|
||||||
* @author Dmitry Khomutov <poisoncorpsee@gmail.com>
|
* @author Dmitry Khomutov <poisoncorpsee@gmail.com>
|
||||||
* @package PHPCI
|
|
||||||
* @subpackage Plugins
|
|
||||||
*/
|
*/
|
||||||
class Sqlite extends Plugin
|
class Sqlite extends Plugin
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Plugin;
|
namespace PHPCensor\Plugin;
|
||||||
|
|
||||||
|
@ -18,9 +11,7 @@ use PHPCensor\ZeroConfigPluginInterface;
|
||||||
/**
|
/**
|
||||||
* Technical Debt Plugin - Checks for existence of "TODO", "FIXME", etc.
|
* Technical Debt Plugin - Checks for existence of "TODO", "FIXME", etc.
|
||||||
*
|
*
|
||||||
* @author James Inman <james@jamesinman.co.uk>
|
* @author James Inman <james@jamesinman.co.uk>
|
||||||
* @package PHPCI
|
|
||||||
* @subpackage Plugins
|
|
||||||
*/
|
*/
|
||||||
class TechnicalDebt extends Plugin implements ZeroConfigPluginInterface
|
class TechnicalDebt extends Plugin implements ZeroConfigPluginInterface
|
||||||
{
|
{
|
||||||
|
|
|
@ -11,7 +11,6 @@ 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 PHPCensor\Plugin\Util
|
|
||||||
*/
|
*/
|
||||||
class Executor
|
class Executor
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,7 +6,6 @@ use Pimple\Container;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Plugin Factory - Loads Plugins and passes required dependencies.
|
* Plugin Factory - Loads Plugins and passes required dependencies.
|
||||||
* @package PHPCensor\Plugin\Util
|
|
||||||
*/
|
*/
|
||||||
class Factory
|
class Factory
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,21 +1,11 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Plugin\Util;
|
namespace PHPCensor\Plugin\Util;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class PhpUnitResult parses the results for the PhpUnitV2 plugin
|
* Class PhpUnitResult parses the results for the PhpUnitV2 plugin
|
||||||
*
|
*
|
||||||
* @author Pablo Tejada <pablo@ptejada.com>
|
* @author Pablo Tejada <pablo@ptejada.com>
|
||||||
* @package PHPCI
|
|
||||||
* @subpackage Plugin
|
|
||||||
*/
|
*/
|
||||||
class PhpUnitResult
|
class PhpUnitResult
|
||||||
{
|
{
|
||||||
|
|
|
@ -8,7 +8,6 @@ use PHPCensor\Builder;
|
||||||
* Class Codeception
|
* Class Codeception
|
||||||
*
|
*
|
||||||
* @author Adam Cooper <adam@networkpie.co.uk>
|
* @author Adam Cooper <adam@networkpie.co.uk>
|
||||||
* @package PHPCensor\Plugin\Util\TestResultParsers
|
|
||||||
*/
|
*/
|
||||||
class Codeception implements ParserInterface
|
class Codeception implements ParserInterface
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,7 +4,6 @@ namespace PHPCensor\Plugin\Util\TestResultParsers;
|
||||||
|
|
||||||
interface ParserInterface
|
interface ParserInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return array An array of key/value pairs for storage in the plugins result metadata
|
* @return array An array of key/value pairs for storage in the plugins result metadata
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Plugin;
|
namespace PHPCensor\Plugin;
|
||||||
|
|
||||||
|
@ -16,9 +9,7 @@ use PHPCensor\Plugin;
|
||||||
/**
|
/**
|
||||||
* Wipe Plugin - Wipes a folder
|
* Wipe Plugin - Wipes a folder
|
||||||
*
|
*
|
||||||
* @author Claus Due <claus@namelesscoder.net>
|
* @author Claus Due <claus@namelesscoder.net>
|
||||||
* @package PHPCI
|
|
||||||
* @subpackage Plugins
|
|
||||||
*/
|
*/
|
||||||
class Wipe extends Plugin
|
class Wipe extends Plugin
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2014, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Plugin;
|
namespace PHPCensor\Plugin;
|
||||||
|
|
||||||
|
@ -16,9 +9,7 @@ use PHPCensor\Plugin;
|
||||||
/**
|
/**
|
||||||
* XMPP Notification - Send notification for successful or failure build
|
* XMPP Notification - Send notification for successful or failure build
|
||||||
*
|
*
|
||||||
* @author Alexandre Russo <dev.github@ange7.com>
|
* @author Alexandre Russo <dev.github@ange7.com>
|
||||||
* @package PHPCI
|
|
||||||
* @subpackage Plugins
|
|
||||||
*/
|
*/
|
||||||
class XMPP extends Plugin
|
class XMPP extends Plugin
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2015, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\ProcessControl;
|
namespace PHPCensor\ProcessControl;
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2015, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\ProcessControl;
|
namespace PHPCensor\ProcessControl;
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2015, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\ProcessControl;
|
namespace PHPCensor\ProcessControl;
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2015, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\ProcessControl;
|
namespace PHPCensor\ProcessControl;
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2015, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Security\Authentication;
|
namespace PHPCensor\Security\Authentication;
|
||||||
|
|
||||||
use PHPCensor\Model\User;
|
use PHPCensor\Model\User;
|
||||||
|
|
|
@ -1,13 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
|
||||||
* PHPCI - Continuous Integration for PHP
|
|
||||||
*
|
|
||||||
* @copyright Copyright 2015, Block 8 Limited.
|
|
||||||
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
||||||
* @link https://www.phptesting.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace PHPCensor\Security\Authentication;
|
namespace PHPCensor\Security\Authentication;
|
||||||
|
|
||||||
use b8\Config;
|
use b8\Config;
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue