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

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

Issue 2041743002: Add sync_submodules builders on master.chromium.infra. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Test expectations Created 4 years, 6 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/sync_submodules.py
diff --git a/scripts/slave/recipes/infra/sync_submodules.py b/scripts/slave/recipes/infra/sync_submodules.py
new file mode 100644
index 0000000000000000000000000000000000000000..0777c86040728eed09c406b5deae90854ccc2ce0
--- /dev/null
+++ b/scripts/slave/recipes/infra/sync_submodules.py
@@ -0,0 +1,22 @@
+# 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.
+
+DEPS = [
+ 'sync_submodules',
+ 'recipe_engine/properties',
+]
+
+
+DEFAULT_SOURCE_REPO = 'https://chromium.googlesource.com/chromium/src'
+
+
+def RunSteps(api):
+ source_repo = api.properties.get('source_repo', DEFAULT_SOURCE_REPO)
+ dest_repo = api.properties.get('dest_repo', source_repo + '/codesearch')
+
+ api.sync_submodules(source_repo, dest_repo)
+
+
+def GenTests(api):
+ yield api.test('basic')
« no previous file with comments | « masters/master.chromium.infra/slaves.cfg ('k') | scripts/slave/recipes/infra/sync_submodules.expected/basic.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698