| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 DEPS = [ | 5 DEPS = [ |
| 6 'archive', | 6 'archive', |
| 7 'chromium_tests', |
| 7 'commit_position', | 8 'commit_position', |
| 8 'depot_tools/bot_update', | 9 'depot_tools/bot_update', |
| 9 'depot_tools/gclient', | 10 'depot_tools/gclient', |
| 10 'depot_tools/tryserver', | 11 'depot_tools/tryserver', |
| 11 'file', | 12 'file', |
| 12 'gsutil', | 13 'gsutil', |
| 13 'ios', | 14 'ios', |
| 14 'recipe_engine/path', | 15 'recipe_engine/path', |
| 15 'recipe_engine/properties', | 16 'recipe_engine/properties', |
| 16 'recipe_engine/step', | 17 'recipe_engine/step', |
| 17 'webrtc', | 18 'webrtc', |
| 18 'zip', | 19 'zip', |
| 19 ] | 20 ] |
| 20 | 21 |
| 21 | 22 |
| 22 def RunSteps(api): | 23 def RunSteps(api): |
| 23 api.gclient.set_config('webrtc_ios') | 24 api.gclient.set_config('webrtc_ios') |
| 24 | 25 |
| 25 api.ios.host_info() | 26 api.ios.host_info() |
| 26 update_step = api.bot_update.ensure_checkout() | 27 |
| 28 checkout_kwargs = {} |
| 29 checkout_dir = api.chromium_tests.get_checkout_dir({}) |
| 30 if checkout_dir: |
| 31 checkout_kwargs['cwd'] = checkout_dir |
| 32 update_step = api.bot_update.ensure_checkout(**checkout_kwargs) |
| 33 |
| 27 revs = update_step.presentation.properties | 34 revs = update_step.presentation.properties |
| 28 commit_pos = api.commit_position.parse_revision(revs['got_revision_cp']) | 35 commit_pos = api.commit_position.parse_revision(revs['got_revision_cp']) |
| 29 api.gclient.runhooks() | 36 api.gclient.runhooks() |
| 30 | 37 |
| 31 build_script = api.path['checkout'].join('webrtc', 'build', 'ios', | 38 build_script = api.path['checkout'].join('webrtc', 'build', 'ios', |
| 32 'build_ios_libs.sh') | 39 'build_ios_libs.sh') |
| 33 if not api.tryserver.is_tryserver: | 40 if not api.tryserver.is_tryserver: |
| 34 api.step('cleanup', [build_script, '-c'], cwd=api.path['checkout']) | 41 api.step('cleanup', [build_script, '-c'], cwd=api.path['checkout']) |
| 35 | 42 |
| 36 api.step('build', [build_script, '-r', commit_pos], cwd=api.path['checkout']) | 43 api.step('build', [build_script, '-r', commit_pos], cwd=api.path['checkout']) |
| (...skipping 12 matching lines...) Expand all Loading... |
| 49 'chromium-webrtc', | 56 'chromium-webrtc', |
| 50 'ios_api_framework/webrtc_ios_api_framework_%d.zip' % commit_pos, | 57 'ios_api_framework/webrtc_ios_api_framework_%d.zip' % commit_pos, |
| 51 args=['-a', 'public-read'], | 58 args=['-a', 'public-read'], |
| 52 unauthenticated_url=True) | 59 unauthenticated_url=True) |
| 53 | 60 |
| 54 | 61 |
| 55 def GenTests(api): | 62 def GenTests(api): |
| 56 yield ( | 63 yield ( |
| 57 api.test('build_ok') + | 64 api.test('build_ok') + |
| 58 api.properties.generic(mastername='client.webrtc', | 65 api.properties.generic(mastername='client.webrtc', |
| 59 buildername='iOS API Framework Builder') | 66 buildername='iOS API Framework Builder', |
| 67 path_config='kitchen') |
| 60 ) | 68 ) |
| 61 | 69 |
| 62 yield ( | 70 yield ( |
| 63 api.test('build_failure') + | 71 api.test('build_failure') + |
| 64 api.properties.generic(mastername='client.webrtc', | 72 api.properties.generic(mastername='client.webrtc', |
| 65 buildername='iOS API Framework Builder') + | 73 buildername='iOS API Framework Builder', |
| 74 path_config='kitchen') + |
| 66 api.step_data('build', retcode=1) | 75 api.step_data('build', retcode=1) |
| 67 ) | 76 ) |
| 68 | 77 |
| 69 yield ( | 78 yield ( |
| 70 api.test('trybot_build') + | 79 api.test('trybot_build') + |
| 71 api.properties.tryserver(mastername='tryserver.webrtc', | 80 api.properties.tryserver(mastername='tryserver.webrtc', |
| 72 buildername='ios_api_framework') | 81 buildername='ios_api_framework', |
| 82 path_config='kitchen') |
| 73 ) | 83 ) |
| OLD | NEW |