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

Unified Diff: recipe_modules/tryserver/example.py

Issue 1642023002: depot_tools: import bot_update gclient git rietveld tryserver recipe modules (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: presubmit 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
« no previous file with comments | « recipe_modules/tryserver/api.py ('k') | recipe_modules/tryserver/example.expected/with_git_patch.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_modules/tryserver/example.py
diff --git a/recipe_modules/tryserver/example.py b/recipe_modules/tryserver/example.py
new file mode 100644
index 0000000000000000000000000000000000000000..dead670bf8d44eb3cefc5370f3b6766092d7272d
--- /dev/null
+++ b/recipe_modules/tryserver/example.py
@@ -0,0 +1,45 @@
+# Copyright 2014 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.
+
+DEPS = [
+ 'recipe_engine/path',
+ 'recipe_engine/platform',
+ 'recipe_engine/properties',
+ 'recipe_engine/python',
+ 'tryserver',
+]
+
+
+def RunSteps(api):
+ api.path['checkout'] = api.path['slave_build']
+ api.tryserver.maybe_apply_issue()
+ api.tryserver.get_files_affected_by_patch()
+
+ if api.tryserver.is_tryserver:
+ api.tryserver.set_subproject_tag('v8')
+
+ api.tryserver.set_patch_failure_tryjob_result()
+ api.tryserver.set_compile_failure_tryjob_result()
+ api.tryserver.set_test_failure_tryjob_result()
+ api.tryserver.set_invalid_test_results_tryjob_result()
+
+ with api.tryserver.set_failure_hash():
+ api.python.failing_step('fail', 'foo')
+
+
+def GenTests(api):
+ yield (api.test('with_svn_patch') +
+ api.properties(patch_url='svn://checkout.url'))
+
+ yield (api.test('with_git_patch') +
+ api.properties(
+ patch_storage='git',
+ patch_project='v8',
+ patch_repo_url='http://patch.url/',
+ patch_ref='johndoe#123.diff'))
+
+ yield (api.test('with_rietveld_patch') +
+ api.properties.tryserver())
+
+ yield (api.test('with_wrong_patch') + api.platform('win', 32))
« no previous file with comments | « recipe_modules/tryserver/api.py ('k') | recipe_modules/tryserver/example.expected/with_git_patch.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698