diff options
author | 2016-10-05 06:00:26 -0700 | |
---|---|---|
committer | 2016-10-05 06:00:26 -0700 | |
commit | 93408df16e742f4e4cf0338beb189dca78196992 (patch) | |
tree | e1689838d9aab68fa8973b59de69e0652137047e /infra/bots/recipes/swarm_presubmit.py | |
parent | e47ae2998c1cf944db5743a416583dd0f042b6d9 (diff) |
Add swarm_presubmit recipe
This allows us to add a Housekeeper-PerCommit-Presubmit bot/trybot
BUG=skia:5823
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2392663004
Review-Url: https://codereview.chromium.org/2392663004
Diffstat (limited to 'infra/bots/recipes/swarm_presubmit.py')
-rw-r--r-- | infra/bots/recipes/swarm_presubmit.py | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/infra/bots/recipes/swarm_presubmit.py b/infra/bots/recipes/swarm_presubmit.py new file mode 100644 index 0000000000..30155a2cd6 --- /dev/null +++ b/infra/bots/recipes/swarm_presubmit.py @@ -0,0 +1,35 @@ +# Copyright 2016 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. + + +# Recipe which runs the Skia presubmit. + + +DEPS = [ + 'core', + 'recipe_engine/properties', + 'recipe_engine/step', + 'vars', +] + + +def RunSteps(api): + api.vars.setup() + api.core.checkout_steps() + api.step('presubmit', + cmd=['git', 'cl', 'presubmit', '--force'], + cwd=api.vars.skia_dir) + + +def GenTests(api): + yield ( + api.test('presubmit') + + api.properties(buildername='Housekeeper-PerCommit-Presubmit', + mastername='client.skia.fyi', + slavename='dummy-slave', + buildnumber=5, + revision='abc123', + path_config='kitchen', + swarm_out_dir='[SWARM_OUT_DIR]') + ) |