| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 remote_run_factory | 8 from master.factory import remote_run_factory |
| 8 | 9 |
| 9 import master_site_config | 10 import master_site_config |
| 10 ActiveMaster = master_site_config.WebRTC | 11 ActiveMaster = master_site_config.WebRTC |
| 11 | 12 |
| 12 | 13 |
| 13 def m_remote_run(recipe, **kwargs): | 14 def m_remote_run(recipe, **kwargs): |
| 14 return remote_run_factory.RemoteRunFactory( | 15 return remote_run_factory.RemoteRunFactory( |
| 15 active_master=ActiveMaster, | 16 active_master=ActiveMaster, |
| 16 repository='https://chromium.googlesource.com/chromium/tools/build.git', | 17 repository='https://chromium.googlesource.com/chromium/tools/build.git', |
| 17 recipe=recipe, | 18 recipe=recipe, |
| 18 factory_properties={'path_config': 'kitchen'}, | 19 factory_properties={'path_config': 'kitchen'}, |
| 19 **kwargs) | 20 **kwargs) |
| 20 | 21 |
| 21 | 22 |
| 23 m_annotator = annotator_factory.AnnotatorFactory() |
| 24 |
| 25 |
| 22 def Update(c): | 26 def Update(c): |
| 23 c['schedulers'].extend([ | 27 c['schedulers'].extend([ |
| 24 SingleBranchScheduler(name='webrtc_android_scheduler', | 28 SingleBranchScheduler(name='webrtc_android_scheduler', |
| 25 branch='master', | 29 branch='master', |
| 26 treeStableTimer=30, | 30 treeStableTimer=30, |
| 27 builderNames=[ | 31 builderNames=[ |
| 28 'Android32 (M Nexus5X)(dbg)', | 32 'Android32 (M Nexus5X)(dbg)', |
| 29 'Android32 (M Nexus5X)', | 33 'Android32 (M Nexus5X)', |
| 30 'Android64 (M Nexus5X)(dbg)', | 34 'Android64 (M Nexus5X)(dbg)', |
| 31 'Android64 (M Nexus5X)', | 35 'Android64 (M Nexus5X)', |
| (...skipping 15 matching lines...) Expand all Loading... |
| 47 {'name': 'Android32 (M Nexus5X)', 'slavebuilddir': 'android_arm32'}, | 51 {'name': 'Android32 (M Nexus5X)', 'slavebuilddir': 'android_arm32'}, |
| 48 {'name': 'Android64 (M Nexus5X)(dbg)', 'slavebuilddir': 'android_arm64'}, | 52 {'name': 'Android64 (M Nexus5X)(dbg)', 'slavebuilddir': 'android_arm64'}, |
| 49 {'name': 'Android64 (M Nexus5X)', 'slavebuilddir': 'android_arm64'}, | 53 {'name': 'Android64 (M Nexus5X)', 'slavebuilddir': 'android_arm64'}, |
| 50 {'name': 'Android32 Builder x86', 'slavebuilddir': 'android_x86'}, | 54 {'name': 'Android32 Builder x86', 'slavebuilddir': 'android_x86'}, |
| 51 {'name': 'Android32 Builder x86 (dbg)', 'slavebuilddir': 'android_x86'}, | 55 {'name': 'Android32 Builder x86 (dbg)', 'slavebuilddir': 'android_x86'}, |
| 52 {'name': 'Android32 Builder MIPS (dbg)', 'slavebuilddir': 'android_mips'}, | 56 {'name': 'Android32 Builder MIPS (dbg)', 'slavebuilddir': 'android_mips'}, |
| 53 {'name': 'Android32 Clang (dbg)', 'slavebuilddir': 'android_clang'}, | 57 {'name': 'Android32 Clang (dbg)', 'slavebuilddir': 'android_clang'}, |
| 54 {'name': 'Android64 Builder x64 (dbg)', 'slavebuilddir': 'android_x64'}, | 58 {'name': 'Android64 Builder x64 (dbg)', 'slavebuilddir': 'android_x64'}, |
| 55 {'name': 'Android32 GYP', 'slavebuilddir': 'android_gyp'}, | 59 {'name': 'Android32 GYP', 'slavebuilddir': 'android_gyp'}, |
| 56 {'name': 'Android32 GYP (dbg)', 'slavebuilddir': 'android_gyp'}, | 60 {'name': 'Android32 GYP (dbg)', 'slavebuilddir': 'android_gyp'}, |
| 57 {'name': 'Android32 (more configs)', 'slavebuilddir': 'android'}, | 61 { |
| 62 'name': 'Android32 (more configs)', |
| 63 'recipe': 'webrtc/more_configs', |
| 64 'slavebuilddir': 'android', |
| 65 }, |
| 58 ] | 66 ] |
| 59 | 67 |
| 60 c['builders'].extend([ | 68 c['builders'].extend([ |
| 61 { | 69 { |
| 62 'name': spec['name'], | 70 'name': spec['name'], |
| 63 'factory': m_remote_run('webrtc/standalone'), | 71 'factory': m_annotator.BaseFactory(spec['recipe']) |
| 72 if 'recipe' in spec |
| 73 else m_remote_run('webrtc/standalone'), |
| 64 'notify_on_missing': True, | 74 'notify_on_missing': True, |
| 65 'category': 'android', | 75 'category': 'android', |
| 66 'slavebuilddir': spec.get('slavebuilddir', 'android'), | 76 'slavebuilddir': spec.get('slavebuilddir', 'android'), |
| 67 } for spec in specs | 77 } for spec in specs |
| 68 ]) | 78 ]) |
| OLD | NEW |