skia2/infra/bots/recipe_modules/skia_swarming/examples/full.py
Robert Iannucci dec4c0b298 Rename example.py -> examples/full.py for all modules
`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>
2017-06-02 11:40:36 +00:00

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')
)