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

Unified Diff: scripts/slave/recipes/chromium_clang_upload.py

Issue 1688043002: Add chromium_clang_upload bot for Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: . Created 4 years, 10 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/chromium_clang_upload.py
diff --git a/scripts/slave/recipes/chromium_clang_upload.py b/scripts/slave/recipes/chromium_clang_upload.py
new file mode 100644
index 0000000000000000000000000000000000000000..9c1ee40c1842c959b3a87a649468a81fef8674d2
--- /dev/null
+++ b/scripts/slave/recipes/chromium_clang_upload.py
@@ -0,0 +1,58 @@
+# 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',
+ 'file',
+ 'gsutil',
+ 'recipe_engine/path',
+ 'recipe_engine/platform',
+ 'recipe_engine/properties',
+ 'recipe_engine/python',
+ 'recipe_engine/step',
+]
+
+
+BUILDERS = freeze({
+ 'tryserver.chromium.linux': {
+ 'builders': {
+ 'linux_chromium_clang_upload': {
+ 'chromium_config_kwargs': {
+ 'BUILD_CONFIG': 'Release',
+ 'TARGET_PLATFORM': 'linux',
+ 'TARGET_BITS': 64,
+ },
+
+ # We need this to build the Clang toolchain
+ # with proper AddressSanitizer prebuilts for
+ # Chrome on Android.
+ 'gclient_apply_config': ['android'],
+ },
+ },
+ },
+})
+
+
+def RunSteps(api):
+ mastername = api.m.properties['mastername']
+ buildername, bot_config = api.chromium.configure_bot(BUILDERS,
+ ['mb'])
+
+ api.bot_update.ensure_checkout(
+ force=True, patch_root=bot_config.get('root_override'))
+
+ api.chromium.runhooks()
+
+ api.chromium.run_mb(mastername, buildername)
+
+ api.python(
+ 'package clang',
+ api.path['checkout'].join('tools', 'clang', 'scripts', 'package.py'))
+
Nico 2016/02/11 00:39:53 nit: style guide says two blank lines between topl
krasin1 2016/02/11 00:46:39 Done.
+def GenTests(api):
+ for test in api.chromium.gen_tests_for_builders(BUILDERS):
+ yield test

Powered by Google App Engine
This is Rietveld 408576698