Renamed projects types and build classes: 'remote'/RemoteGitBuild to
'git'/GitBuild, MercurialBuild to HgBuild, SubversionBuild to SvnBuild, 'bitbuckethg' to 'bitbucket-hg'.
This commit is contained in:
parent
d0c69d2ef0
commit
58f1004652
10 changed files with 41 additions and 23 deletions
|
|
@ -15,7 +15,7 @@ use PHPCensor\Model\BuildError;
|
|||
*
|
||||
* @author Dan Cryer <dan@block8.co.uk>
|
||||
*/
|
||||
class BitbucketBuild extends RemoteGitBuild
|
||||
class BitbucketBuild extends GitBuild
|
||||
{
|
||||
/**
|
||||
* Get link to commit from another source (i.e. BitBucket)
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ use PHPCensor\Model\Build;
|
|||
*
|
||||
* @author Artem Bochkov <artem.v.bochkov@gmail.com>
|
||||
*/
|
||||
class BitbucketHgBuild extends MercurialBuild
|
||||
class BitbucketHgBuild extends HgBuild
|
||||
{
|
||||
/**
|
||||
* Get link to commit from another source (i.e. BitBucket)
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ use Psr\Log\LogLevel;
|
|||
*
|
||||
* @author Dan Cryer <dan@block8.co.uk>
|
||||
*/
|
||||
class RemoteGitBuild extends Build
|
||||
class GitBuild extends Build
|
||||
{
|
||||
/**
|
||||
* Get the URL to be used to clone this remote repository.
|
||||
|
|
@ -15,7 +15,7 @@ use PHPCensor\Model\BuildError;
|
|||
*
|
||||
* @author Dan Cryer <dan@block8.co.uk>
|
||||
*/
|
||||
class GithubBuild extends RemoteGitBuild
|
||||
class GithubBuild extends GitBuild
|
||||
{
|
||||
/**
|
||||
* Get link to commit from another source (i.e. Github)
|
||||
|
|
|
|||
|
|
@ -4,10 +4,10 @@ namespace PHPCensor\Model\Build;
|
|||
|
||||
/**
|
||||
* Gitlab Build Model
|
||||
*
|
||||
*
|
||||
* @author André Cianfarani <a.cianfarani@c2is.fr>
|
||||
*/
|
||||
class GitlabBuild extends RemoteGitBuild
|
||||
class GitlabBuild extends GitBuild
|
||||
{
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ namespace PHPCensor\Model\Build;
|
|||
/**
|
||||
* GogsBuild Build Model
|
||||
*/
|
||||
class GogsBuild extends RemoteGitBuild
|
||||
class GogsBuild extends GitBuild
|
||||
{
|
||||
/**
|
||||
* Get link to commit from Gogs repository
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ use PHPCensor\Builder;
|
|||
*
|
||||
* @author Pavel Gopanenko <pavelgopanenko@gmail.com>
|
||||
*/
|
||||
class MercurialBuild extends Build
|
||||
class HgBuild extends Build
|
||||
{
|
||||
/**
|
||||
* Get the URL to be used to clone this remote repository.
|
||||
|
|
@ -7,10 +7,10 @@ use PHPCensor\Builder;
|
|||
|
||||
/**
|
||||
* Remote Subversion Build Model
|
||||
*
|
||||
*
|
||||
* @author Nadir Dzhilkibaev <imam.sharif@gmail.com>
|
||||
*/
|
||||
class SubversionBuild extends Build
|
||||
class SvnBuild extends Build
|
||||
{
|
||||
protected $svnCommand = 'svn export -q --non-interactive ';
|
||||
|
||||
|
|
@ -21,7 +21,7 @@ class SubversionBuild extends Build
|
|||
{
|
||||
$url = rtrim($this->getProject()->getReference(), '/') . '/';
|
||||
$branch = ltrim($this->getBranch(), '/');
|
||||
|
||||
|
||||
// For empty default branch or default branch name like "/trunk" or "trunk" (-> "trunk")
|
||||
if (empty($branch) || $branch == 'trunk') {
|
||||
$url .= 'trunk';
|
||||
Loading…
Add table
Add a link
Reference in a new issue