Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1175)

Unified Diff: scripts/slave/recipes/infra/recipe_simulation.py

Issue 1575833003: Add recipe for testing recipe simulation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: argh Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: scripts/slave/recipes/infra/recipe_simulation.py
diff --git a/scripts/slave/recipes/infra/recipe_simulation.py b/scripts/slave/recipes/infra/recipe_simulation.py
new file mode 100644
index 0000000000000000000000000000000000000000..8687765115f6465ec6df79a4db27e4cd4cd9c6b0
--- /dev/null
+++ b/scripts/slave/recipes/infra/recipe_simulation.py
@@ -0,0 +1,31 @@
+# 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.
+"""A continious builder for build repo which simulates recipes."""
+
+DEPS = [
+ 'bot_update',
+ 'gclient',
+ 'recipe_engine/path',
+ 'recipe_engine/properties',
+ 'recipe_engine/step',
+]
+
+
+def RunSteps(api):
+ api.gclient.set_config('build')
+ api.bot_update.ensure_checkout(force=True)
+ recipes_py = api.path['checkout'].join('scripts', 'slave', 'recipes.py')
+ api.step('recipe fetch deps', [recipes_py, 'fetch'])
+ api.step('recipe simulation test', [recipes_py, 'simulation_test'])
+
+
+def GenTests(api):
+ yield (
+ api.test('normal') +
+ api.properties.generic(
+ mastername='chromium.tools.build',
+ buildername='recipe simulation tester',
+ revision='deadbeaf',
+ )
+ )
« no previous file with comments | « masters/master.chromium.tools.build/builders.pyl ('k') | scripts/slave/recipes/infra/recipe_simulation.expected/normal.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698