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

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

Issue 782043003: Add a new chromium.mojo master (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: add chromium_mojo recipe, refactor chromium_gn recipe Created 6 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/recipes/chromium_mojo.py
diff --git a/scripts/slave/recipes/chromium_mojo.py b/scripts/slave/recipes/chromium_mojo.py
new file mode 100644
index 0000000000000000000000000000000000000000..e8f3427e7261a1f21b16d5f640b0bc89fa24f86a
--- /dev/null
+++ b/scripts/slave/recipes/chromium_mojo.py
@@ -0,0 +1,58 @@
+# Copyright 2014 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.
+
+DEPS = [
+ 'bot_update',
+ 'chromium',
+]
+
+
+BUILDERS = {
+ 'chromium.mojo': {
+ 'builders': {
+ 'Chromium Mojo Linux': {
+ 'chromium_config_kwargs': {
+ 'BUILD_CONFIG': 'Release',
+ 'TARGET_PLATFORM': 'linux',
+ },
+ },
+ 'Chromium Mojo Mac': {
+ 'chromium_config_kwargs': {
+ 'BUILD_CONFIG': 'Release',
+ 'TARGET_PLATFORM': 'mac',
+ },
+ },
+ 'Chromium Mojo Win': {
+ 'chromium_config_kwargs': {
+ 'BUILD_CONFIG': 'Release',
+ 'TARGET_PLATFORM': 'win',
+ },
+ },
+ },
+ },
+}
+
+def GenSteps(api):
+ buildername, bot_config = api.chromium.configure_bot(BUILDERS, ['gn'])
+
+ api.bot_update.ensure_checkout(force=True,
+ patch_root=bot_config.get('root_override'))
+
+ api.chromium.runhooks()
+
+ # TODO(dpranke): goma doesn't work on windows GN builds yet.
jamesr 2014/12/10 22:32:25 interesting - we were using GN + goma on the windo
+ is_windows = ('Win' in buildername or 'win' in buildername)
+ api.chromium.run_gn(use_goma=not is_windows)
+ if is_windows:
+ api.chromium.c.compile_py.compiler = None
+ api.chromium.c.compile_py.goma_dir = None
+
+ api.chromium.compile(targets=['html_viewer_unittests'])
+
+ api.chromium.runtest('html_viewer_unittests')
+
+
+def GenTests(api):
+ for test in api.chromium.gen_tests_for_builders(BUILDERS):
+ yield test

Powered by Google App Engine
This is Rietveld 408576698