[Buildbot-devel] Multiple factories for one Builder
Dustin J. Mitchell
dustin at zmanda.com
Wed May 21 16:35:23 UTC 2008
On Wed, May 21, 2008 at 12:25 PM, Ben Hearsum <bhearsum at mozilla.com> wrote:
> Do you mind sharing a config? I'm doing something similar, I think:
Similar effect, different implementation (this is different from what
I mentioned in my earlier post):
def build_with_configure_extras(*extra_flags):
f = factory.BuildFactory()
f.addStep(zmanda.steps.DownloadTarball,
name='download',
masterdir='/var/lib/buildbot/dist/tarballs',
haltOnFailure=1
)
f.addStep(zmanda.steps.UntarTarball,
haltOnFailure=1,
)
f.addStep(shell.ShellCommand,
name='configure', description='configuring',
descriptionDone='configured',
haltOnFailure=1,
# need to use a single string here so the shell will interpolate $PWD
command=" ".join(["./configure",
] + list(extra_flags) + base_configure_options +
installcheck_configure_options),
logfiles={'config.log': 'config.log'},
)
f.addStep(shell.Compile,
name='compile', description='compiling', descriptionDone='compiled',
haltOnFailure=1,
)
f.addStep(shell.Compile,
name='check', description='checking', descriptionDone='checked',
command=['make', 'check'],
haltOnFailure=1,
)
f.addStep(shell.Compile,
name='install', description='installing', descriptionDone='installed',
command=['make', 'install'],
haltOnFailure=1,
)
f.addStep(shell.Compile,
name='installcheck', description='installchecking',
descriptionDone='installchecked',
command=['make', 'CLOBBER_MY_CONFIG=OK', 'installcheck'],
haltOnFailure=1,
)
return f
# ...
config_factories['cflags-O2'] = build_with_configure_extras('CFLAGS="-g -O2"')
# ...
Dustin
--
Storage Software Engineer
http://www.zmanda.com
More information about the devel
mailing list