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 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 'depot_tools/infra_paths', |
9 'file', | 10 'file', |
10 'depot_tools/gclient', | 11 'depot_tools/gclient', |
11 'recipe_engine/json', | 12 'recipe_engine/json', |
12 'recipe_engine/path', | 13 'recipe_engine/path', |
13 'recipe_engine/platform', | 14 'recipe_engine/platform', |
14 'recipe_engine/properties', | 15 'recipe_engine/properties', |
15 'recipe_engine/python', | 16 'recipe_engine/python', |
16 'recipe_engine/step', | 17 'recipe_engine/step', |
17 ] | 18 ] |
18 | 19 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 api.file.rmcontents('clean go bin', go_bin) | 70 api.file.rmcontents('clean go bin', go_bin) |
70 | 71 |
71 api.python( | 72 api.python( |
72 'build luci-go', go_env, | 73 'build luci-go', go_env, |
73 ['go', 'install', 'github.com/luci/luci-go/client/cmd/...']) | 74 ['go', 'install', 'github.com/luci/luci-go/client/cmd/...']) |
74 | 75 |
75 files = sorted(api.file.listdir('listing go bin', go_bin)) | 76 files = sorted(api.file.listdir('listing go bin', go_bin)) |
76 absfiles = [api.path.join(go_bin, i) for i in files] | 77 absfiles = [api.path.join(go_bin, i) for i in files] |
77 api.python( | 78 api.python( |
78 'upload go bin', | 79 'upload go bin', |
79 api.path['depot_tools'].join('upload_to_google_storage.py'), | 80 api.infra_paths['depot_tools'].join('upload_to_google_storage.py'), |
80 ['-b', 'chromium-luci'] + absfiles) | 81 ['-b', 'chromium-luci'] + absfiles) |
81 for name, abspath in zip(files, absfiles): | 82 for name, abspath in zip(files, absfiles): |
82 sha1 = api.file.read( | 83 sha1 = api.file.read( |
83 '%s sha1' % str(name), abspath + '.sha1', | 84 '%s sha1' % str(name), abspath + '.sha1', |
84 test_data='0123456789abcdeffedcba987654321012345678') | 85 test_data='0123456789abcdeffedcba987654321012345678') |
85 api.step.active_result.presentation.step_text = sha1 | 86 api.step.active_result.presentation.step_text = sha1 |
86 | 87 |
87 | 88 |
88 PROPERTIES = { | 89 PROPERTIES = { |
89 'mastername': Property(), | 90 'mastername': Property(), |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 | 212 |
212 yield ( | 213 yield ( |
213 api.test('infra_swarming') + | 214 api.test('infra_swarming') + |
214 api.properties.git_scheduled( | 215 api.properties.git_scheduled( |
215 buildername='infra-continuous-32', | 216 buildername='infra-continuous-32', |
216 buildnumber=-1, | 217 buildnumber=-1, |
217 mastername='chromium.infra', | 218 mastername='chromium.infra', |
218 repository='https://chromium.googlesource.com/infra/infra', | 219 repository='https://chromium.googlesource.com/infra/infra', |
219 ) | 220 ) |
220 ) | 221 ) |
OLD | NEW |