OLD | NEW |
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 'recipe_engine/path', | 8 'recipe_engine/path', |
9 'recipe_engine/properties', | 9 'recipe_engine/properties', |
10 ] | 10 ] |
(...skipping 16 matching lines...) Expand all Loading... |
27 clobber = True if api.properties.get('clobber') else False | 27 clobber = True if api.properties.get('clobber') else False |
28 force = True if api.properties.get('force') else False | 28 force = True if api.properties.get('force') else False |
29 no_shallow = True if api.properties.get('no_shallow') else False | 29 no_shallow = True if api.properties.get('no_shallow') else False |
30 output_manifest = api.properties.get('output_manifest', False) | 30 output_manifest = api.properties.get('output_manifest', False) |
31 with_branch_heads = api.properties.get('with_branch_heads', False) | 31 with_branch_heads = api.properties.get('with_branch_heads', False) |
32 refs = api.properties.get('refs', []) | 32 refs = api.properties.get('refs', []) |
33 oauth2 = api.properties.get('oauth2', False) | 33 oauth2 = api.properties.get('oauth2', False) |
34 root_solution_revision = api.properties.get('root_solution_revision') | 34 root_solution_revision = api.properties.get('root_solution_revision') |
35 suffix = api.properties.get('suffix') | 35 suffix = api.properties.get('suffix') |
36 gerrit_no_reset = True if api.properties.get('gerrit_no_reset') else False | 36 gerrit_no_reset = True if api.properties.get('gerrit_no_reset') else False |
37 # TODO(tandrii): remove this after transition. http://crbug.com/605563. | |
38 crbug605563 = ('TODO(TANDRII): REMOVE THIS TRANSITION TO patch_projects' | |
39 if api.properties.get('crbug605563') else None) | |
40 api.bot_update.ensure_checkout(force=force, | 37 api.bot_update.ensure_checkout(force=force, |
41 no_shallow=no_shallow, | 38 no_shallow=no_shallow, |
42 patch=patch, | 39 patch=patch, |
43 with_branch_heads=with_branch_heads, | 40 with_branch_heads=with_branch_heads, |
44 output_manifest=output_manifest, | 41 output_manifest=output_manifest, |
45 refs=refs, patch_oauth2=oauth2, | 42 refs=refs, patch_oauth2=oauth2, |
46 clobber=clobber, | 43 clobber=clobber, |
47 root_solution_revision=root_solution_revision, | 44 root_solution_revision=root_solution_revision, |
48 suffix=suffix, | 45 suffix=suffix, |
49 gerrit_no_reset=gerrit_no_reset, | 46 gerrit_no_reset=gerrit_no_reset) |
50 patch_root=crbug605563) | |
51 | 47 |
52 | 48 |
53 def GenTests(api): | 49 def GenTests(api): |
54 yield api.test('basic') + api.properties( | 50 yield api.test('basic') + api.properties( |
55 mastername='chromium.linux', | 51 mastername='chromium.linux', |
56 buildername='Linux Builder', | 52 buildername='Linux Builder', |
57 slavename='totallyaslave-m1', | 53 slavename='totallyaslave-m1', |
58 patch=False, | 54 patch=False, |
59 revision='abc' | 55 revision='abc' |
60 ) | 56 ) |
(...skipping 11 matching lines...) Expand all Loading... |
72 output_manifest=True, | 68 output_manifest=True, |
73 ) | 69 ) |
74 yield api.test('tryjob') + api.properties( | 70 yield api.test('tryjob') + api.properties( |
75 mastername='tryserver.chromium.linux', | 71 mastername='tryserver.chromium.linux', |
76 buildername='linux_rel', | 72 buildername='linux_rel', |
77 slavename='totallyaslave-c4', | 73 slavename='totallyaslave-c4', |
78 issue=12345, | 74 issue=12345, |
79 patchset=654321, | 75 patchset=654321, |
80 patch_url='http://src.chromium.org/foo/bar' | 76 patch_url='http://src.chromium.org/foo/bar' |
81 ) | 77 ) |
82 yield api.test('tryjob_crbug605563') + api.properties( | |
83 mastername='tryserver.chromium.linux', | |
84 buildername='linux_rel', | |
85 slavename='totallyaslave-c4', | |
86 issue=12345, | |
87 patchset=654321, | |
88 patch_url='http://src.chromium.org/foo/bar', | |
89 crbug605563=True, | |
90 ) | |
91 yield api.test('trychange') + api.properties( | 78 yield api.test('trychange') + api.properties( |
92 mastername='tryserver.chromium.linux', | 79 mastername='tryserver.chromium.linux', |
93 buildername='linux_rel', | 80 buildername='linux_rel', |
94 slavename='totallyaslave-c4', | 81 slavename='totallyaslave-c4', |
95 refs=['+refs/change/1/2/333'], | 82 refs=['+refs/change/1/2/333'], |
96 ) | 83 ) |
97 yield api.test('trychange_oauth2') + api.properties( | 84 yield api.test('trychange_oauth2') + api.properties( |
98 mastername='tryserver.chromium.linux', | 85 mastername='tryserver.chromium.linux', |
99 buildername='linux_rel', | 86 buildername='linux_rel', |
100 slavename='totallyaslave-c4', | 87 slavename='totallyaslave-c4', |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 buildername='linux_rel', | 159 buildername='linux_rel', |
173 slavename='totallyaslave-c4', | 160 slavename='totallyaslave-c4', |
174 issue=12345, | 161 issue=12345, |
175 patchset=654321, | 162 patchset=654321, |
176 patch_url='http://src.chromium.org/foo/bar', | 163 patch_url='http://src.chromium.org/foo/bar', |
177 patch_project='v8', | 164 patch_project='v8', |
178 revisions={'src/v8': 'abc'} | 165 revisions={'src/v8': 'abc'} |
179 ) | 166 ) |
180 yield api.test('tryjob_v8_head_by_default') + api.properties.tryserver( | 167 yield api.test('tryjob_v8_head_by_default') + api.properties.tryserver( |
181 patch_project='v8', | 168 patch_project='v8', |
182 crbug605563=True, | |
183 ) | 169 ) |
184 yield api.test('tryjob_gerrit_angle') + api.properties.tryserver_gerrit( | 170 yield api.test('tryjob_gerrit_angle') + api.properties.tryserver_gerrit( |
185 full_project_name='angle/angle', | 171 full_project_name='angle/angle', |
186 crbug605563=True, | |
187 ) | 172 ) |
OLD | NEW |