changeset 34:206467b6f61f

* cleanup a bit in projects and start featuring autodiscovery * add some authz crap to the config file
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 08 Jan 2011 10:21:54 -0800
parents cbeca1aea406
children 9866e68887c8
files autobot/projects/__init__.py autobot/projects/mozmill/__init__.py autobot/template/master/master.cfg
diffstat 3 files changed, 13 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/autobot/projects/__init__.py	Fri Jan 07 18:52:36 2011 -0800
+++ b/autobot/projects/__init__.py	Sat Jan 08 10:21:54 2011 -0800
@@ -15,7 +15,13 @@
 from logparser import TestLogParserFactory
 from mozmill import TestMozmillFactory
 # TODO: import these automagically:
-# here = os.path.dirname(os.path.abspath(__file__))
+# requires non-zipped eggs
+here = os.path.dirname(os.path.abspath(__file__))
+packages = [os.path.join(here, path)
+            for path in os.listdir(here)
+            if os.path.isdir(os.path.join(here, path))]
+packages = [package for package in packages
+            if os.path.exists(os.path.join(package, '__init__.py'))]
 
 # available factories
 factories = {'logparser': TestLogParserFactory(),
--- a/autobot/projects/mozmill/__init__.py	Fri Jan 07 18:52:36 2011 -0800
+++ b/autobot/projects/mozmill/__init__.py	Sat Jan 08 10:21:54 2011 -0800
@@ -8,10 +8,12 @@
   def __init__(self):
 
     # setup the environment
-    VirtualenvFactory.__init__(self, name='logparser',
+    VirtualenvFactory.__init__(self, name='mozmill',
                                git_sources=['http://github.com/mozautomation/mozmill'])
 
     # install the python
     # TODO: utilize PythonSourceFactory
 
+    # get firefox
+
     # run the tests
--- a/autobot/template/master/master.cfg	Fri Jan 07 18:52:36 2011 -0800
+++ b/autobot/template/master/master.cfg	Sat Jan 08 10:21:54 2011 -0800
@@ -35,7 +35,9 @@
 ####### STATUS TARGETS
 c['status'] = []
 from buildbot.status import html
-c['status'].append(html.WebStatus(http_port={{htmlport}}))
+from buildbot.status.web.authz import Authz
+authz = Authz(forceBuild=True, stopBuild=True)
+c['status'].append(html.WebStatus(http_port={{htmlport}}, authz=authz))
 
 ####### PROJECT IDENTITY
 c['projectName'] = "Buildbot"