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

Unified Diff: scripts/slave/recipe_modules/webrtc/gclient_config.py

Issue 75163006: WebRTC Android APK trybot recipe (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Addressed comments and refactored 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 side-by-side diff with in-line comments
Download patch
Index: scripts/slave/recipe_modules/webrtc/gclient_config.py
diff --git a/scripts/slave/recipe_modules/webrtc/gclient_config.py b/scripts/slave/recipe_modules/webrtc/gclient_config.py
new file mode 100644
index 0000000000000000000000000000000000000000..5f29a9f879af6217d9ed84d985e00c19ca44a8e3
--- /dev/null
+++ b/scripts/slave/recipe_modules/webrtc/gclient_config.py
@@ -0,0 +1,37 @@
+# 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 RECIPE_MODULES.gclient import CONFIG_CTX
+from slave.recipe_config import BadConf
+from slave.recipe_modules.gclient.config import ChromeSvnSubURL,\
+ ChromiumSvnSubURL
+
+
+@CONFIG_CTX(includes=['chromium', '_webrtc_additional_solutions'])
+def webrtc_android_apk_try_builder(c):
+ c.target_os = ['android']
+
+ c.solutions[0].custom_deps['src/third_party/webrtc'] = (
+ 'http://webrtc.googlecode.com/svn/trunk/webrtc')
kjellander_chromium 2013/11/20 14:29:16 I don't have a good way of getting the revision at
iannucci 2013/11/21 00:33:59 If you look in DEPS, for webkit we have a webkit_t
kjellander_chromium 2013/11/22 12:49:09 It's correct we have a webrtc_revision variable, b
+
+
+@CONFIG_CTX()
+def _webrtc_additional_solutions(c):
+ """Helper config for loading additional solutions.
+
+ The webrtc-limited solution contains non-redistributable code.
+ The webrtc.DEPS solution pulls in additional DEPS for building Android tests
+ and running special test setups.
+ """
+ if c.GIT_MODE:
+ raise BadConf('WebRTC only supports svn')
+
+ s = c.solutions.add()
+ s.name = 'webrtc-limited'
+ s.url = ChromeSvnSubURL(c, 'chrome-internal', 'trunk', 'webrtc-limited')
+
+ s = c.solutions.add()
+ s.name = 'webrtc.DEPS'
+ s.url = ChromiumSvnSubURL(c, 'chrome', 'trunk', 'deps', 'third_party',
+ 'webrtc', 'webrtc.DEPS')
iannucci 2013/11/21 00:33:59 Why not just put this in the other method?
kjellander_chromium 2013/11/22 12:49:09 I plan to use it for all our "normal" bots later o

Powered by Google App Engine
This is Rietveld 408576698