Mercurial > hg > autobot
changeset 144:21f07648ef88
use SourceFactory now that it exists
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 24 Jan 2011 18:18:19 -0800 |
parents | 5f98c1d4ae3c |
children | b10d16cdc22b |
files | autobot/projects/project.template |
diffstat | 1 files changed, 7 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/autobot/projects/project.template Mon Jan 24 18:13:09 2011 -0800 +++ b/autobot/projects/project.template Mon Jan 24 18:18:19 2011 -0800 @@ -1,17 +1,19 @@ -from buildbot.process.factory import BuildFactory +from autobot.process.factory import SourceFactory from buildbot.steps.shell import ShellCommand from buildbot.steps.shell import WithProperties -class Test{{project.title()}}(BuildFactory): +class Test{{project.title()}}(SourceFactory): """ {{description}}: {{repo}} """ + sources = {'hg': ['{{repo}}'], + 'git': []} + def __init__(self): - BuildFactory.__init__(self) + SourceFactory.__init__(self) - # checkout the repository - #self.addStep(ShellCommand(command=['hg', 'clone', '{{repo}}'])) + self.checkout() # run the tests [TODO]