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

Side by Side Diff: scripts/slave/recipe_modules/emulator/example.py

Issue 2269263002: Make all the rest of the recipes explicitly specify GIT_MODE (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Rebase Created 4 years, 4 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
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 'depot_tools/bot_update', 10 'depot_tools/bot_update',
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 def RunSteps(api, mastername, buildername): 46 def RunSteps(api, mastername, buildername):
47 builder = BUILDERS[mastername][buildername] 47 builder = BUILDERS[mastername][buildername]
48 api.chromium_android.configure_from_properties( 48 api.chromium_android.configure_from_properties(
49 builder['config'], 49 builder['config'],
50 REPO_NAME='src', 50 REPO_NAME='src',
51 REPO_URL=REPO_URL, 51 REPO_URL=REPO_URL,
52 INTERNAL=False, 52 INTERNAL=False,
53 BUILD_CONFIG=builder['target']) 53 BUILD_CONFIG=builder['target'])
54 54
55 api.emulator.set_config('base_config') 55 api.emulator.set_config('base_config')
56 api.gclient.set_config('chromium') 56 api.gclient.set_config('chromium', GIT_MODE=True)
57 api.gclient.apply_config('android') 57 api.gclient.apply_config('android')
58 58
59 api.bot_update.ensure_checkout() 59 api.bot_update.ensure_checkout()
60 api.chromium.runhooks() 60 api.chromium.runhooks()
61 61
62 api.emulator.install_emulator_deps(api_level=builder.get('api_level')) 62 api.emulator.install_emulator_deps(api_level=builder.get('api_level'))
63 63
64 provision_settings = builder.get('provision_provision_settings', {}) 64 provision_settings = builder.get('provision_provision_settings', {})
65 65
66 with api.emulator.launch_emulator( 66 with api.emulator.launch_emulator(
(...skipping 11 matching lines...) Expand all
78 sanitize = lambda s: ''.join(c if c.isalnum() else '_' for c in s) 78 sanitize = lambda s: ''.join(c if c.isalnum() else '_' for c in s)
79 79
80 for mastername in BUILDERS: 80 for mastername in BUILDERS:
81 master = BUILDERS[mastername] 81 master = BUILDERS[mastername]
82 for buildername in master: 82 for buildername in master:
83 yield ( 83 yield (
84 api.test('%s_test_basic' % sanitize(buildername)) + 84 api.test('%s_test_basic' % sanitize(buildername)) +
85 api.properties.generic( 85 api.properties.generic(
86 buildername=buildername, 86 buildername=buildername,
87 mastername=mastername)) 87 mastername=mastername))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698