# HG changeset patch # User Jeff Hammel # Date 1296615484 28800 # Node ID 225f88b6b1d65116d637dcf1cc0a9b74c3831314 # Parent 13293c35f16249028feab7de5063b4b5ae9ac76f more stubbing for mozmill; still need to get the binary diff -r 13293c35f162 -r 225f88b6b1d6 autobot/projects/mozmill/__init__.py --- a/autobot/projects/mozmill/__init__.py Tue Feb 01 12:22:39 2011 -0800 +++ b/autobot/projects/mozmill/__init__.py Tue Feb 01 18:58:04 2011 -0800 @@ -14,7 +14,14 @@ def __init__(self, firefox_url=None, git=None): # setup the environment - VirtualenvFactory.__init__(self, name='mozmill', git=git) + VirtualenvFactory.__init__(self, name='mozmill', git=git, + tests='http://hg.mozilla.org/qa/mozmill-tests') + # currently, mozmill-tests are dealt with separately here + # this is to avoid having mozmill depend on them or their changes + # ideally, these would be even more specifiable + + # install mozmill in development mode + # TODO: also install mozmill in `install` mode to ensure we didn't break that self.addStep(ShellCommand(command=[WithProperties('%(python)s'), 'setup_development.py'], workdir=WithProperties('%(virtualenv)s/src/mozmill'), description='setup_development.py' @@ -28,5 +35,16 @@ # get firefox # [TODO] - # run the tests + # run the in-built tests + # TODO: see if these actually work! + self.addStep(ShellCommand(command=[WithProperties('%(mozmill)s'), + '-t', + WithProperties('%(virtualenv)s/src/mozmill/mozmill/tests')] + description='run mozmill internal tests')) + + # get the QA tests + self.addStep(ShellCommand(command=['hg', 'clone', tests])) + + # run the QA tests + # [TODO]