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

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

Issue 1022993003: Add manifest output to the bot_update api. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 5 years, 9 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 force = True if api.properties.get('force') else False 20 force = True if api.properties.get('force') else False
21 output_manifest = api.properties.get('output_manifest', False)
21 with_branch_heads = api.properties.get('with_branch_heads', False) 22 with_branch_heads = api.properties.get('with_branch_heads', False)
22 refs = api.properties.get('refs', []) 23 refs = api.properties.get('refs', [])
23 oauth2 = api.properties.get('oauth2', False) 24 oauth2 = api.properties.get('oauth2', False)
24 api.bot_update.ensure_checkout(force=force, 25 api.bot_update.ensure_checkout(force=force,
25 with_branch_heads=with_branch_heads, 26 with_branch_heads=with_branch_heads,
27 output_manifest=output_manifest,
26 refs=refs, patch_oauth2=oauth2) 28 refs=refs, patch_oauth2=oauth2)
27 29
28 30
29 def GenTests(api): 31 def GenTests(api):
30 yield api.test('basic') + api.properties( 32 yield api.test('basic') + api.properties(
31 mastername='chromium.linux', 33 mastername='chromium.linux',
32 buildername='Linux Builder', 34 buildername='Linux Builder',
33 slavename='totallyaslave-m1', 35 slavename='totallyaslave-m1',
34 ) 36 )
35 yield api.test('basic_with_branch_heads') + api.properties( 37 yield api.test('basic_with_branch_heads') + api.properties(
36 mastername='chromium.linux', 38 mastername='chromium.linux',
37 buildername='Linux Builder', 39 buildername='Linux Builder',
38 slavename='totallyaslave-m1', 40 slavename='totallyaslave-m1',
39 with_branch_heads=True, 41 with_branch_heads=True,
40 ) 42 )
43 yield api.test('basic_output_manifest') + api.properties(
44 mastername='chromium.linux',
45 buildername='Linux Builder',
46 slavename='totallyaslave-m1',
47 output_manifest=True,
48 )
41 yield api.test('tryjob') + api.properties( 49 yield api.test('tryjob') + api.properties(
42 mastername='tryserver.chromium.linux', 50 mastername='tryserver.chromium.linux',
43 buildername='linux_rel', 51 buildername='linux_rel',
44 slavename='totallyaslave-c4', 52 slavename='totallyaslave-c4',
45 issue=12345, 53 issue=12345,
46 patchset=654321, 54 patchset=654321,
47 patch_url='http://src.chromium.org/foo/bar' 55 patch_url='http://src.chromium.org/foo/bar'
48 ) 56 )
49 yield api.test('trychange') + api.properties( 57 yield api.test('trychange') + api.properties(
50 mastername='tryserver.chromium.linux', 58 mastername='tryserver.chromium.linux',
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 mastername='experimental', 93 mastername='experimental',
86 buildername='Experimental Builder', 94 buildername='Experimental Builder',
87 slavename='somehost', 95 slavename='somehost',
88 ) 96 )
89 yield api.test('svn_mode') + api.properties( 97 yield api.test('svn_mode') + api.properties(
90 mastername='experimental.svn', 98 mastername='experimental.svn',
91 buildername='Experimental SVN Builder', 99 buildername='Experimental SVN Builder',
92 slavename='somehost', 100 slavename='somehost',
93 force=1 101 force=1
94 ) 102 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698