Home | History | Annotate | Download | only in examples
      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   'recipe_engine/path',
      8   'recipe_engine/properties',
      9   'recipe_engine/step',
     10   'skia_swarming',
     11 ]
     12 
     13 
     14 def RunSteps(api):
     15   api.skia_swarming.setup('mydir', swarming_rev='abc123')
     16   api.skia_swarming.create_isolated_gen_json(
     17       'isolate_path', 'isolate_dir', 'linux', 'task', {'myvar': 'myval'},
     18       blacklist=['*.pyc'])
     19   tasks_to_hashes = api.skia_swarming.batcharchive(targets=[
     20       'task-%s' % num for num in range(5)])
     21   tasks = api.skia_swarming.trigger_swarming_tasks(
     22       tasks_to_hashes, dimensions={'os': 'Linux'}, extra_args=['--extra'])
     23   for t in tasks:
     24     api.skia_swarming.collect_swarming_task(t)
     25 
     26 
     27 def GenTests(api):
     28   yield (
     29       api.test('test') +
     30       api.properties(revision='abc123')
     31   )
     32