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

Unified Diff: scripts/slave/recipes/webrtc/ios_cocoapod.py

Issue 1865653002: WebRTC: Add recipe to build iOS API Framework (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 8 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/webrtc/ios_cocoapod.py
diff --git a/scripts/slave/recipes/webrtc/ios_cocoapod.py b/scripts/slave/recipes/webrtc/ios_cocoapod.py
new file mode 100644
index 0000000000000000000000000000000000000000..c48f89d9a6bef7ab49281fc26c10d09451eaafda
--- /dev/null
+++ b/scripts/slave/recipes/webrtc/ios_cocoapod.py
@@ -0,0 +1,55 @@
+# 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 = [
+ 'archive',
+ 'depot_tools/bot_update',
+ 'depot_tools/gclient',
+ 'gsutil',
+ 'ios',
+ 'recipe_engine/path',
+ 'recipe_engine/platform',
+ 'recipe_engine/properties',
+ 'recipe_engine/step',
+ 'webrtc',
+ 'zip',
+]
+
+
+def RunSteps(api):
+ api.gclient.set_config('webrtc_ios')
+
+ api.ios.host_info()
+ api.bot_update.ensure_checkout()
+ build_script = api.path['checkout'].join('webrtc', 'build', 'ios',
+ 'build_ios_framework.sh')
+ api.step('build cocoapod', ['/bin/bash', build_script])
+
+ output_dir = api.path['checkout'].join('out_ios_framework')
+ zip_out = api.path['slave_build'].join('webrtc_ios_cocoapod.zip')
+ api.zip.directory('zip', output_dir, zip_out)
+
+ api.gsutil.upload(
+ zip_out,
+ 'chromium-webrtc',
+ 'cocoapods/webrtc_ios_cocoapod.zip',
+ args=['-a', 'public-read'],
+ unauthenticated_url=True)
+
+
+def GenTests(api):
+ yield (
+ api.test('build_ok') +
+ api.properties.generic(mastername='client.webrtc.fyi',
+ buildername='iOS CocoaPod Builder',
+ slavename='slavename')
+ )
+
+ yield (
+ api.test('build_failure') +
+ api.properties.generic(mastername='client.webrtc.fyi',
+ buildername='iOS CocoaPod Builder',
+ slavename='slavename') +
+ api.step_data('build cocoapod', retcode=1)
+ )

Powered by Google App Engine
This is Rietveld 408576698