blob: 5d8633fe278ef9912e12e1e8a2d00bd91c19cce0 [file] [log] [blame]
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from buildbot.scheduler import Triggerable
from buildbot.schedulers.basic import SingleBranchScheduler
from master.factory import remote_run_factory
import master_site_config
ActiveMaster = master_site_config.ChromiumMac
def m_remote_run(recipe, **kwargs):
return remote_run_factory.RemoteRunFactory(
active_master=ActiveMaster,
repository='https://chromium.googlesource.com/chromium/tools/build.git',
recipe=recipe,
factory_properties={'path_config': 'kitchen'},
**kwargs)
def Update(config, active_master, c):
c['schedulers'].extend([
SingleBranchScheduler(name='mac_src',
branch='master',
treeStableTimer=60,
builderNames=[
'Mac Builder',
'Mac Builder (dbg)',
'Mac GYP',
'Mac GYP (dbg)',
]),
])
specs = [
{'name': 'Mac Builder'},
{'name': 'Mac10.9 Tests'},
{'name': 'Mac10.10 Tests'},
{'name': 'Mac10.11 Tests'},
{'name': 'Mac Builder (dbg)'},
{'name': 'Mac10.9 Tests (dbg)'},
{'name': 'Mac GYP'},
{'name': 'Mac GYP (dbg)'},
]
c['builders'].extend([
{
'name': spec['name'],
'factory': m_remote_run('chromium'),
'notify_on_missing': True,
'category': '3mac',
} for spec in specs
])