1# Copyright 2018 The Chromium Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5 6"""Recipe for updating the go_deps asset.""" 7 8 9DEPS = [ 10 'checkout', 11 'infra', 12 'recipe_engine/context', 13 'recipe_engine/properties', 14 'recipe_engine/python', 15 'run', 16 'vars', 17] 18 19 20def RunSteps(api): 21 api.vars.setup() 22 23 checkout_root = api.checkout.default_checkout_root 24 api.checkout.bot_update(checkout_root=checkout_root) 25 26 skia_dir = checkout_root.join('skia') 27 with api.context(cwd=skia_dir, env=api.infra.go_env): 28 script = skia_dir.join('infra', 'bots', 'update_go_deps.py') 29 api.run(api.python, 'Update Asset', script=script) 30 31 32def GenTests(api): 33 builder = 'Housekeeper-Nightly-UpdateGoDEPS' 34 yield ( 35 api.test(builder) + 36 api.properties(buildername=builder, 37 repository='https://skia.googlesource.com/skia.git', 38 revision='abc123', 39 path_config='kitchen', 40 swarm_out_dir='[SWARM_OUT_DIR]') 41 ) 42