Chromium Code Reviews| Index: scripts/slave/recipes/webrtc/ios_api_framework.py |
| diff --git a/scripts/slave/recipes/webrtc/ios_api_framework.py b/scripts/slave/recipes/webrtc/ios_api_framework.py |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..19a3451875eb5de871ca28d5cfa8cf904e71026c |
| --- /dev/null |
| +++ b/scripts/slave/recipes/webrtc/ios_api_framework.py |
| @@ -0,0 +1,65 @@ |
| +# 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', |
| + 'file', |
| + 'gsutil', |
| + 'ios', |
| + 'recipe_engine/path', |
| + '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() |
| + |
| + # Clobber all out dirs to be sure to get a clean build. |
| + for out_dir in ["out_ios_arm", |
|
kjellander_chromium
2016/04/06 16:08:51
This part is new in PS#2 (the rename makes the dif
|
| + "out_ios_arm64", |
| + "out_ios_framework", |
| + "out_ios_ia32", |
| + "out_ios_libs", |
| + "out_ios_x86_64"]: |
| + api.file.rmtree('clobber %s' % out_dir, api.path['checkout'].join(out_dir)) |
| + |
| + build_script = api.path['checkout'].join('webrtc', 'build', 'ios', |
| + 'build_ios_framework.sh') |
| + api.step('build', ['/bin/bash', build_script]) |
| + |
| + output_dir = api.path['checkout'].join('out_ios_framework') |
| + zip_out = api.path['slave_build'].join('webrtc_ios_api_framework.zip') |
| + api.zip.directory('zip', output_dir, zip_out) |
| + |
| + api.gsutil.upload( |
| + zip_out, |
| + 'chromium-webrtc', |
| + 'ios_api_framework/webrtc_ios_api_framework.zip', |
|
kjellander_chromium
2016/04/06 16:08:51
I changed cocoapod -> api_framwork everywhere.
|
| + args=['-a', 'public-read'], |
| + unauthenticated_url=True) |
| + |
| + |
| +def GenTests(api): |
| + yield ( |
| + api.test('build_ok') + |
| + api.properties.generic(mastername='client.webrtc.fyi', |
| + buildername='iOS API framework Builder', |
| + slavename='slavename') |
| + ) |
| + |
| + yield ( |
| + api.test('build_failure') + |
| + api.properties.generic(mastername='client.webrtc.fyi', |
| + buildername='iOS API framework Builder', |
| + slavename='slavename') + |
| + api.step_data('build', retcode=1) |
| + ) |