OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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.schedulers.basic import SingleBranchScheduler | 5 from buildbot.schedulers.basic import SingleBranchScheduler |
6 | 6 |
7 from master.factory import annotator_factory | 7 from master.factory import annotator_factory |
8 | 8 |
9 m_annotator = annotator_factory.AnnotatorFactory() | 9 m_annotator = annotator_factory.AnnotatorFactory() |
10 | 10 |
11 def Update(config, active_master, c): | 11 def Update(config, active_master, c): |
12 c['schedulers'].extend([ | 12 c['schedulers'].extend([ |
13 SingleBranchScheduler(name='ios', | 13 SingleBranchScheduler(name='ios', |
14 branch='master', | 14 branch='master', |
15 treeStableTimer=60, | 15 treeStableTimer=60, |
16 builderNames=[ | 16 builderNames=[ |
17 'iOS_Device', | 17 'ios-device', |
18 'iOS_Simulator_(dbg)', | 18 'ios-device-gn', |
19 'iOS_Device_(ninja)', | 19 'ios-simulator', |
20 'iOS_Device_GN', | 20 'ios-simulator-gn', |
21 'iOS_Simulator_GN_(dbg)', | |
22 ]), | 21 ]), |
23 ]) | 22 ]) |
24 specs = [ | 23 specs = [ |
25 {'name': 'iOS_Device'}, | 24 {'name': 'ios-device'}, |
26 {'name': 'iOS_Simulator_(dbg)'}, | 25 {'name': 'ios-device-gn'}, |
27 {'name': 'iOS_Device_(ninja)'}, | 26 {'name': 'ios-simulator'}, |
28 {'name': 'iOS_Device_GN'}, | 27 {'name': 'ios-simulator-gn'}, |
29 {'name': 'iOS_Simulator_GN_(dbg)'}, | |
30 ] | 28 ] |
31 | 29 |
32 c['builders'].extend([ | 30 c['builders'].extend([ |
33 { | 31 { |
34 'name': spec['name'], | 32 'name': spec['name'], |
35 'factory': m_annotator.BaseFactory( | 33 'factory': m_annotator.BaseFactory( |
36 'ios/unified_builder_tester', | 34 'ios/unified_builder_tester', |
37 factory_properties=spec.get('factory_properties')), | 35 factory_properties=spec.get('factory_properties')), |
38 'notify_on_missing': True, | 36 'notify_on_missing': True, |
39 'category': '3mac', | 37 'category': '3mac', |
40 } for spec in specs | 38 } for spec in specs |
41 ]) | 39 ]) |
OLD | NEW |