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