| 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 |
DEPS = [ |
| 7 |
'checkout', |
| 8 |
'recipe_engine/file', |
| 9 |
'recipe_engine/path', |
| 10 |
'recipe_engine/platform', |
| 11 |
'recipe_engine/properties', |
| 12 |
'run', |
| 13 |
'vars', |
| 14 |
] |
| 15 |
|
| 16 |
|
| 17 |
def RunSteps(api): |
| 18 |
api.vars.setup() |
| 19 |
|
| 20 |
bot_update = True |
| 21 |
if 'NoDEPS' in api.properties['buildername']: |
| 22 |
bot_update = False |
| 23 |
|
| 24 |
checkout_root = api.checkout.default_checkout_root |
| 25 |
|
| 26 |
if bot_update: |
| 27 |
api.checkout.bot_update( |
| 28 |
checkout_root=checkout_root) |
| 29 |
else: |
| 30 |
api.checkout.git(checkout_root=api.path.start_dir) |
| 31 |
api.file.ensure_directory('makedirs tmp_dir', api.vars.tmp_dir) |
| 32 |
|
| 33 |
|
| 34 |
def GenTests(api): |
| 35 |
|
| 36 |
builder = 'Build-Debian10-Clang-x86_64-Release-NoDEPS' |
| 37 |
yield ( |
| 38 |
api.test(builder) + |
| 39 |
api.properties(buildername=builder, |
| 40 |
repository='https://skia.googlesource.com/skia.git', |
| 41 |
revision='abc123', |
| 42 |
path_config='kitchen', |
| 43 |
swarm_out_dir='[SWARM_OUT_DIR]', |
| 44 |
patch_issue=456789, |
| 45 |
patch_set=12, |
| 46 |
patch_ref='refs/changes/89/456789/12', |
| 47 |
patch_repo='https://skia.googlesource.com/skia.git', |
| 48 |
patch_storage='gerrit') + |
| 49 |
api.path.exists(api.path.start_dir.joinpath('skp_output')) |
| 50 |
) |
| 51 |
|
| 52 |
buildername = 'Build-Debian10-Clang-x86_64-Release' |
| 53 |
yield ( |
| 54 |
api.test('cross_repo_trybot') + |
| 55 |
api.properties( |
| 56 |
repository='https://skia.googlesource.com/parent_repo.git', |
| 57 |
buildername=buildername, |
| 58 |
path_config='kitchen', |
| 59 |
swarm_out_dir='[SWARM_OUT_DIR]', |
| 60 |
revision='abc123', |
| 61 |
patch_issue=456789, |
| 62 |
patch_set=12, |
| 63 |
patch_ref='refs/changes/89/456789/12', |
| 64 |
patch_repo='https://skia.googlesource.com/skia.git', |
| 65 |
patch_storage='gerrit') |
| 66 |
) |
| 67 |
yield ( |
| 68 |
api.test('trybot') + |
| 69 |
api.properties(buildername=buildername, |
| 70 |
repository='https://skia.googlesource.com/skia.git', |
| 71 |
revision='abc123', |
| 72 |
path_config='kitchen', |
| 73 |
patch_issue=456789, |
| 74 |
patch_set=12, |
| 75 |
patch_ref='refs/changes/89/456789/12', |
| 76 |
patch_repo='https://skia.googlesource.com/skia.git', |
| 77 |
patch_storage='gerrit', |
| 78 |
swarm_out_dir='[SWARM_OUT_DIR]') |
| 79 |
) |