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

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

Issue 2355483004: Add CIPD GAE SDK recipe module and packager. (Closed)
Patch Set: pylint Created 4 years, 2 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..fc738102a307b595e1b4cdba7a061a4d74a51035
--- /dev/null
+++ b/scripts/slave/recipe_modules/gae_sdk/example.py
@@ -0,0 +1,37 @@
+# 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',
+ 'recipe_engine/python',
+]
+
+
+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:
+ api.python.failing_step('Failed to fetch', 'No %s package for %s / %s' % (
+ plat, api.platform.name, api.platform.bits))
+
+
+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))
« no previous file with comments | « scripts/slave/recipe_modules/gae_sdk/api.py ('k') | scripts/slave/recipe_modules/gae_sdk/example.expected/linux.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698