changeset 69:849bbc2e5572

first use of project template -> devicemanager
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 11 Jan 2011 12:57:43 -0800
parents fbd4a34d8e42
children f8dccf3377d9
files autobot/projects/devicemanager/__init__.py autobot/template.py
diffstat 2 files changed, 20 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/autobot/projects/devicemanager/__init__.py	Tue Jan 11 12:57:43 2011 -0800
@@ -0,0 +1,18 @@
+from buildbot.process.factory import BuildFactory
+from buildbot.steps.shell import ShellCommand
+from buildbot.steps.shell import WithProperties
+
+class TestDevicemanager(BuildFactory):
+    """
+    devicemanager for mobile testing:
+    http://hg.mozilla.org/automation/remote-testing/
+    """
+
+    def __init__(self):
+        BuildFactory.__init__(self)
+
+        # checkout the repository
+        #self.addStep(ShellCommand(command=['hg', 'clone', 'http://hg.mozilla.org/automation/remote-testing/']))
+
+        # run the tests [TODO]
+
--- a/autobot/template.py	Tue Jan 11 12:43:08 2011 -0800
+++ b/autobot/template.py	Tue Jan 11 12:57:43 2011 -0800
@@ -178,6 +178,8 @@
             projectdir = os.path.join(here, 'projects', project)
             if os.path.exists(projectdir):
                 assert os.path.isdir(projectdir)
+            else:
+                os.makedirs(projectdir)
             output = os.path.join(projectdir, '__init__.py')
             assert not os.path.exists(output), "Project '%s' already exists" % project