Skip to content

Commit

Permalink
provide bundled steps as plugins
Browse files Browse the repository at this point in the history
Conflicts:
	master/buildbot/interfaces.py
	master/buildbot/process/buildstep.py
  • Loading branch information
Mikhail Sobolev committed Jan 13, 2015
1 parent 42f135c commit abea498
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 1 deletion.
7 changes: 7 additions & 0 deletions master/buildbot/interfaces.py
Expand Up @@ -1291,3 +1291,10 @@ class IBuildStepFactory(Interface):

def buildStep():
pass


class IBuildStep(IPlugin):
"""
A build step
"""
# Currently has nothing
4 changes: 3 additions & 1 deletion master/buildbot/plugins/__init__.py
Expand Up @@ -19,14 +19,16 @@

from buildbot.plugins.db import get_plugins
from buildbot.interfaces import IBuildSlave
from buildbot.interfaces import IBuildStep
from buildbot.interfaces import IChangeSource
from buildbot.interfaces import IScheduler


__all__ = ['changes', 'schedulers', 'buildslave']
__all__ = ['changes', 'schedulers', 'buildslave', 'steps']

# Names here match the names of the corresponding Buildbot module, hence
# 'changes', 'schedulers', but 'buildslave'
changes = get_plugins('change_source', IChangeSource)
schedulers = get_plugins('scheduler', IScheduler)
buildslave = get_plugins('build_slave', IBuildSlave)
steps = get_plugins('step', IBuildStep)
2 changes: 2 additions & 0 deletions master/buildbot/process/buildstep.py
Expand Up @@ -85,6 +85,8 @@ def buildStep(self):

class BuildStep(object, properties.PropertiesMixin):

implements(interfaces.IBuildStep)

haltOnFailure = False
flunkOnWarnings = False
flunkOnFailure = False
Expand Down
66 changes: 66 additions & 0 deletions master/setup.py
Expand Up @@ -232,6 +232,72 @@ def define_plugin_entries(groups):
('buildbot.buildslave.ec2', ['EC2LatentBuildSlave']),
('buildbot.buildslave.libvirt', ['LibVirtSlave']),
('buildbot.buildslave.openstack', ['OpenStackLatentBuildSlave'])
]),
('buildbot.step', [
('buildbot.process.buildstep', ['BuildStep']),
('buildbot.steps.http', [
'HTTPStep', 'POST', 'GET', 'PUT', 'DELETE', 'HEAD',
'OPTIONS']),
('buildbot.steps.master', [
'MasterShellCommand', 'SetProperty', 'LogRenderable']),
('buildbot.steps.maxq', ['MaxQ']),
('buildbot.steps.mswin', ['Robocopy']),
('buildbot.steps.mtrlogobserver', ['MTR']),
('buildbot.steps.package.deb.lintian', ['DebLintian']),
('buildbot.steps.package.deb.pbuilder', [
'DebPbuilder', 'DebCowbuilder', 'UbuPbuilder',
'UbuCowbuilder']),
('buildbot.steps.package.rpm.mock', [
'Mock', 'MockBuildSRPM', 'MockRebuild']),
('buildbot.steps.package.rpm.rpmbuild', ['RpmBuild']),
('buildbot.steps.package.rpm.rpmspec', ['RpmSpec']),
('buildbot.steps.python', [
'BuildEPYDoc', 'PyFlakes', 'PyLint', 'Sphinx']),
('buildbot.steps.python_twisted', [
'HLint', 'Trial', 'RemovePYCs']),
('buildbot.steps.shell', [
'ShellCommand', 'TreeSize', 'SetPropertyFromCommand',
'Configure', 'WarningCountingShellCommand', 'Compile',
'Test', 'PerlModuleTest']),
('buildbot.steps.shellsequence', ['ShellSequence']),
('buildbot.steps.slave', [
'SetPropertiesFromEnv', 'FileExists', 'CopyDirectory',
'RemoveDirectory', 'MakeDirectory']),
('buildbot.steps.source.bzr', ['Bzr']),
('buildbot.steps.source.cvs', ['CVS']),
('buildbot.steps.source.darcs', ['Darcs']),
('buildbot.steps.source.git', ['Git']),
('buildbot.steps.source.mercurial', ['Mercurial']),
('buildbot.steps.source.mtn', ['Monotone']),
('buildbot.steps.source.p4', ['P4']),
('buildbot.steps.source.repo', ['Repo']),
('buildbot.steps.source.svn', ['SVN']),
('buildbot.steps.subunit', ['SubunitShellCommand']),
('buildbot.steps.transfer', [
'FileUpload', 'DirectoryUpload', 'MultipleFileUpload',
'FileDownload', 'StringDownload', 'JSONStringDownload',
'JSONPropertiesDownload']),
('buildbot.steps.trigger', ['Trigger']),
('buildbot.steps.vstudio', [
'VC6', 'VC7', 'VS2003', 'VC8', 'VS2005', 'VCExpress9', 'VC9',
'VS2008', 'VC10', 'VS2010', 'VC11', 'VS2012', 'VC12', 'VS2013',
'MsBuild4', 'MsBuild', 'MsBuild12'])
]),
('buildbot.status', [
('buildbot.status.mail', ['MailNotifier']),
('buildbot.status.words', ['IRC']),
('buildbot.status.status_push', ['StatusPush', 'HttpStatusPush']),
('buildbot.status.status_gerrit', ['GerritStatusPush']),
('buildbot.status.github', ['GitHubStatus'])
]),
('buildbot.util', [
('buildbot.process.factory', [
'BuildFactory', 'GNUAutoconf', 'CPAN', 'Distutils', 'Trial',
'BasicBuildFactory', 'QuickBuildFactory', 'BasicSVN']),
('buildbot.changes.filter', ['ChangeFilter']),
('buildbot.config', ['BuilderConfig']),
('buildbot.locks', ['MasterLock', 'SlaveLock']),
('buildbot.steps.shellsequence', ['ShellArg'])
])
])
}
Expand Down

0 comments on commit abea498

Please sign in to comment.