84ae6410b9
The go_deps asset is almost two months old... Bug: skia: Change-Id: I3910d1812a3c8ec4b599e959b76f8d60202b877a Reviewed-on: https://skia-review.googlesource.com/157425 Commit-Queue: Eric Boren <borenet@google.com> Reviewed-by: Ravi Mistry <rmistry@google.com>
42 lines
1.1 KiB
Python
42 lines
1.1 KiB
Python
# Copyright 2018 The Chromium Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
|
|
"""Recipe for updating the go_deps asset."""
|
|
|
|
|
|
DEPS = [
|
|
'checkout',
|
|
'infra',
|
|
'recipe_engine/context',
|
|
'recipe_engine/properties',
|
|
'recipe_engine/python',
|
|
'run',
|
|
'vars',
|
|
]
|
|
|
|
|
|
def RunSteps(api):
|
|
api.vars.setup()
|
|
|
|
checkout_root = api.checkout.default_checkout_root
|
|
api.checkout.bot_update(checkout_root=checkout_root)
|
|
|
|
skia_dir = checkout_root.join('skia')
|
|
with api.context(cwd=skia_dir, env=api.infra.go_env):
|
|
script = skia_dir.join('infra', 'bots', 'update_go_deps.py')
|
|
api.run(api.python, 'Update Asset', script=script)
|
|
|
|
|
|
def GenTests(api):
|
|
builder = 'Housekeeper-Nightly-UpdateGoDEPS'
|
|
yield (
|
|
api.test(builder) +
|
|
api.properties(buildername=builder,
|
|
repository='https://skia.googlesource.com/skia.git',
|
|
revision='abc123',
|
|
path_config='kitchen',
|
|
swarm_out_dir='[SWARM_OUT_DIR]')
|
|
)
|