| OLD | NEW |
| (Empty) | |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 DEPS = [ |
| 6 'archive', |
| 7 'depot_tools/bot_update', |
| 8 'depot_tools/gclient', |
| 9 'gsutil', |
| 10 'ios', |
| 11 'recipe_engine/path', |
| 12 'recipe_engine/platform', |
| 13 'recipe_engine/properties', |
| 14 'recipe_engine/step', |
| 15 'webrtc', |
| 16 'zip', |
| 17 ] |
| 18 |
| 19 |
| 20 def RunSteps(api): |
| 21 api.gclient.set_config('webrtc_ios') |
| 22 |
| 23 api.ios.host_info() |
| 24 api.bot_update.ensure_checkout() |
| 25 build_script = api.path['checkout'].join('webrtc', 'build', 'ios', |
| 26 'build_ios_framework.sh') |
| 27 api.step('build cocoapod', ['/bin/bash', build_script]) |
| 28 |
| 29 output_dir = api.path['checkout'].join('out_ios_framework') |
| 30 zip_out = api.path['slave_build'].join('webrtc_ios_cocoapod.zip') |
| 31 api.zip.directory('zip', output_dir, zip_out) |
| 32 |
| 33 api.gsutil.upload( |
| 34 zip_out, |
| 35 'chromium-webrtc', |
| 36 'cocoapods/webrtc_ios_cocoapod.zip', |
| 37 args=['-a', 'public-read'], |
| 38 unauthenticated_url=True) |
| 39 |
| 40 |
| 41 def GenTests(api): |
| 42 yield ( |
| 43 api.test('build_ok') + |
| 44 api.properties.generic(mastername='client.webrtc.fyi', |
| 45 buildername='iOS CocoaPod Builder', |
| 46 slavename='slavename') |
| 47 ) |
| 48 |
| 49 yield ( |
| 50 api.test('build_failure') + |
| 51 api.properties.generic(mastername='client.webrtc.fyi', |
| 52 buildername='iOS CocoaPod Builder', |
| 53 slavename='slavename') + |
| 54 api.step_data('build cocoapod', retcode=1) |
| 55 ) |
| OLD | NEW |