Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(186)

Side by Side Diff: masters/master.chromium.webrtc.fyi/master_android_cfg.py

Issue 1393893006: WebRTC: Refactor builder configs to reduce duplication. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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
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 'Android Builder (dbg)',
16 'Android Builder ARM64 (dbg)',
17 'Android GN',
18 'Android GN (dbg)',
19 ]
20 c['schedulers'].extend([
21 SingleBranchScheduler(name='android_webrtc_scheduler',
22 change_filter=ChangeFilter(project='webrtc',
23 branch='master'),
24 treeStableTimer=0,
25 builderNames=buildernames_list),
26 Periodic(name='android_periodic_scheduler',
27 periodicBuildTimer=30*60,
28 builderNames=buildernames_list),
29 ])
30
31 specs = [
32 {'name': 'Android Builder (dbg)'},
33 {
34 'name': 'Android Builder ARM64 (dbg)',
35 'slavebuilddir': 'android_arm64',
36 },
37 {'name': 'Android Tests (dbg) (J Nexus4)'},
38 {'name': 'Android Tests (dbg) (K Nexus5)'},
39 {'name': 'Android Tests (dbg) (L Nexus5)'},
40 {'name': 'Android Tests (dbg) (L Nexus6)'},
41 {'name': 'Android Tests (dbg) (L Nexus7.2)'},
42 {'name': 'Android Tests (dbg) (L Nexus9)'},
43 {
44 'name': 'Android GN',
45 'recipe': 'chromium_gn',
46 'slavebuilddir': 'android_gn',
47 },
48 {
49 'name': 'Android GN (dbg)',
50 'recipe': 'chromium_gn',
51 'slavebuilddir': 'android_gn',
52 },
53 ]
54
55 c['builders'].extend([
56 {
57 'name': spec['name'],
58 'factory': m_annotator.BaseFactory(spec.get('recipe',
59 'webrtc/chromium')),
60 'category': 'android',
61 'notify_on_missing': True,
62 'slavebuilddir': spec.get('slavebuilddir', 'android'),
63 } for spec in specs
64 ])
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698