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

Unified 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: Rebased, removed video_engine_tests Created 7 years 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 side-by-side diff with in-line comments
Download patch
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
« no previous file with comments | « scripts/slave/recipe_modules/webrtc/chromium_config.py ('k') | scripts/slave/recipe_modules/webrtc/config.expected/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698