view autobot/projects/mozmill/__init__.py @ 142:260cebcbb309

move towards the new way of noting sources
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 24 Jan 2011 13:10:01 -0800
parents b41d58e93b2d
children 2a90789e2ba3
line wrap: on
line source

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

class TestMozmillFactory(VirtualenvFactory):
  """
  factory to test Mozmill
  http://github.com/mozautomation/mozmill
  """

  sources = {'git': ['http://github.com/mozautomation/mozmill']}
  
  def __init__(self, firefox_url=None):

    # setup the environment
    VirtualenvFactory.__init__(self, name='mozmill')
    self.addStep(ShellCommand(command=['bash', 'setup_development.sh'],
                             workdir=WithProperties('%(virtualenv)s/src/mozmill')))

    # get firefox
    # [TODO]

    # run the tests