1# Copyright 2017 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 uploading skiaserve to gs://skia-public-binaries. 7 8 9DEPS = [ 10 'flavor', 11 'gsutil', 12 'recipe_engine/context', 13 'recipe_engine/file', 14 'recipe_engine/path', 15 'recipe_engine/properties', 16 'recipe_engine/step', 17 'recipe_engine/time', 18 'vars', 19] 20 21 22def RunSteps(api): 23 api.vars.setup() 24 25 if api.properties.get('patch_issue') or api.properties.get('patch_set'): 26 # Do not upload skiaserve for trybots. 27 return 28 29 src = api.vars.build_dir.join('skiaserve') 30 target_arch = api.vars.builder_cfg.get('target_arch') 31 dest = 'gs://skia-public-binaries/skiaserve/%s/%s/' % ( 32 target_arch, api.properties['revision']) 33 api.gsutil.cp('skiaserve', src, dest) 34 35 36def GenTests(api): 37 builder = 'Build-Debian9-Clang-arm-Release-Android' 38 yield ( 39 api.test('normal_bot') + 40 api.properties(buildername=builder, 41 repository='https://skia.googlesource.com/skia.git', 42 swarm_out_dir='[SWARM_OUT_DIR]', 43 revision='abc123', 44 path_config='kitchen') 45 ) 46 47 yield ( 48 api.test('trybot') + 49 api.properties(buildername=builder, 50 repository='https://skia.googlesource.com/skia.git', 51 swarm_out_dir='[SWARM_OUT_DIR]', 52 revision='abc123', 53 path_config='kitchen', 54 patch_storage='gerrit') + 55 api.properties.tryserver( 56 buildername=builder, 57 gerrit_project='skia', 58 gerrit_url='https://skia-review.googlesource.com/', 59 ) 60 ) 61