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

Unified Diff: scripts/slave/recipe_modules/gae_sdk/example.py

Issue 2355483004: Add CIPD GAE SDK recipe module and packager. (Closed)
Patch Set: Go SDKs need architecture. Created 4 years, 3 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/recipe_modules/gae_sdk/example.py
diff --git a/scripts/slave/recipe_modules/gae_sdk/example.py b/scripts/slave/recipe_modules/gae_sdk/example.py
new file mode 100644
index 0000000000000000000000000000000000000000..10bf2e329ae6ca9fd1ae92ed7e3f7af71cb1a264
--- /dev/null
+++ b/scripts/slave/recipe_modules/gae_sdk/example.py
@@ -0,0 +1,35 @@
+# Copyright 2015 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 = [
+ 'depot_tools/cipd',
+ 'gae_sdk',
+ 'recipe_engine/path',
+ 'recipe_engine/platform',
+]
+
+
+def RunSteps(api):
+ api.cipd.install_client()
+
+ for plat in api.gae_sdk.platforms:
+ out = api.path['build'].join('gae_sdk', '%s_%s' % (plat, api.platform.name))
+ try:
+ api.gae_sdk.fetch(plat, out)
+ except api.gae_sdk.PackageNotFound as e:
+ pass
+
+
+def GenTests(api):
+ yield (
+ api.test('win') +
+ api.platform('win', 64))
+
+ yield (
+ api.test('linux') +
+ api.platform('linux', 64))
+
+ yield (
+ api.test('mac') +
+ api.platform('mac', 64))

Powered by Google App Engine
This is Rietveld 408576698