# HG changeset patch # User Jeff Hammel # Date 1303505275 25200 # Node ID 38f48e25e8ee1869450f5bb80c954eff6f988be5 # Parent 0fa25e935a5a23732952764fb33a4621f57cd678 add toolbox project diff -r 0fa25e935a5a -r 38f48e25e8ee autobot/projects/toolbox/__init__.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/autobot/projects/toolbox/__init__.py Fri Apr 22 13:47:55 2011 -0700 @@ -0,0 +1,20 @@ +from autobot.process.factory import PythonSourceFactory +from buildbot.steps.shell import ShellCommand +from buildbot.steps.shell import WithProperties + +class TestToolbox(PythonSourceFactory): + """ + an index of Mozilla software tools: + https://github.com/k0s/toolbox + """ + + sources = {'hg': [], + 'git': ['git://github.com/k0s/toolbox.git']} + + def __init__(self): + PythonSourceFactory.__init__(self, name='toolbox') + + # run the tests + self.addStep(ShellCommand(command=[WithProperties('%(python)s', 'test.py')], + workdir=WithProperties('%(virtualenv)s/src/toolbox/test'), + description='test toolbox'))