| 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 'commit_position', |
| 8 'depot_tools/bot_update', |
| 9 'depot_tools/gclient', |
| 10 'file', |
| 11 'gsutil', |
| 12 'ios', |
| 13 'recipe_engine/path', |
| 14 'recipe_engine/properties', |
| 15 'recipe_engine/step', |
| 16 'webrtc', |
| 17 'zip', |
| 18 ] |
| 19 |
| 20 |
| 21 def RunSteps(api): |
| 22 api.gclient.set_config('webrtc_ios') |
| 23 |
| 24 api.ios.host_info() |
| 25 update_step = api.bot_update.ensure_checkout() |
| 26 revs = update_step.presentation.properties |
| 27 commit_pos = api.commit_position.parse_revision(revs['got_revision_cp']) |
| 28 |
| 29 # Clobber all out dirs to be sure to get a clean build. |
| 30 for out_dir in ["out_ios_arm", |
| 31 "out_ios_arm64", |
| 32 "out_ios_framework", |
| 33 "out_ios_ia32", |
| 34 "out_ios_libs", |
| 35 "out_ios_x86_64"]: |
| 36 api.file.rmtree('clobber %s' % out_dir, api.path['checkout'].join(out_dir)) |
| 37 |
| 38 build_script = api.path['checkout'].join('webrtc', 'build', 'ios', |
| 39 'build_ios_framework.sh') |
| 40 api.step('build', [build_script]) |
| 41 |
| 42 output_dir = api.path['checkout'].join('out_ios_framework') |
| 43 zip_out = api.path['slave_build'].join('webrtc_ios_api_framework.zip') |
| 44 api.zip.directory('zip', output_dir, zip_out) |
| 45 |
| 46 api.gsutil.upload( |
| 47 zip_out, |
| 48 'chromium-webrtc', |
| 49 'ios_api_framework/webrtc_ios_api_framework_%d.zip' % commit_pos, |
| 50 args=['-a', 'public-read'], |
| 51 unauthenticated_url=True) |
| 52 |
| 53 |
| 54 def GenTests(api): |
| 55 yield ( |
| 56 api.test('build_ok') + |
| 57 api.properties.generic(mastername='client.webrtc.fyi', |
| 58 buildername='iOS API Framework Builder') |
| 59 ) |
| 60 |
| 61 yield ( |
| 62 api.test('build_failure') + |
| 63 api.properties.generic(mastername='client.webrtc.fyi', |
| 64 buildername='iOS API Framework Builder') + |
| 65 api.step_data('build', retcode=1) |
| 66 ) |
| OLD | NEW |