OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 'chromium', | 6 'chromium', |
7 'depot_tools/bot_update', | 7 'depot_tools/bot_update', |
8 'depot_tools/gclient', | 8 'depot_tools/gclient', |
9 'depot_tools/infra_paths', | |
10 'gitiles', | 9 'gitiles', |
11 'recipe_engine/generator_script', | 10 'recipe_engine/generator_script', |
12 'recipe_engine/path', | 11 'recipe_engine/path', |
13 'recipe_engine/platform', | 12 'recipe_engine/platform', |
14 'recipe_engine/properties', | 13 'recipe_engine/properties', |
15 'recipe_engine/python', | 14 'recipe_engine/python', |
16 ] | 15 ] |
17 | 16 |
18 | 17 |
19 def _CheckoutSteps(api): | 18 def _CheckoutSteps(api): |
(...skipping 10 matching lines...) Expand all Loading... |
30 which is then used to download and unpack the SDK itself. | 29 which is then used to download and unpack the SDK itself. |
31 """ | 30 """ |
32 script_content = api.gitiles.download_file( | 31 script_content = api.gitiles.download_file( |
33 'https://chromium.googlesource.com/infra/infra', | 32 'https://chromium.googlesource.com/infra/infra', |
34 'bootstrap/get_appengine.py', | 33 'bootstrap/get_appengine.py', |
35 step_name='Fetch SDK downloader', | 34 step_name='Fetch SDK downloader', |
36 # This is a commit after the latest fix to the script, | 35 # This is a commit after the latest fix to the script, |
37 # which includes retrying requests. | 36 # which includes retrying requests. |
38 branch='fd119c547fd4e56eeab77d138b0426022ae1d159') | 37 branch='fd119c547fd4e56eeab77d138b0426022ae1d159') |
39 api.python.inline('Run SDK downloader', script_content, args=['--dest=.']) | 38 api.python.inline('Run SDK downloader', script_content, args=['--dest=.']) |
40 return api.infra_paths['slave_build'].join('google_appengine') | 39 return api.path['slave_build'].join('google_appengine') |
41 | 40 |
42 | 41 |
43 def _RemoteSteps(api, app_engine_sdk_path): | 42 def _RemoteSteps(api, app_engine_sdk_path): |
44 """Runs the build steps specified in catapult_build/build_steps.py. | 43 """Runs the build steps specified in catapult_build/build_steps.py. |
45 | 44 |
46 Steps are specified in catapult repo in order to avoid multi-sided patches | 45 Steps are specified in catapult repo in order to avoid multi-sided patches |
47 when updating tests and adding/moving directories. | 46 when updating tests and adding/moving directories. |
48 | 47 |
49 This step uses the generator_script; see documentation at | 48 This step uses the generator_script; see documentation at |
50 github.com/luci/recipes-py/blob/master/recipe_modules/generator_script/api.py | 49 github.com/luci/recipes-py/blob/master/recipe_modules/generator_script/api.py |
(...skipping 30 matching lines...) Expand all Loading... |
81 buildername='windows', | 80 buildername='windows', |
82 slavename='windows_slave') + | 81 slavename='windows_slave') + |
83 api.step_data('Fetch SDK downloader', | 82 api.step_data('Fetch SDK downloader', |
84 api.gitiles.make_encoded_file( | 83 api.gitiles.make_encoded_file( |
85 '"<simulated contents of get_appengine.py>"')) + | 84 '"<simulated contents of get_appengine.py>"')) + |
86 api.generator_script( | 85 api.generator_script( |
87 'build_steps.py', | 86 'build_steps.py', |
88 {'name': 'Dashboard Tests', 'cmd': ['run_py_tests', '--no-hooks']}, | 87 {'name': 'Dashboard Tests', 'cmd': ['run_py_tests', '--no-hooks']}, |
89 ) | 88 ) |
90 ) | 89 ) |
OLD | NEW |