# HG changeset patch # User Jeff Hammel # Date 1295921899 28800 # Node ID 21f07648ef88f364119ab84d32d941453270c4ef # Parent 5f98c1d4ae3cd3f7fa65dba83fdcb92f341f39d6 use SourceFactory now that it exists diff -r 5f98c1d4ae3c -r 21f07648ef88 autobot/projects/project.template --- 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]