Mercurial > hg > autobot
changeset 222:38f48e25e8ee
add toolbox project
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Fri, 22 Apr 2011 13:47:55 -0700 |
parents | 0fa25e935a5a |
children | 91f4a20285bc |
files | autobot/projects/toolbox/__init__.py |
diffstat | 1 files changed, 20 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /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'))