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

Unified Diff: scripts/slave/recipes/webrtc/more_configs.py

Issue 2460493002: WebRTC: Add new Linux (more configs) bots. (Closed)
Patch Set: Rebased Created 4 years, 2 months 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/recipes/webrtc/more_configs.py
diff --git a/scripts/slave/recipes/webrtc/more_configs.py b/scripts/slave/recipes/webrtc/more_configs.py
new file mode 100644
index 0000000000000000000000000000000000000000..16bcfa490cd4132fd18f6cbb0547184af54e444c
--- /dev/null
+++ b/scripts/slave/recipes/webrtc/more_configs.py
@@ -0,0 +1,77 @@
+# Copyright 2016 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_engine.types import freeze
+
+
+DEPS = [
+ 'depot_tools/bot_update',
+ 'chromium',
+ 'recipe_engine/step',
+ 'webrtc',
+]
+
+RECIPE_CONFIGS = freeze({
+ 'webrtc_minimal': {
+ 'chromium_config': 'webrtc_minimal',
+ 'gclient_config': 'webrtc',
+ },
+})
+
+BUILDERS = freeze({
+ 'client.webrtc': {
+ 'builders': {
+ 'Linux (more configs)': {
+ 'recipe_config': 'webrtc_minimal',
+ 'chromium_config_kwargs': {
+ 'BUILD_CONFIG': 'Debug',
+ 'TARGET_BITS': 64,
+ },
+ 'bot_type': 'builder',
+ 'testing': {'platform': 'linux'},
+ },
+ },
+ },
+ 'tryserver.webrtc': {
+ 'builders': {
+ 'linux_more_configs': {
+ 'recipe_config': 'webrtc_minimal',
+ 'chromium_config_kwargs': {
+ 'BUILD_CONFIG': 'Debug',
+ 'TARGET_BITS': 64,
+ },
+ 'bot_type': 'builder',
+ 'testing': {'platform': 'linux'},
+ },
+ },
+ },
+})
+
+
+def BuildSteps(api, gn_arg=None, name=None):
+ if gn_arg:
+ assert isinstance(gn_arg, basestring)
+ api.chromium.c.gn_args = [gn_arg] if gn_arg else []
+ api.chromium.run_gn(use_goma=True)
+ api.step.active_result.presentation.step_text = 'gn (%s)' % (name or gn_arg)
+ api.chromium.compile()
+
+
+def RunSteps(api):
+ webrtc = api.webrtc
+ webrtc.apply_bot_config(BUILDERS, RECIPE_CONFIGS)
+
+ api.webrtc.checkout()
+ api.chromium.ensure_goma()
+ api.chromium.runhooks()
+
+ BuildSteps(api, name='minimal')
+ BuildSteps(api, gn_arg='rtc_enable_intelligibility_enhancer=true')
+ BuildSteps(api, gn_arg='rtc_enable_protobuf=false')
+ BuildSteps(api, gn_arg='rtc_include_opus=false')
+
+
+def GenTests(api):
+ for test in api.chromium.gen_tests_for_builders(BUILDERS):
+ yield test

Powered by Google App Engine
This is Rietveld 408576698