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

Side by Side Diff: scripts/slave/recipes/blimp/integration.py

Issue 2415963004: Fix compile on the Blimp Client Engine Integration bot (Closed)
Patch Set: nit 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 unified diff | Download patch
« no previous file with comments | « no previous file | scripts/slave/recipes/blimp/integration.expected/Blimp_Android_Tester_test_pass.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 from recipe_engine import recipe_api 5 from recipe_engine import recipe_api
6 from recipe_engine.recipe_api import Property 6 from recipe_engine.recipe_api import Property
7 from recipe_engine.types import freeze 7 from recipe_engine.types import freeze
8 8
9 DEPS = [ 9 DEPS = [
10 'chromium', 10 'chromium',
(...skipping 21 matching lines...) Expand all
32 'gclient_apply_config': 'android', 32 'gclient_apply_config': 'android',
33 'gclient_config': 'chromium', 33 'gclient_config': 'chromium',
34 'target': 'Debug', 34 'target': 'Debug',
35 }, 35 },
36 }, 36 },
37 }) 37 })
38 38
39 REPO_URL = 'https://chromium.googlesource.com/chromium/src.git' 39 REPO_URL = 'https://chromium.googlesource.com/chromium/src.git'
40 40
41 def RunSteps(api): 41 def RunSteps(api):
42 android_build = api.path['slave_build'].join('src', 'out-android', 'Debug')
43 linux_build = api.path['slave_build'].join('src', 'out-linux', 'Debug')
44 mastername = api.properties.get('mastername') 42 mastername = api.properties.get('mastername')
45 buildername = api.properties.get('buildername') 43 buildername = api.properties.get('buildername')
46 builder = BUILDERS[mastername][buildername] 44 builder = BUILDERS[mastername][buildername]
45 api.chromium.set_config('chromium')
47 api.chromium_android.configure_from_properties( 46 api.chromium_android.configure_from_properties(
48 builder['config'], 47 builder['config'],
49 REPO_NAME='src', 48 REPO_NAME='src',
50 REPO_URL=REPO_URL, 49 REPO_URL=REPO_URL,
51 INTERNAL=False, 50 INTERNAL=False,
52 BUILD_CONFIG=builder['target']) 51 BUILD_CONFIG=builder['target'])
53 52
54 api.chromium.set_config('chromium')
55 api.gclient.set_config(builder['gclient_config']) 53 api.gclient.set_config(builder['gclient_config'])
56 api.gclient.apply_config(builder['gclient_apply_config']) 54 api.gclient.apply_config(builder['gclient_apply_config'])
57 api.bot_update.ensure_checkout() 55 api.bot_update.ensure_checkout()
58 api.chromium.ensure_goma() 56 api.chromium.ensure_goma()
59 api.chromium_android.clean_local_files() 57 api.chromium_android.clean_local_files()
60 api.chromium.runhooks() 58 api.chromium.runhooks()
61 59
60 android_build = api.path['checkout'].join(
61 'out-android', api.chromium.c.build_config_fs)
62 linux_build = api.path['checkout'].join(
63 'out-linux', api.chromium.c.build_config_fs)
64
62 api.chromium.run_mb(mastername=mastername, 65 api.chromium.run_mb(mastername=mastername,
63 buildername=buildername, 66 buildername=buildername,
64 build_dir=linux_build, 67 build_dir=linux_build,
65 phase='engine') 68 phase='engine')
66 api.chromium.compile(targets=['blimp'], 69 api.chromium.compile(targets=['blimp'],
67 out_dir=linux_build) 70 out_dir=linux_build)
68 api.chromium.run_mb(mastername=mastername, 71 api.chromium.run_mb(mastername=mastername,
69 buildername=buildername, 72 buildername=buildername,
70 build_dir=android_build, 73 build_dir=android_build,
71 phase='client') 74 phase='client')
72 api.chromium.compile(targets=['blimp', 'chrome_public_apk'], 75 api.chromium.compile(targets=['blimp', 'chrome_public_apk'],
73 out_dir=android_build) 76 out_dir=android_build)
74 77
75 78
76 def GenTests(api): 79 def GenTests(api):
77 sanitize = lambda s: ''.join(c if c.isalnum() else '_' for c in s) 80 sanitize = lambda s: ''.join(c if c.isalnum() else '_' for c in s)
78 81
79 yield ( 82 yield (
80 api.test('%s_test_pass' % sanitize('Blimp Android Tester')) + 83 api.test('%s_test_pass' % sanitize('Blimp Client Engine Integration')) +
81 api.properties.generic( 84 api.properties.generic(
82 buildername='Blimp Client Engine Integration', 85 buildername='Blimp Client Engine Integration',
83 mastername='chromium.fyi') 86 mastername='chromium.fyi')
84 ) 87 )
OLDNEW
« no previous file with comments | « no previous file | scripts/slave/recipes/blimp/integration.expected/Blimp_Android_Tester_test_pass.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698