simple-talos/master.cfg
author John Hopkins <jhopkins@mozilla.com>
Mon, 30 Apr 2012 09:49:11 -0400
changeset 5892 d344e17405c7b83018460f420c7da031f0d632c5
parent 4971 6fa12d51d6987dab53892943726bf1bce7ebea48
child 9960 26e95b38c293cfaa9748bf0bb6f016cb84f1522c
permissions -rw-r--r--
copy Thunderbird l10n files under mozilla/ directory (Bug 711534 - Configure Thunderbird release builders) r=standard8

from buildbot.buildslave import BuildSlave
from buildbot.changes.pb import PBChangeSource
from buildbot.config import BuilderConfig
from buildbot.process.properties import WithProperties
from buildbot.schedulers.basic import Scheduler
from buildbot.status.html import WebStatus

import buildbotcustom.process.factory
reload(buildbotcustom.process.factory)

from buildbotcustom.process.factory import RuntimeTalosFactory

import config
import secrets
reload(config)
reload(secrets)

c = BuildmasterConfig = {}
c['title'] = 'Ateam Talos Buildbot'
c['titleURL'] = 'http://wiki.mozilla.org/Ateam'
c['buildbotURL'] = 'http://talos-staging-master02.mv.mozilla.com:8010/'
c['db_url'] = 'sqlite:///state.sqlite'
c['slavePortnum'] = 9989
c['slaves'] = []
c['builders'] = []
c['change_source'] = [PBChangeSource()]
c['schedulers'] = []
c['status'] = [WebStatus(http_port=8010, allowForce=True)]

for platform in config.platforms:
    p = config.platforms[platform]
    for slave in p['slaves']:
        c['slaves'].append(BuildSlave(slave, secrets.buildslavePassword))

    factory = RuntimeTalosFactory(
        OS=platform,
        envName=p['env'],
        buildBranch=config.buildBranch,
        branchName=config.branchName,
        talosBranch=config.talosBranch,
        customManifest=None,
        workdirBase='../talos-data',
        fetchSymbols=False,
        talosCmd=['python', 'run_tests.py', '--noisy', WithProperties('%(extraTalosArg)s'), WithProperties('%(configFile)s')],
        # Uncomment this to test EXEs on Windows instead of ZIPs
        #releaseTester=True
    )
    c['builders'].append(BuilderConfig(
        name=platform,
        slavenames=p['slaves'],
        factory=factory,
        category=platform
    ))
    c['schedulers'].append(Scheduler(
        name=platform,
        builderNames=[platform],
        branch=platform
    ))

if __name__ == '__main__':
    for s in c['schedulers']:
        print "Scheduler %s triggers builders %s" % (s.name, s.builderNames)