mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
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>
This commit is contained in:
@@ -135,15 +135,15 @@ the depot_tools repo.
|
||||
|
||||
#### **class [DepotToolsApi](/recipes/recipe_modules/depot_tools/api.py#12)([RecipeApi][recipe_engine/wkt/RecipeApi]):**
|
||||
|
||||
  **@property**<br>— **def [cros\_path](/recipes/recipe_modules/depot_tools/api.py#30)(self):**
|
||||
  **@property**<br>— **def [cros\_path](/recipes/recipe_modules/depot_tools/api.py#34)(self):**
|
||||
|
||||
  **@property**<br>— **def [download\_from\_google\_storage\_path](/recipes/recipe_modules/depot_tools/api.py#17)(self):**
|
||||
|
||||
  **@property**<br>— **def [gn\_py\_path](/recipes/recipe_modules/depot_tools/api.py#34)(self):**
|
||||
  **@property**<br>— **def [gn\_py\_path](/recipes/recipe_modules/depot_tools/api.py#38)(self):**
|
||||
|
||||
  **@property**<br>— **def [gsutil\_py\_path](/recipes/recipe_modules/depot_tools/api.py#40)(self):**
|
||||
  **@property**<br>— **def [gsutil\_py\_path](/recipes/recipe_modules/depot_tools/api.py#44)(self):**
|
||||
|
||||
  **@contextlib.contextmanager**<br>— **def [on\_path](/recipes/recipe_modules/depot_tools/api.py#48)(self):**
|
||||
  **@contextlib.contextmanager**<br>— **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
|
||||
```
|
||||
|
||||
  **@property**<br>— **def [presubmit\_support\_py\_path](/recipes/recipe_modules/depot_tools/api.py#44)(self):**
|
||||
  **@property**<br>— **def [presubmit\_support\_py\_path](/recipes/recipe_modules/depot_tools/api.py#48)(self):**
|
||||
|
||||
  **@property**<br>— **def [root](/recipes/recipe_modules/depot_tools/api.py#25)(self):**
|
||||
  **@property**<br>— **def [roll\_downstream\_gcs\_deps\_path](/recipes/recipe_modules/depot_tools/api.py#25)(self):**
|
||||
|
||||
  **@property**<br>— **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(
|
||||
|
||||
Reference in New Issue
Block a user