changeset 152:b1126ab39a4c

add a project to test manifestdestiny
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 25 Jan 2011 10:26:57 -0800
parents 700693fad00a
children 8536e2005ba7
files autobot/projects/manifestdestiny/__init__.py
diffstat 1 files changed, 24 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/autobot/projects/manifestdestiny/__init__.py	Tue Jan 25 10:26:57 2011 -0800
@@ -0,0 +1,24 @@
+from autobot.process.factory import SourceFactory
+from buildbot.steps.shell import ShellCommand
+from buildbot.steps.shell import WithProperties
+
+class TestManifestdestiny(SourceFactory):
+    """
+    test Mozilla test manifests
+    http://hg.mozilla.org/automation/ManifestDestiny/
+    """
+
+    sources = {'hg': ['http://hg.mozilla.org/automation/ManifestDestiny/'],
+               'git': []}
+    
+    def __init__(self):
+        SourceFactory.__init__(self)
+
+        self.checkout()
+
+        # run the tests
+        self.addStep(ShellCommand(command=[WithProperties('%(python)s'),
+                                           'test.py'],
+                                  workdir=WithProperties('%(virtualenv)s/src/ManifestDestiny/manifestdestiny/tests'),
+                                  description='test ManifestDestiny'))
+