mozilla-tests/tests_localconfig.py
author John Hopkins <jhopkins@mozilla.com>
Mon, 16 Apr 2012 11:25:29 -0400
changeset 5790 bb260b55320e0da5b7143c0e6cce39b9ef2082e8
parent 5388 13dba078906555b91b09cca82f9a797dc34b442a
child 5806 85d6db5ce555a5bbbfc62a16a1d78785d5835b6c
permissions -rw-r--r--
Bug 730325 - Integrate Thunderbird build config with Firefox build config. r=bhearsum. Nits will be addressed in separate patches.

from buildbot.util import json
from buildbot.status.html import WebStatus
from buildbot import manhole

master_config = json.load(open('master_config.json'))

c = BuildmasterConfig = {}
c['slavePortnum'] = master_config.get('pb_port', None)
c['status'] = []

if 'http_port' in master_config:
    c['status'].append(
            WebStatus(http_port=master_config['http_port'], allowForce=True))
    c['buildbotURL'] = 'http://%(hostname)s:%(http_port)i/' % master_config

if 'ssh_port' in master_config:
    c['manhole'] = manhole.PasswordManhole(
            "tcp:%(ssh_port)i:interface=127.0.0.1" % master_config,
            "cltbld", "password")

from config import BRANCHES, PLATFORMS, PROJECTS
import thunderbird_config
# Do everything!
ACTIVE_BRANCHES = BRANCHES.keys()
ACTIVE_THUNDERBIRD_BRANCHES = thunderbird_config.BRANCHES.keys()
if 'limit_platforms' in master_config:
    ACTIVE_PLATFORMS = dict((p,None) for p in master_config['limit_platforms'])
    ACTIVE_THUNDERBIRD_PLATFORMS = dict((p,None) for p in master_config['limit_platforms'])
else:
    ACTIVE_PLATFORMS = dict((k,None) for k in PLATFORMS.keys())
    ACTIVE_THUNDERBIRD_PLATFORMS = dict((k,None) for k in THUNDERBIRD_PLATFORMS.keys())
ACTIVE_PROJECTS = PROJECTS.keys()

QUEUEDIR = master_config.get("queuedir", "/dev/shm/queue")