OLD | NEW |
| (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 ]) | |
OLD | NEW |