dec4c0b298
`example.py` is going away; examples folder can now hold multiple example recipes. R=borenet@google.com Bug: skia: Change-Id: Ib28910987342217bc52040d4d966444174ce27a3 Reviewed-on: https://skia-review.googlesource.com/18432 Commit-Queue: Eric Boren <borenet@google.com> Reviewed-by: Eric Boren <borenet@google.com>
32 lines
895 B
Python
32 lines
895 B
Python
# Copyright 2017 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.
|
|
|
|
|
|
DEPS = [
|
|
'recipe_engine/path',
|
|
'recipe_engine/properties',
|
|
'recipe_engine/step',
|
|
'skia_swarming',
|
|
]
|
|
|
|
|
|
def RunSteps(api):
|
|
api.skia_swarming.setup('mydir', swarming_rev='abc123')
|
|
api.skia_swarming.create_isolated_gen_json(
|
|
'isolate_path', 'isolate_dir', 'linux', 'task', {'myvar': 'myval'},
|
|
blacklist=['*.pyc'])
|
|
tasks_to_hashes = api.skia_swarming.batcharchive(targets=[
|
|
'task-%s' % num for num in range(5)])
|
|
tasks = api.skia_swarming.trigger_swarming_tasks(
|
|
tasks_to_hashes, dimensions={'os': 'Linux'}, extra_args=['--extra'])
|
|
for t in tasks:
|
|
api.skia_swarming.collect_swarming_task(t)
|
|
|
|
|
|
def GenTests(api):
|
|
yield (
|
|
api.test('test') +
|
|
api.properties(revision='abc123')
|
|
)
|