Chromium Code Reviews| 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 'file', | |
| 10 'gsutil', | |
| 11 'ios', | |
| 12 'recipe_engine/path', | |
| 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 | |
| 26 # Clobber all out dirs to be sure to get a clean build. | |
| 27 for out_dir in ["out_ios_arm", | |
| 28 "out_ios_arm64", | |
| 29 "out_ios_framework", | |
| 30 "out_ios_ia32", | |
| 31 "out_ios_libs", | |
| 32 "out_ios_x86_64"]: | |
| 33 api.file.rmtree('clobber %s' % out_dir, api.path['checkout'].join(out_dir)) | |
|
Michael Achenbach
2016/04/08 12:17:49
I'm ok with this, but it would be nicer if we had
kjellander_chromium
2016/04/08 14:27:08
Yeah, but I didn't find a supported way to do that
| |
| 34 | |
| 35 build_script = api.path['checkout'].join('webrtc', 'build', 'ios', | |
| 36 'build_ios_framework.sh') | |
| 37 api.step('build', ['/bin/bash', build_script]) | |
|
Michael Achenbach
2016/04/08 12:17:49
I think you could drop the '/bin/bash' - the scrip
kjellander_chromium
2016/04/08 14:27:09
Good point, that's cleaner (and yes: it has +x).
| |
| 38 | |
| 39 output_dir = api.path['checkout'].join('out_ios_framework') | |
| 40 zip_out = api.path['slave_build'].join('webrtc_ios_api_framework.zip') | |
| 41 api.zip.directory('zip', output_dir, zip_out) | |
| 42 | |
| 43 api.gsutil.upload( | |
| 44 zip_out, | |
| 45 'chromium-webrtc', | |
| 46 'ios_api_framework/webrtc_ios_api_framework.zip', | |
|
Michael Achenbach
2016/04/08 12:17:50
You continuously overwrite the same file on GS. Is
kjellander_chromium
2016/04/08 14:27:09
Good catch, didn't put much thought into this obvi
| |
| 47 args=['-a', 'public-read'], | |
| 48 unauthenticated_url=True) | |
| 49 | |
| 50 | |
| 51 def GenTests(api): | |
| 52 yield ( | |
| 53 api.test('build_ok') + | |
| 54 api.properties.generic(mastername='client.webrtc.fyi', | |
| 55 buildername='iOS API Framework Builder', | |
| 56 slavename='slavename') | |
|
Michael Achenbach
2016/04/08 12:17:49
I think slavename has already some default when us
kjellander_chromium
2016/04/08 14:27:09
Done.
| |
| 57 ) | |
| 58 | |
| 59 yield ( | |
| 60 api.test('build_failure') + | |
| 61 api.properties.generic(mastername='client.webrtc.fyi', | |
| 62 buildername='iOS API Framework Builder', | |
| 63 slavename='slavename') + | |
| 64 api.step_data('build', retcode=1) | |
| 65 ) | |
| OLD | NEW |