PhpParallelLint andPhpCpd now implements ZeroConfigPlugin interface
This commit is contained in:
parent
eea29dabe8
commit
a5aabdce2d
|
@ -17,7 +17,7 @@ use PHPCensor\Plugin;
|
|||
/**
|
||||
* Atoum plugin, runs Atoum tests within a project.
|
||||
*
|
||||
* @package PHPCensor\Plugin
|
||||
* @package PHPCI\Plugin
|
||||
*/
|
||||
class Atoum extends Plugin
|
||||
{
|
||||
|
|
|
@ -17,6 +17,7 @@ use PHPCensor\Plugin;
|
|||
/**
|
||||
* Campfire Plugin - Allows Campfire API actions.
|
||||
* strongly based on icecube (http://labs.mimmin.com/icecube)
|
||||
*
|
||||
* @author André Cianfarani <acianfa@gmail.com>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
|
|
|
@ -14,12 +14,13 @@ use PHPCensor\Model\Build;
|
|||
use PHPCensor\Plugin;
|
||||
|
||||
/**
|
||||
* Clean build removes Composer related files and allows PHPCI users to clean up their build directory.
|
||||
* Useful as a precursor to copy_build.
|
||||
* @author Dan Cryer <dan@block8.co.uk>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
* Clean build removes Composer related files and allows PHPCI users to clean up their build directory.
|
||||
* Useful as a precursor to copy_build.
|
||||
*
|
||||
* @author Dan Cryer <dan@block8.co.uk>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
class CleanBuild extends Plugin
|
||||
{
|
||||
protected $remove;
|
||||
|
|
|
@ -19,6 +19,7 @@ use PHPCensor\ZeroConfigPlugin;
|
|||
|
||||
/**
|
||||
* Codeception Plugin - Enables full acceptance, unit, and functional testing.
|
||||
*
|
||||
* @author Don Gilbert <don@dongilbert.net>
|
||||
* @author Igor Timoshenko <contact@igortimoshenko.com>
|
||||
* @author Adam Cooper <adam@networkpie.co.uk>
|
||||
|
|
|
@ -16,11 +16,12 @@ use PHPCensor\Plugin;
|
|||
use PHPCensor\ZeroConfigPlugin;
|
||||
|
||||
/**
|
||||
* Composer Plugin - Provides access to Composer functionality.
|
||||
* @author Dan Cryer <dan@block8.co.uk>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
* Composer Plugin - Provides access to Composer functionality.
|
||||
*
|
||||
* @author Dan Cryer <dan@block8.co.uk>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
class Composer extends Plugin implements ZeroConfigPlugin
|
||||
{
|
||||
protected $directory;
|
||||
|
|
|
@ -15,11 +15,12 @@ use PHPCensor\Helper\Lang;
|
|||
use PHPCensor\Plugin;
|
||||
|
||||
/**
|
||||
* Copy Build Plugin - Copies the entire build to another directory.
|
||||
* @author Dan Cryer <dan@block8.co.uk>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
* Copy Build Plugin - Copies the entire build to another directory.
|
||||
*
|
||||
* @author Dan Cryer <dan@block8.co.uk>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
class CopyBuild extends Plugin
|
||||
{
|
||||
protected $directory;
|
||||
|
|
|
@ -15,11 +15,12 @@ use PHPCensor\Model\Build;
|
|||
use PHPCensor\Plugin;
|
||||
|
||||
/**
|
||||
* Integrates PHPCI with Deployer: https://github.com/rebelinblue/deployer
|
||||
* @author Dan Cryer <dan@block8.co.uk>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
* Integrates PHPCI with Deployer: https://github.com/rebelinblue/deployer
|
||||
*
|
||||
* @author Dan Cryer <dan@block8.co.uk>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
class Deployer extends Plugin
|
||||
{
|
||||
protected $webhookUrl;
|
||||
|
|
|
@ -21,11 +21,12 @@ use Psr\Log\LogLevel;
|
|||
use PHPCensor\Plugin;
|
||||
|
||||
/**
|
||||
* Email Plugin - Provides simple email capability to PHPCI.
|
||||
* @author Steve Brazier <meadsteve@gmail.com>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
* Email Plugin - Provides simple email capability to PHPCI.
|
||||
*
|
||||
* @author Steve Brazier <meadsteve@gmail.com>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
class Email extends Plugin
|
||||
{
|
||||
/**
|
||||
|
|
|
@ -15,11 +15,12 @@ use PHPCensor\Model\Build;
|
|||
use PHPCensor\Plugin;
|
||||
|
||||
/**
|
||||
* Environment variable plugin
|
||||
* @author Steve Kamerman <stevekamerman@gmail.com>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
* Environment variable plugin
|
||||
*
|
||||
* @author Steve Kamerman <stevekamerman@gmail.com>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
class Env extends Plugin
|
||||
{
|
||||
protected $env_vars;
|
||||
|
|
|
@ -16,6 +16,7 @@ use PHPCensor\Plugin;
|
|||
|
||||
/**
|
||||
* Flowdock Plugin
|
||||
*
|
||||
* @author Petr Cervenka <petr@nanosolutions.io>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
|
|
|
@ -16,6 +16,7 @@ use PHPCensor\Plugin;
|
|||
|
||||
/**
|
||||
* Git plugin.
|
||||
*
|
||||
* @author Dan Cryer <dan@block8.co.uk>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
|
|
|
@ -14,11 +14,12 @@ use PHPCensor\Model\Build;
|
|||
use PHPCensor\Plugin;
|
||||
|
||||
/**
|
||||
* Grunt Plugin - Provides access to grunt functionality.
|
||||
* @author Tobias Tom <t.tom@succont.de>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
* Grunt Plugin - Provides access to grunt functionality.
|
||||
*
|
||||
* @author Tobias Tom <t.tom@succont.de>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
class Grunt extends Plugin
|
||||
{
|
||||
protected $directory;
|
||||
|
|
|
@ -14,11 +14,12 @@ use PHPCensor\Model\Build;
|
|||
use PHPCensor\Plugin;
|
||||
|
||||
/**
|
||||
* Gulp Plugin - Provides access to gulp functionality.
|
||||
* @author Dirk Heilig <dirk@heilig-online.com>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
* Gulp Plugin - Provides access to gulp functionality.
|
||||
*
|
||||
* @author Dirk Heilig <dirk@heilig-online.com>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
class Gulp extends Plugin
|
||||
{
|
||||
protected $directory;
|
||||
|
|
|
@ -17,6 +17,7 @@ use HipChat\HipChat;
|
|||
|
||||
/**
|
||||
* Hipchat Plugin
|
||||
*
|
||||
* @author James Inman <james@jamesinman.co.uk>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
|
|
|
@ -16,6 +16,7 @@ use PHPCensor\Plugin;
|
|||
|
||||
/**
|
||||
* IRC Plugin - Sends a notification to an IRC channel
|
||||
*
|
||||
* @author Dan Cryer <dan@block8.co.uk>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
|
|
|
@ -16,6 +16,7 @@ use PHPCensor\Plugin;
|
|||
|
||||
/**
|
||||
* PHP Lint Plugin - Provides access to PHP lint functionality.
|
||||
*
|
||||
* @author Dan Cryer <dan@block8.co.uk>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
|
|
|
@ -17,12 +17,13 @@ use PHPCensor\Plugin;
|
|||
use b8\Database;
|
||||
|
||||
/**
|
||||
* MySQL Plugin - Provides access to a MySQL database.
|
||||
* @author Dan Cryer <dan@block8.co.uk>
|
||||
* @author Steve Kamerman <stevekamerman@gmail.com>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
* MySQL Plugin - Provides access to a MySQL database.
|
||||
*
|
||||
* @author Dan Cryer <dan@block8.co.uk>
|
||||
* @author Steve Kamerman <stevekamerman@gmail.com>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
class Mysql extends Plugin
|
||||
{
|
||||
/**
|
||||
|
|
|
@ -14,11 +14,12 @@ use PHPCensor\Model\Build;
|
|||
use PHPCensor\Plugin;
|
||||
|
||||
/**
|
||||
* Create a ZIP or TAR.GZ archive of the entire build.
|
||||
* @author Dan Cryer <dan@block8.co.uk>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
* Create a ZIP or TAR.GZ archive of the entire build.
|
||||
*
|
||||
* @author Dan Cryer <dan@block8.co.uk>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
class PackageBuild extends Plugin
|
||||
{
|
||||
protected $directory;
|
||||
|
|
|
@ -15,6 +15,7 @@ use PHPCensor\Plugin;
|
|||
|
||||
/**
|
||||
* Pdepend Plugin - Allows Pdepend report
|
||||
*
|
||||
* @author Johan van der Heide <info@japaveh.nl>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
|
|
|
@ -15,11 +15,12 @@ use PHPCensor\Model\Build;
|
|||
use PHPCensor\Plugin;
|
||||
|
||||
/**
|
||||
* PgSQL Plugin - Provides access to a PgSQL database.
|
||||
* @author Dan Cryer <dan@block8.co.uk>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
* PgSQL Plugin - Provides access to a PgSQL database.
|
||||
*
|
||||
* @author Dan Cryer <dan@block8.co.uk>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
class Pgsql extends Plugin
|
||||
{
|
||||
/**
|
||||
|
|
|
@ -17,11 +17,12 @@ use PHPCensor\Plugin;
|
|||
use PHPCensor\ZeroConfigPlugin;
|
||||
|
||||
/**
|
||||
* PHP Code Sniffer Plugin - Allows PHP Code Sniffer testing.
|
||||
* @author Dan Cryer <dan@block8.co.uk>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
* PHP Code Sniffer Plugin - Allows PHP Code Sniffer testing.
|
||||
*
|
||||
* @author Dan Cryer <dan@block8.co.uk>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
class PhpCodeSniffer extends Plugin implements ZeroConfigPlugin
|
||||
{
|
||||
/**
|
||||
|
@ -107,9 +108,11 @@ class PhpCodeSniffer extends Plugin implements ZeroConfigPlugin
|
|||
|
||||
/**
|
||||
* Check if this plugin can be executed.
|
||||
*
|
||||
* @param $stage
|
||||
* @param Builder $builder
|
||||
* @param Build $build
|
||||
* @param Build $build
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function canExecute($stage, Builder $builder, Build $build)
|
||||
|
|
|
@ -14,14 +14,16 @@ use PHPCensor\Helper\Lang;
|
|||
use PHPCensor\Model\Build;
|
||||
use PHPCensor\Model\BuildError;
|
||||
use PHPCensor\Plugin;
|
||||
use PHPCensor\ZeroConfigPlugin;
|
||||
|
||||
/**
|
||||
* PHP Copy / Paste Detector - Allows PHP Copy / Paste Detector testing.
|
||||
* @author Dan Cryer <dan@block8.co.uk>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
class PhpCpd extends Plugin
|
||||
* PHP Copy / Paste Detector - Allows PHP Copy / Paste Detector testing.
|
||||
*
|
||||
* @author Dan Cryer <dan@block8.co.uk>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
class PhpCpd extends Plugin implements ZeroConfigPlugin
|
||||
{
|
||||
protected $directory;
|
||||
protected $args;
|
||||
|
@ -56,6 +58,24 @@ class PhpCpd extends Plugin
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if this plugin can be executed.
|
||||
*
|
||||
* @param $stage
|
||||
* @param Builder $builder
|
||||
* @param Build $build
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function canExecute($stage, Builder $builder, Build $build)
|
||||
{
|
||||
if ($stage == 'test') {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Runs PHP Copy/Paste Detector in a specified directory.
|
||||
*/
|
||||
|
|
|
@ -14,11 +14,12 @@ use PHPCensor\Model\Build;
|
|||
use PHPCensor\Plugin;
|
||||
|
||||
/**
|
||||
* PHP CS Fixer - Works with the PHP Coding Standards Fixer for testing coding standards.
|
||||
* @author Gabriel Baker <gabriel@autonomicpilot.co.uk>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
* PHP CS Fixer - Works with the PHP Coding Standards Fixer for testing coding standards.
|
||||
*
|
||||
* @author Gabriel Baker <gabriel@autonomicpilot.co.uk>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
class PhpCsFixer extends Plugin
|
||||
{
|
||||
protected $workingDir = '';
|
||||
|
|
|
@ -16,11 +16,12 @@ use PHPCensor\Plugin;
|
|||
use PHPCensor\ZeroConfigPlugin;
|
||||
|
||||
/**
|
||||
* PHP Docblock Checker Plugin - Checks your PHP files for appropriate uses of Docblocks
|
||||
* @author Dan Cryer <dan@block8.co.uk>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
* PHP Docblock Checker Plugin - Checks your PHP files for appropriate uses of Docblocks
|
||||
*
|
||||
* @author Dan Cryer <dan@block8.co.uk>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
class PhpDocblockChecker extends Plugin implements ZeroConfigPlugin
|
||||
{
|
||||
/**
|
||||
|
|
|
@ -17,6 +17,7 @@ use PHPCensor\ZeroConfigPlugin;
|
|||
|
||||
/**
|
||||
* PHP Loc - Allows PHP Copy / Lines of Code testing.
|
||||
*
|
||||
* @author Johan van der Heide <info@japaveh.nl>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
|
|
|
@ -16,11 +16,12 @@ use PHPCensor\Plugin;
|
|||
use PHPCensor\ZeroConfigPlugin;
|
||||
|
||||
/**
|
||||
* PHP Mess Detector Plugin - Allows PHP Mess Detector testing.
|
||||
* @author Dan Cryer <dan@block8.co.uk>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
* PHP Mess Detector Plugin - Allows PHP Mess Detector testing.
|
||||
*
|
||||
* @author Dan Cryer <dan@block8.co.uk>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
class PhpMessDetector extends Plugin implements ZeroConfigPlugin
|
||||
{
|
||||
/**
|
||||
|
|
|
@ -12,14 +12,16 @@ namespace PHPCensor\Plugin;
|
|||
use PHPCensor\Builder;
|
||||
use PHPCensor\Model\Build;
|
||||
use PHPCensor\Plugin;
|
||||
use PHPCensor\ZeroConfigPlugin;
|
||||
|
||||
/**
|
||||
* Php Parallel Lint Plugin - Provides access to PHP lint functionality.
|
||||
* @author Vaclav Makes <vaclav@makes.cz>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
class PhpParallelLint extends Plugin
|
||||
* Php Parallel Lint Plugin - Provides access to PHP lint functionality.
|
||||
*
|
||||
* @author Vaclav Makes <vaclav@makes.cz>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
class PhpParallelLint extends Plugin implements ZeroConfigPlugin
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
|
@ -68,6 +70,24 @@ class PhpParallelLint extends Plugin
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if this plugin can be executed.
|
||||
*
|
||||
* @param $stage
|
||||
* @param Builder $builder
|
||||
* @param Build $build
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function canExecute($stage, Builder $builder, Build $build)
|
||||
{
|
||||
if ($stage == 'test') {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Executes parallel lint
|
||||
*/
|
||||
|
|
|
@ -15,11 +15,12 @@ use PHPCensor\Model\Build;
|
|||
use PHPCensor\Plugin;
|
||||
|
||||
/**
|
||||
* PHP Spec Plugin - Allows PHP Spec testing.
|
||||
* @author Dan Cryer <dan@block8.co.uk>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
* PHP Spec Plugin - Allows PHP Spec testing.
|
||||
*
|
||||
* @author Dan Cryer <dan@block8.co.uk>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
class PhpSpec extends Plugin
|
||||
{
|
||||
/**
|
||||
|
|
|
@ -15,6 +15,7 @@ use PHPCensor\Plugin;
|
|||
|
||||
/**
|
||||
* Shell Plugin - Allows execute shell commands.
|
||||
*
|
||||
* @author Kinn Coelho Julião <kinncj@gmail.com>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
|
|
|
@ -15,11 +15,12 @@ use PHPCensor\Model\Build;
|
|||
use PHPCensor\Plugin;
|
||||
|
||||
/**
|
||||
* SQLite Plugin — Provides access to a SQLite database.
|
||||
* @author Corpsee <poisoncorpsee@gmail.com>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
* SQLite Plugin — Provides access to a SQLite database.
|
||||
*
|
||||
* @author Dmitry Khomutov <poisoncorpsee@gmail.com>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
class Sqlite extends Plugin
|
||||
{
|
||||
/**
|
||||
|
|
|
@ -16,12 +16,12 @@ use PHPCensor\Plugin;
|
|||
use PHPCensor\ZeroConfigPlugin;
|
||||
|
||||
/**
|
||||
* Technical Debt Plugin - Checks for existence of "TODO", "FIXME", etc.
|
||||
*
|
||||
* @author James Inman <james@jamesinman.co.uk>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
* Technical Debt Plugin - Checks for existence of "TODO", "FIXME", etc.
|
||||
*
|
||||
* @author James Inman <james@jamesinman.co.uk>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
class TechnicalDebt extends Plugin implements ZeroConfigPlugin
|
||||
{
|
||||
/**
|
||||
|
|
|
@ -14,11 +14,12 @@ use PHPCensor\Model\Build;
|
|||
use PHPCensor\Plugin;
|
||||
|
||||
/**
|
||||
* Wipe Plugin - Wipes a folder
|
||||
* @author Claus Due <claus@namelesscoder.net>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
* Wipe Plugin - Wipes a folder
|
||||
*
|
||||
* @author Claus Due <claus@namelesscoder.net>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
class Wipe extends Plugin
|
||||
{
|
||||
protected $directory;
|
||||
|
|
|
@ -14,11 +14,12 @@ use PHPCensor\Model\Build;
|
|||
use PHPCensor\Plugin;
|
||||
|
||||
/**
|
||||
* XMPP Notification - Send notification for successful or failure build
|
||||
* @author Alexandre Russo <dev.github@ange7.com>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
* XMPP Notification - Send notification for successful or failure build
|
||||
*
|
||||
* @author Alexandre Russo <dev.github@ange7.com>
|
||||
* @package PHPCI
|
||||
* @subpackage Plugins
|
||||
*/
|
||||
class XMPP extends Plugin
|
||||
{
|
||||
protected $directory;
|
||||
|
|
Loading…
Reference in a new issue