Mercurial > hg > autobot
view autobot/projects/mozmill/__init__.py @ 175:98944f934452
allow git url to be configurable
| author | Jeff Hammel <jhammel@mozilla.com> |
|---|---|
| date | Mon, 31 Jan 2011 21:26:46 -0800 |
| parents | a58270483c1e |
| children | 1fb46d94bae6 |
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 """ # VCS sources = {'git': ['http://github.com/mozautomation/mozmill.git']} def __init__(self, firefox_url=None, git=None): # setup the environment VirtualenvFactory.__init__(self, name='mozmill', git=git) 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 self.findScript('mozmill') self.addStep(ShellCommand(command=[WithProperties('%(mozmill)s', '--help')], description='mozmill --help')) # get firefox # [TODO] # run the tests # [TODO]
