view autobot/projects/mozmill/__init__.py @ 161:07d759af7d8f

add a readable description
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 31 Jan 2011 15:05:27 -0800
parents 514c9a782da0
children a8fe4ddab1ee
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.git']}
  
  def __init__(self, firefox_url=None):

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

    # ensure mozmill works at all
    # [TODO] mozmill --help

    # get firefox
    # [TODO]

    # run the tests