| 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..7d5b0fd4f00bbc65a98c097509b520d450256ade
|
| --- /dev/null
|
| +++ b/scripts/slave/recipes/webrtc/ios_api_framework.py
|
| @@ -0,0 +1,66 @@
|
| +# 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',
|
| + 'commit_position',
|
| + '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()
|
| + update_step = api.bot_update.ensure_checkout()
|
| + revs = update_step.presentation.properties
|
| + commit_pos = api.commit_position.parse_revision(revs['got_revision_cp'])
|
| +
|
| + # Clobber all out dirs to be sure to get a clean build.
|
| + for out_dir in ["out_ios_arm",
|
| + "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', [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_%d.zip' % commit_pos,
|
| + 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')
|
| + )
|
| +
|
| + yield (
|
| + api.test('build_failure') +
|
| + api.properties.generic(mastername='client.webrtc.fyi',
|
| + buildername='iOS API Framework Builder') +
|
| + api.step_data('build', retcode=1)
|
| + )
|
|
|