Chromium Code Reviews| Index: scripts/slave/recipe_modules/webrtc/config.py |
| diff --git a/scripts/slave/recipe_modules/webrtc/config.py b/scripts/slave/recipe_modules/webrtc/config.py |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4e241e98d37ae5bad5f57a034e546e58937c2ab4 |
| --- /dev/null |
| +++ b/scripts/slave/recipe_modules/webrtc/config.py |
| @@ -0,0 +1,49 @@ |
| +# Copyright 2013 The Chromium Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +from slave.recipe_config import config_item_context, ConfigGroup |
| +from slave.recipe_config import Single, Static |
| +from slave.recipe_config_types import Path |
| + |
| + |
| +def BaseConfig(ANDROID_APK=True, **_kwargs): |
| + return ConfigGroup( |
| + ANDROID_APK = Static(bool(ANDROID_APK)), |
| + |
| + 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)
|
| + patch_root_dir = Single(Path, required=False, empty_val=Path('[CHECKOUT]')), |
| + |
| + # Allow manipulating patches for try jobs. |
| + patch_path_filter_script = Single(Path, required=False), |
| + patch_path_filter = Single(basestring, required=False), |
| + patch_strip_level = Single(int, required=False, empty_val=0), |
| + ) |
| + |
| +VAR_TEST_MAP = { |
| + 'ANDROID_APK': (True, False), |
| +} |
| + |
| + |
| +def TEST_NAME_FORMAT(kwargs): |
| + name = 'webrtc' |
| + if kwargs['ANDROID_APK']: |
| + name += '-android_apk' |
| + return name |
| + |
| +config_ctx = config_item_context(BaseConfig, VAR_TEST_MAP, TEST_NAME_FORMAT) |
| + |
| + |
| +@config_ctx(is_root=True) |
| +def BASE(c): |
| + pass |
| + |
| + |
| +@config_ctx() |
| +def webrtc_android_apk_try_builder(c): |
| + """ Trybot building WebRTC native tests for Android as APKs.""" |
| + c.patch_root_dir = Path('[CHECKOUT]', 'third_party', 'webrtc') |
| + c.patch_path_filter_script = Path('[BUILD]', 'scripts', 'slave', |
| + 'patch_path_filter.py') |
| + c.patch_path_filter = 'webrtc/' |
| + c.patch_strip_level = 1 |