OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 from buildbot.scheduler import Triggerable | 5 from buildbot.scheduler import Triggerable |
6 from buildbot.schedulers.basic import SingleBranchScheduler | 6 from buildbot.schedulers.basic import SingleBranchScheduler |
7 | 7 |
8 from master.factory import annotator_factory | 8 from master.factory import annotator_factory |
9 | 9 |
10 m_annotator = annotator_factory.AnnotatorFactory() | 10 m_annotator = annotator_factory.AnnotatorFactory() |
11 | 11 |
12 def Update(_config, active_master, c): | 12 def Update(_config, active_master, c): |
13 c['schedulers'].extend([ | 13 c['schedulers'].extend([ |
14 SingleBranchScheduler(name='linux_src', | 14 SingleBranchScheduler(name='linux_src', |
15 branch='master', | 15 branch='master', |
16 treeStableTimer=60, | 16 treeStableTimer=60, |
17 builderNames=[ | 17 builderNames=[ |
18 'Linux Builder', | 18 'Linux Builder', |
19 'Linux Builder (dbg)(32)', | 19 'Linux Builder (dbg)(32)', |
20 'Linux Builder (dbg)', | 20 'Linux Builder (dbg)', |
21 'Linux GN', | 21 'Linux GN', |
22 'Linux GN Clobber', | 22 'Linux GN Clobber', |
23 'Linux GN (dbg)', | 23 'Linux GN (dbg)', |
24 'Linux ARM', | |
25 'Cast Linux', | 24 'Cast Linux', |
26 ]), | 25 ]), |
27 ]) | 26 ]) |
28 specs = [ | 27 specs = [ |
29 {'name': 'Linux Builder'}, | 28 {'name': 'Linux Builder'}, |
30 {'name': 'Linux Tests'}, | 29 {'name': 'Linux Tests'}, |
31 {'name': 'Linux Builder (dbg)(32)'}, | 30 {'name': 'Linux Builder (dbg)(32)'}, |
32 {'name': 'Linux Tests (dbg)(1)(32)'}, | 31 {'name': 'Linux Tests (dbg)(1)(32)'}, |
33 {'name': 'Linux Builder (dbg)'}, | 32 {'name': 'Linux Builder (dbg)'}, |
34 {'name': 'Linux Tests (dbg)(1)'}, | 33 {'name': 'Linux Tests (dbg)(1)'}, |
35 {'name': 'Linux GN'}, | 34 {'name': 'Linux GN'}, |
36 {'name': 'Linux GN Clobber'}, | 35 {'name': 'Linux GN Clobber'}, |
37 {'name': 'Linux GN (dbg)'}, | 36 {'name': 'Linux GN (dbg)'}, |
38 {'name': 'Linux ARM'}, | |
39 {'name': 'Cast Linux'}, | 37 {'name': 'Cast Linux'}, |
40 ] | 38 ] |
41 | 39 |
42 c['builders'].extend([ | 40 c['builders'].extend([ |
43 { | 41 { |
44 'name': spec['name'], | 42 'name': spec['name'], |
45 'factory': m_annotator.BaseFactory( | 43 'factory': m_annotator.BaseFactory( |
46 spec.get('recipe', 'chromium'), | 44 spec.get('recipe', 'chromium'), |
47 factory_properties=spec.get('factory_properties')), | 45 factory_properties=spec.get('factory_properties')), |
48 'notify_on_missing': True, | 46 'notify_on_missing': True, |
49 'category': '4linux', | 47 'category': '4linux', |
50 } for spec in specs | 48 } for spec in specs |
51 ]) | 49 ]) |
OLD | NEW |