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.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(c): | 12 def Update(c): |
13 c['schedulers'].extend([ | 13 c['schedulers'].extend([ |
14 SingleBranchScheduler(name='webrtc_android_scheduler', | 14 SingleBranchScheduler(name='webrtc_android_scheduler', |
15 branch='trunk', | 15 branch='trunk', |
16 treeStableTimer=30, | 16 treeStableTimer=30, |
17 builderNames=[ | 17 builderNames=[ |
18 'Android', | 18 'Android Builder', |
19 'Android (dbg)', | 19 'Android Builder (dbg)', |
20 'Android Clang (dbg)', | 20 'Android Clang (dbg)', |
21 'Android ARM64 (dbg)', | 21 'Android ARM64 (dbg)', |
22 'Android GN', | 22 'Android GN', |
23 'Android GN (dbg)', | 23 'Android GN (dbg)', |
24 'Android Chromium-APK Builder', | |
25 'Android Chromium-APK Builder (dbg)', | |
26 ]), | 24 ]), |
27 Triggerable(name='android_trigger_dbg', builderNames=[ | 25 Triggerable(name='android_trigger_dbg', builderNames=[ |
28 'Android Chromium-APK Tests (KK Nexus5)(dbg)', | 26 'Android Tests (KK Nexus5)(dbg)', |
29 'Android Chromium-APK Tests (JB Nexus7.2)(dbg)', | 27 'Android Tests (JB Nexus7.2)(dbg)', |
30 ]), | 28 ]), |
31 Triggerable(name='android_trigger_rel', builderNames=[ | 29 Triggerable(name='android_trigger_rel', builderNames=[ |
32 'Android Chromium-APK Tests (KK Nexus5)', | 30 'Android Tests (KK Nexus5)', |
33 'Android Chromium-APK Tests (JB Nexus7.2)', | 31 'Android Tests (JB Nexus7.2)', |
34 ]), | 32 ]), |
35 ]) | 33 ]) |
36 | 34 |
37 # 'slavebuilddir' below is used to reduce the number of checkouts since some | 35 # 'slavebuilddir' below is used to reduce the number of checkouts since some |
38 # of the builders are pooled over multiple slave machines. | 36 # of the builders are pooled over multiple slave machines. |
39 specs = [ | 37 specs = [ |
40 { | 38 { |
41 'name': 'Android', | 39 'name': 'Android Builder', |
42 'recipe': 'webrtc/standalone', | 40 'triggers': ['android_trigger_rel'], |
43 'slavebuilddir': 'android', | |
44 }, | 41 }, |
45 { | 42 { |
46 'name': 'Android (dbg)', | 43 'name': 'Android Builder (dbg)', |
47 'recipe': 'webrtc/standalone', | 44 'triggers': ['android_trigger_dbg'], |
48 'slavebuilddir': 'android', | |
49 }, | 45 }, |
50 { | 46 { |
51 'name': 'Android Clang (dbg)', | 47 'name': 'Android Clang (dbg)', |
52 'recipe': 'webrtc/standalone', | |
53 'slavebuilddir': 'android_clang', | 48 'slavebuilddir': 'android_clang', |
54 }, | 49 }, |
55 { | 50 { |
56 'name': 'Android ARM64 (dbg)', | 51 'name': 'Android ARM64 (dbg)', |
57 'recipe': 'webrtc/standalone', | |
58 'slavebuilddir': 'android_arm64', | 52 'slavebuilddir': 'android_arm64', |
59 }, | 53 }, |
60 { | 54 { |
61 'name': 'Android GN', | 55 'name': 'Android GN', |
62 'recipe': 'webrtc/standalone', | |
63 'slavebuilddir': 'android_gn', | 56 'slavebuilddir': 'android_gn', |
64 }, | 57 }, |
65 { | 58 { |
66 'name': 'Android GN (dbg)', | 59 'name': 'Android GN (dbg)', |
67 'recipe': 'webrtc/standalone', | |
68 'slavebuilddir': 'android_gn', | 60 'slavebuilddir': 'android_gn', |
69 }, | 61 }, |
70 { | 62 {'name': 'Android Tests (KK Nexus5)(dbg)'}, |
71 'name': 'Android Chromium-APK Builder', | 63 {'name': 'Android Tests (JB Nexus7.2)(dbg)'}, |
72 'triggers': ['android_trigger_rel'], | 64 {'name': 'Android Tests (KK Nexus5)'}, |
73 }, | 65 {'name': 'Android Tests (JB Nexus7.2)'}, |
74 { | |
75 'name': 'Android Chromium-APK Builder (dbg)', | |
76 'triggers': ['android_trigger_dbg'], | |
77 }, | |
78 {'name': 'Android Chromium-APK Tests (KK Nexus5)(dbg)'}, | |
79 {'name': 'Android Chromium-APK Tests (JB Nexus7.2)(dbg)'}, | |
80 {'name': 'Android Chromium-APK Tests (KK Nexus5)'}, | |
81 {'name': 'Android Chromium-APK Tests (JB Nexus7.2)'}, | |
82 ] | 66 ] |
83 | 67 |
84 c['builders'].extend([ | 68 c['builders'].extend([ |
85 { | 69 { |
86 'name': spec['name'], | 70 'name': spec['name'], |
87 'factory': m_annotator.BaseFactory( | 71 'factory': m_annotator.BaseFactory('webrtc/standalone', |
88 spec.get('recipe', 'webrtc/android_apk'), | 72 triggers=spec.get('triggers')), |
89 triggers=spec.get('triggers')), | |
90 'notify_on_missing': True, | 73 'notify_on_missing': True, |
91 'category': 'android', | 74 'category': 'android', |
92 'slavebuilddir': spec.get('slavebuilddir', 'android_apk'), | 75 'slavebuilddir': spec.get('slavebuilddir', 'android'), |
93 } for spec in specs | 76 } for spec in specs |
94 ]) | 77 ]) |
OLD | NEW |