view autobot/projects/toolbox/__init__.py @ 296:3fb63aa336b3

STUB: autobot/projects/toolbox/__init__.py
author Jeff Hammel <k0scist@gmail.com>
date Sun, 11 May 2014 08:47:50 -0700
parents 91f4a20285bc
children 43e472db4353
line wrap: on
line source

from autobot.process.factory import PythonSourceFactory
from buildbot.steps.shell import ShellCommand
from buildbot.steps.shell import WithProperties

class TestToolbox(PythonSourceFactory):
    """
    an index of 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'))