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

Side by Side Diff: scripts/slave/recipes/infra/infra_continuous.py

Issue 1719743003: WIP: Skip running tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: real-test 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 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.recipe_api import Property 5 from recipe_engine.recipe_api import Property
6 6
7 DEPS = [ 7 DEPS = [
8 'depot_tools/bot_update', 8 'depot_tools/bot_update',
9 'file', 9 'file',
10 'depot_tools/gclient', 10 'depot_tools/gclient',
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 } 92 }
93 93
94 def RunSteps(api, mastername, buildername, buildnumber): 94 def RunSteps(api, mastername, buildername, buildnumber):
95 if buildername.startswith('infra-internal-continuous'): 95 if buildername.startswith('infra-internal-continuous'):
96 project_name = 'infra_internal' 96 project_name = 'infra_internal'
97 repo_name = 'https://chrome-internal.googlesource.com/infra/infra_internal' 97 repo_name = 'https://chrome-internal.googlesource.com/infra/infra_internal'
98 elif buildername.startswith('infra-continuous'): 98 elif buildername.startswith('infra-continuous'):
99 project_name = 'infra' 99 project_name = 'infra'
100 repo_name = 'https://chromium.googlesource.com/infra/infra' 100 repo_name = 'https://chromium.googlesource.com/infra/infra'
101 else: # pragma: no cover 101 else: # pragma: no cover
102 raise ValueError( 102 api.step('maybe specify buildername in properties?', cmd=None)
103 'This recipe is not intended for builder %s. ' % buildername) 103 return
104 104
105 api.gclient.set_config(project_name) 105 api.gclient.set_config(project_name)
106 bot_update_step = api.bot_update.ensure_checkout(force=True) 106 bot_update_step = api.bot_update.ensure_checkout(force=True)
107 api.gclient.runhooks() 107 api.gclient.runhooks()
108 108
109 # Whatever is checked out by bot_update. It is usually equal to 109 # Whatever is checked out by bot_update. It is usually equal to
110 # api.properties['revision'] except when the build was triggered manually 110 # api.properties['revision'] except when the build was triggered manually
111 # ('revision' property is missing in that case). 111 # ('revision' property is missing in that case).
112 rev = bot_update_step.presentation.properties['got_revision'] 112 rev = bot_update_step.presentation.properties['got_revision']
113 113
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 213
214 yield ( 214 yield (
215 api.test('infra_swarming') + 215 api.test('infra_swarming') +
216 api.properties.git_scheduled( 216 api.properties.git_scheduled(
217 buildername='infra-continuous-32', 217 buildername='infra-continuous-32',
218 buildnumber=-1, 218 buildnumber=-1,
219 mastername='chromium.infra', 219 mastername='chromium.infra',
220 repository='https://chromium.googlesource.com/infra/infra', 220 repository='https://chromium.googlesource.com/infra/infra',
221 ) 221 )
222 ) 222 )
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698