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

Side by Side Diff: scripts/slave/recipe_modules/webrtc/config.py

Issue 75163006: WebRTC Android APK trybot recipe (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
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 slave.recipe_config import config_item_context, ConfigGroup
6 from slave.recipe_config import Single, Static
7 from slave.recipe_config_types import Path
8
9
10 def BaseConfig(ANDROID_APK=True, **_kwargs):
11 return ConfigGroup(
12 ANDROID_APK = Static(bool(ANDROID_APK)),
13
14 apply_svn_patch = Single(bool, required=False, empty_val=False),
kjellander_chromium 2013/11/20 14:29:16 (this wasn't used; leftover from chromium_android)
15 patch_root_dir = Single(Path, required=False, empty_val=Path('[CHECKOUT]')),
16
17 # Allow manipulating patches for try jobs.
18 patch_path_filter_script = Single(Path, required=False),
19 patch_path_filter = Single(basestring, required=False),
20 patch_strip_level = Single(int, required=False, empty_val=0),
21 )
22
23 VAR_TEST_MAP = {
24 'ANDROID_APK': (True, False),
25 }
26
27
28 def TEST_NAME_FORMAT(kwargs):
29 name = 'webrtc'
30 if kwargs['ANDROID_APK']:
31 name += '-android_apk'
32 return name
33
34 config_ctx = config_item_context(BaseConfig, VAR_TEST_MAP, TEST_NAME_FORMAT)
35
36
37 @config_ctx(is_root=True)
38 def BASE(c):
39 pass
40
41
42 @config_ctx()
43 def webrtc_android_apk_try_builder(c):
44 """ Trybot building WebRTC native tests for Android as APKs."""
45 c.patch_root_dir = Path('[CHECKOUT]', 'third_party', 'webrtc')
46 c.patch_path_filter_script = Path('[BUILD]', 'scripts', 'slave',
47 'patch_path_filter.py')
48 c.patch_path_filter = 'webrtc/'
49 c.patch_strip_level = 1
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698