Index: recipes/recipes/recipes_py_continuous.py |
diff --git a/recipes/recipes/recipes_py_continuous.py b/recipes/recipes/recipes_py_continuous.py |
new file mode 100644 |
index 0000000000000000000000000000000000000000..aaca5893042f0eed1c606973a156a681e6805d76 |
--- /dev/null |
+++ b/recipes/recipes/recipes_py_continuous.py |
@@ -0,0 +1,43 @@ |
+# 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. |
+ |
+from recipe_engine.recipe_api import Property |
+ |
+DEPS = [ |
+ 'build/cipd', |
+ 'depot_tools/bot_update', |
+ 'depot_tools/gclient', |
+ 'recipe_engine/path', |
+ 'recipe_engine/properties', |
+] |
+ |
+ |
+PROPERTIES = { |
+ 'mastername': Property(default=''), |
+ 'buildername': Property(default=''), |
+ 'buildnumber': Property(default=-1, kind=int), |
+} |
+ |
+def RunSteps(api, mastername, buildername, buildnumber): |
+ api.cipd.set_service_account_credentials( |
+ api.cipd.default_bot_service_account_credentials) |
+ |
+ api.gclient.set_config('recipes_py_bare') |
+ bot_update_step = api.bot_update.ensure_checkout(force=True) |
+ |
+ tags = { |
+ 'buildbot_build' : '%s/%s/%s' % (mastername, buildername, buildnumber), |
+ 'git_repository' : api.gclient.c.solutions[0].url, |
+ 'git_revision' : bot_update_step.presentation.properties['got_revision'], |
+ } |
+ |
+ api.cipd.install_client() |
+ api.cipd.create( |
+ api.path['checkout'].join('infra', 'cipd', 'recipes-py.yaml'), |
+ refs=['latest'], |
+ tags=tags) |
+ |
+ |
+def GenTests(api): |
+ yield api.test('basic') + api.properties(path_config='kitchen') |