| 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..d933256f8aa11d47f502e691ae5a68821da0b1ae
|
| --- /dev/null
|
| +++ b/scripts/slave/recipe_modules/webrtc/config.py
|
| @@ -0,0 +1,43 @@
|
| +# 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)),
|
| +
|
| + patch_root_dir = Single(Path, required=False, empty_val=Path('[CHECKOUT]')),
|
| +
|
| + # Allow manipulating patches for try jobs.
|
| + patch_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()
|
| +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_filter_script = Path('[BUILD]', 'scripts', 'slave',
|
| + 'patch_path_filter.py')
|
| + c.patch_path_filter = 'webrtc/'
|
| + c.patch_strip_level = 1
|
|
|