Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (29 sloc) 1.45 KB
foswiki_steps = {}
####### SCHEDULERS
# Configure the Schedulers, which decide how to react to incoming changes. In this
from buildbot.schedulers.basic import SingleBranchScheduler
from buildbot.changes import filter
foswiki_steps['schedulers'] = []
foswiki_steps['schedulers'].append(SingleBranchScheduler(
name="buildbot-foswiki-steps-commit",
change_filter=filter.ChangeFilter(project='buildbot-foswiki-steps'),
treeStableTimer=60,
builderNames=["buildbot-foswiki-steps"]))
####### BUILDERS
# The 'builders' list defines the Builders, which tell Buildbot how to perform a build:
# what steps, and which slaves can execute them. Note that any particular build will
# only take place on one slave.
from buildbot.process.factory import BuildFactory
from buildbot.steps.source import Git
from buildbot.steps.python_twisted import Trial
from buildbot.config import BuilderConfig
factory_foswiki = BuildFactory()
# check out the source
factory_foswiki.addStep(Git(repourl='git://github.com/andrewrjones/buildbot-foswiki-steps.git', mode='copy'))
# run the tests (note that this will require that 'trial' is installed)
factory_foswiki.addStep(Trial(testpath=None, tests="test_steps_foswiki.py"))
foswiki_steps['builders'] = []
foswiki_steps['builders'].append(
BuilderConfig(name="buildbot-foswiki-steps",
slavenames=["l1"],
factory=factory_foswiki))