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

Side by Side Diff: scripts/slave/recipes/crashpad/continuous.py

Issue 2349013002: crashpad/continuous: Use bot_update. (Closed)
Patch Set: Created 4 years, 3 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/crashpad/continuous.expected/crashpad_mac_dbg.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 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 """Buildbot recipe definition for the various Crashpad continuous builders. 5 """Buildbot recipe definition for the various Crashpad continuous builders.
6 """ 6 """
7 7
8 DEPS = [ 8 DEPS = [
9 'file', 9 'file',
10 'depot_tools/bot_update',
10 'depot_tools/gclient', 11 'depot_tools/gclient',
11 'recipe_engine/path', 12 'recipe_engine/path',
12 'recipe_engine/platform', 13 'recipe_engine/platform',
13 'recipe_engine/properties', 14 'recipe_engine/properties',
14 'recipe_engine/python', 15 'recipe_engine/python',
15 'recipe_engine/step', 16 'recipe_engine/step',
16 ] 17 ]
17 18
18 19
19 def RunSteps(api): 20 def RunSteps(api):
20 """Generates the sequence of steps that will be run by the slave.""" 21 """Generates the sequence of steps that will be run by the slave."""
21 api.gclient.set_config('crashpad') 22 api.gclient.set_config('crashpad')
22 api.gclient.checkout() 23 api.bot_update.ensure_checkout()
23 24
24 # buildbot sets 'clobber' to the empty string which is falsey, check with 'in' 25 # buildbot sets 'clobber' to the empty string which is falsey, check with 'in'
25 if 'clobber' in api.properties: 26 if 'clobber' in api.properties:
26 api.file.rmtree('out', api.path['checkout'].join('out')) 27 api.file.rmtree('out', api.path['checkout'].join('out'))
27 28
28 buildername = api.properties['buildername'] 29 buildername = api.properties['buildername']
29 env = {} 30 env = {}
30 if '_x86' in buildername: 31 if '_x86' in buildername:
31 env = {'GYP_DEFINES': 'target_arch=ia32'} 32 env = {'GYP_DEFINES': 'target_arch=ia32'}
32 api.gclient.runhooks(env=env) 33 api.gclient.runhooks(env=env)
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 'crashpad_win_x64_rel', 70 'crashpad_win_x64_rel',
70 'crashpad_win_x86_dbg', 71 'crashpad_win_x86_dbg',
71 'crashpad_win_x86_rel', 72 'crashpad_win_x86_rel',
72 'crashpad_win_x86_wow64_dbg', 73 'crashpad_win_x86_wow64_dbg',
73 'crashpad_win_x86_wow64_rel', 74 'crashpad_win_x86_wow64_rel',
74 ] 75 ]
75 for t in tests: 76 for t in tests:
76 yield(api.test(t) + api.properties.generic(buildername=t)) 77 yield(api.test(t) + api.properties.generic(buildername=t))
77 yield(api.test(t + '_clobber') + 78 yield(api.test(t + '_clobber') +
78 api.properties.generic(buildername=t, clobber=True)) 79 api.properties.generic(buildername=t, clobber=True))
OLDNEW
« no previous file with comments | « no previous file | scripts/slave/recipes/crashpad/continuous.expected/crashpad_mac_dbg.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698