OLD | NEW |
(Empty) | |
| 1 # Copyright 2016 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 which runs the Skia infra tests. |
| 7 |
| 8 |
| 9 DEPS = [ |
| 10 'core', |
| 11 'recipe_engine/path', |
| 12 'recipe_engine/properties', |
| 13 'recipe_engine/step', |
| 14 'vars', |
| 15 ] |
| 16 |
| 17 |
| 18 def RunSteps(api): |
| 19 api.vars.setup() |
| 20 api.core.checkout_steps() |
| 21 |
| 22 gopath = api.vars.checkout_root.join('gopath') |
| 23 env = {'GOPATH': gopath} |
| 24 api.step('update_go_pkgs', |
| 25 cmd=['go', 'get', '-u', 'go.skia.org/infra/...'], |
| 26 env=env) |
| 27 |
| 28 infra_tests = api.vars.skia_dir.join( |
| 29 'infra', 'bots', 'infra_tests.py') |
| 30 api.step('infra_tests', |
| 31 cmd=['python', infra_tests], |
| 32 cwd=api.vars.skia_dir, |
| 33 env=env) |
| 34 |
| 35 |
| 36 def GenTests(api): |
| 37 yield ( |
| 38 api.test('infra_tests') + |
| 39 api.properties(buildername='Housekeeper-PerCommit-InfraTests', |
| 40 mastername='client.skia.fyi', |
| 41 slavename='dummy-slave', |
| 42 buildnumber=5, |
| 43 revision='abc123', |
| 44 path_config='kitchen', |
| 45 swarm_out_dir='[SWARM_OUT_DIR]') |
| 46 ) |
OLD | NEW |