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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 DEPS = [
6 'bot_update',
7 'chromium',
8 ]
9
10
11 BUILDERS = {
12 'chromium.mojo': {
13 'builders': {
14 'Chromium Mojo Linux': {
15 'chromium_config_kwargs': {
16 'BUILD_CONFIG': 'Release',
17 'TARGET_PLATFORM': 'linux',
18 },
19 },
20 'Chromium Mojo Mac': {
21 'chromium_config_kwargs': {
22 'BUILD_CONFIG': 'Release',
23 'TARGET_PLATFORM': 'mac',
24 },
25 },
26 'Chromium Mojo Win': {
27 'chromium_config_kwargs': {
28 'BUILD_CONFIG': 'Release',
29 'TARGET_PLATFORM': 'win',
30 },
31 },
32 },
33 },
34 }
35
36 def GenSteps(api):
37 buildername, bot_config = api.chromium.configure_bot(BUILDERS, ['gn'])
38
39 api.bot_update.ensure_checkout(force=True,
40 patch_root=bot_config.get('root_override'))
41
42 api.chromium.runhooks()
43
44 # 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
45 is_windows = ('Win' in buildername or 'win' in buildername)
46 api.chromium.run_gn(use_goma=not is_windows)
47 if is_windows:
48 api.chromium.c.compile_py.compiler = None
49 api.chromium.c.compile_py.goma_dir = None
50
51 api.chromium.compile(targets=['html_viewer_unittests'])
52
53 api.chromium.runtest('html_viewer_unittests')
54
55
56 def GenTests(api):
57 for test in api.chromium.gen_tests_for_builders(BUILDERS):
58 yield test
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698