Add roll_downstream_gcs_deps.py to depot_tools recipe module.

Change-Id: I7b8a8f8e686c89fcb5fe2d27f6b506e53a26d535
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5867087
Reviewed-by: Stephanie Kim <kimstephanie@google.com>
Commit-Queue: Josip Sokcevic <sokcevic@chromium.org>
changes/87/5867087/6
Josip Sokcevic 8 months ago committed by LUCI CQ
parent 74ec765457
commit 945cb0c0d7

@ -135,15 +135,15 @@ the depot_tools repo.
#### **class [DepotToolsApi](/recipes/recipe_modules/depot_tools/api.py#12)([RecipeApi][recipe_engine/wkt/RecipeApi]):**
&emsp; **@property**<br>&mdash; **def [cros\_path](/recipes/recipe_modules/depot_tools/api.py#30)(self):**
&emsp; **@property**<br>&mdash; **def [cros\_path](/recipes/recipe_modules/depot_tools/api.py#34)(self):**
&emsp; **@property**<br>&mdash; **def [download\_from\_google\_storage\_path](/recipes/recipe_modules/depot_tools/api.py#17)(self):**
&emsp; **@property**<br>&mdash; **def [gn\_py\_path](/recipes/recipe_modules/depot_tools/api.py#34)(self):**
&emsp; **@property**<br>&mdash; **def [gn\_py\_path](/recipes/recipe_modules/depot_tools/api.py#38)(self):**
&emsp; **@property**<br>&mdash; **def [gsutil\_py\_path](/recipes/recipe_modules/depot_tools/api.py#40)(self):**
&emsp; **@property**<br>&mdash; **def [gsutil\_py\_path](/recipes/recipe_modules/depot_tools/api.py#44)(self):**
&emsp; **@contextlib.contextmanager**<br>&mdash; **def [on\_path](/recipes/recipe_modules/depot_tools/api.py#48)(self):**
&emsp; **@contextlib.contextmanager**<br>&mdash; **def [on\_path](/recipes/recipe_modules/depot_tools/api.py#52)(self):**
Use this context manager to put depot_tools on $PATH.
@ -154,9 +154,11 @@ with api.depot_tools.on_path():
# run some steps
```
&emsp; **@property**<br>&mdash; **def [presubmit\_support\_py\_path](/recipes/recipe_modules/depot_tools/api.py#44)(self):**
&emsp; **@property**<br>&mdash; **def [presubmit\_support\_py\_path](/recipes/recipe_modules/depot_tools/api.py#48)(self):**
&emsp; **@property**<br>&mdash; **def [root](/recipes/recipe_modules/depot_tools/api.py#25)(self):**
&emsp; **@property**<br>&mdash; **def [roll\_downstream\_gcs\_deps\_path](/recipes/recipe_modules/depot_tools/api.py#25)(self):**
&emsp; **@property**<br>&mdash; **def [root](/recipes/recipe_modules/depot_tools/api.py#29)(self):**
Returns (Path): The "depot_tools" root directory.

@ -22,6 +22,10 @@ class DepotToolsApi(recipe_api.RecipeApi):
def upload_to_google_storage_path(self):
return self.repo_resource('upload_to_google_storage.py')
@property
def roll_downstream_gcs_deps_path(self):
return self.repo_resource('roll_downstream_gcs_deps.py')
@property
def root(self):
"""Returns (Path): The "depot_tools" root directory."""

@ -20,6 +20,13 @@
],
"name": "upload_to_google_storage"
},
{
"cmd": [
"ls",
"RECIPE_REPO[depot_tools]/roll_downstream_gcs_deps.py"
],
"name": "roll_downstream_gcs_deps_path"
},
{
"cmd": [
"ls",

@ -20,6 +20,13 @@
],
"name": "upload_to_google_storage"
},
{
"cmd": [
"ls",
"RECIPE_REPO[depot_tools]\\roll_downstream_gcs_deps.py"
],
"name": "roll_downstream_gcs_deps_path"
},
{
"cmd": [
"ls",

@ -24,6 +24,9 @@ def RunSteps(api):
'upload_to_google_storage',
['ls', api.depot_tools.upload_to_google_storage_path])
api.step('roll_downstream_gcs_deps_path',
['ls', api.depot_tools.roll_downstream_gcs_deps_path])
api.step('cros', ['ls', api.depot_tools.cros_path])
api.step(

Loading…
Cancel
Save