# HG changeset patch # User Jeff Hammel # Date 1294510914 28800 # Node ID 206467b6f61f834f2718432b334ce1c65695f2de # Parent cbeca1aea4063b9da8ffebf4db9b4b1e92a511b4 * cleanup a bit in projects and start featuring autodiscovery * add some authz crap to the config file diff -r cbeca1aea406 -r 206467b6f61f autobot/projects/__init__.py --- 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(), diff -r cbeca1aea406 -r 206467b6f61f autobot/projects/mozmill/__init__.py --- 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 diff -r cbeca1aea406 -r 206467b6f61f autobot/template/master/master.cfg --- 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"