Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(459)

Side by Side Diff: masters/master.chromium.webrtc.fyi/master_linux_cfg.py

Issue 1393893006: WebRTC: Refactor builder configs to reduce duplication. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 from buildbot.changes.filter import ChangeFilter
6 from buildbot.scheduler import Periodic
7 from buildbot.schedulers.basic import SingleBranchScheduler
8
9 from master.factory import annotator_factory
10
11 m_annotator = annotator_factory.AnnotatorFactory()
12
13 def Update(c):
14 buildernames_list = [
15 'Linux',
16 'Linux GN',
17 'Linux GN (dbg)',
18 ]
19 c['schedulers'].extend([
20 SingleBranchScheduler(name='linux_webrtc_scheduler',
21 change_filter=ChangeFilter(project='webrtc',
22 branch='master'),
23 treeStableTimer=0,
24 builderNames=buildernames_list),
25 Periodic(name='linux_periodic_scheduler',
26 periodicBuildTimer=60*60,
27 builderNames=buildernames_list),
28 ])
29 specs = [
30 {'name': 'Linux'},
31 {
32 'name': 'Linux GN',
33 'recipe': 'chromium_gn',
34 'slavebuilddir': 'linux_gn',
35 },
36 {
37 'name': 'Linux GN (dbg)',
38 'recipe': 'chromium_gn',
39 'slavebuilddir': 'linux_gn',
40 },
41 ]
42
43 c['builders'].extend([
44 {
45 'name': spec['name'],
46 'factory': m_annotator.BaseFactory(spec.get('recipe',
47 'webrtc/chromium')),
48 'category': 'linux',
49 'notify_on_missing': True,
50 'slavebuilddir': spec.get('slavebuilddir', 'linux'),
51 } for spec in specs
52 ])
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698