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

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

Issue 288843003: Let bot_update recipe api force usage of bot_update. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Rebase Created 6 years, 7 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
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 DEPS = [ 5 DEPS = [
6 'bot_update', 6 'bot_update',
7 'gclient', 7 'gclient',
8 'path', 8 'path',
9 'properties', 9 'properties',
10 ] 10 ]
11 11
12 def GenSteps(api): 12 def GenSteps(api):
13 api.gclient.use_mirror = True 13 api.gclient.use_mirror = True
14 14
15 src_cfg = api.gclient.make_config() 15 src_cfg = api.gclient.make_config()
16 soln = src_cfg.solutions.add() 16 soln = src_cfg.solutions.add()
17 soln.name = 'src' 17 soln.name = 'src'
18 soln.url = 'svn://svn.chromium.org/chrome/trunk/src' 18 soln.url = 'svn://svn.chromium.org/chrome/trunk/src'
19 api.gclient.c = src_cfg 19 api.gclient.c = src_cfg
20 yield api.bot_update.ensure_checkout() 20 force = True if api.properties.get('force') else False
21 yield api.bot_update.ensure_checkout(force=force)
21 22
22 23
23 def GenTests(api): 24 def GenTests(api):
24 yield api.test('basic') + api.properties( 25 yield api.test('basic') + api.properties(
25 mastername='chromium.linux', 26 mastername='chromium.linux',
26 buildername='Linux Builder', 27 buildername='Linux Builder',
27 slavename='totallyaslave-m1', 28 slavename='totallyaslave-m1',
28 ) 29 )
29 yield api.test('tryjob') + api.properties( 30 yield api.test('tryjob') + api.properties(
30 mastername='tryserver.chromium', 31 mastername='tryserver.chromium',
31 buildername='linux_rel', 32 buildername='linux_rel',
32 slavename='totallyaslave-c4', 33 slavename='totallyaslave-c4',
33 issue=12345, 34 issue=12345,
34 patchset=654321, 35 patchset=654321,
35 patch_url='http://src.chromium.org/foo/bar' 36 patch_url='http://src.chromium.org/foo/bar'
36 ) 37 )
38 yield api.test('forced') + api.properties(
39 mastername='experimental',
40 buildername='Experimental Builder',
41 slavename='somehost',
42 force=1
43 )
44 yield api.test('off') + api.properties(
45 mastername='experimental',
46 buildername='Experimental Builder',
47 slavename='somehost',
48 )
OLDNEW
« no previous file with comments | « scripts/slave/recipe_modules/bot_update/api.py ('k') | scripts/slave/recipe_modules/bot_update/example.expected/forced.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698