changeset 183:225f88b6b1d6

more stubbing for mozmill; still need to get the binary
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 01 Feb 2011 18:58:04 -0800
parents 13293c35f162
children a5709ef5e275
files autobot/projects/mozmill/__init__.py
diffstat 1 files changed, 20 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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]