Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(691)

Side by Side Diff: scripts/slave/recipes/webrtc/ios_api_framework.py

Issue 2011973003: WebRTC: Add trybot for iOS SDK Framework build. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 'commit_position', 7 'commit_position',
8 'depot_tools/bot_update', 8 'depot_tools/bot_update',
9 'depot_tools/gclient', 9 'depot_tools/gclient',
10 'depot_tools/tryserver',
10 'file', 11 'file',
11 'gsutil', 12 'gsutil',
12 'ios', 13 'ios',
13 'recipe_engine/path', 14 'recipe_engine/path',
14 'recipe_engine/properties', 15 'recipe_engine/properties',
15 'recipe_engine/step', 16 'recipe_engine/step',
16 'webrtc', 17 'webrtc',
17 'zip', 18 'zip',
18 ] 19 ]
19 20
20 21
21 def RunSteps(api): 22 def RunSteps(api):
22 api.gclient.set_config('webrtc_ios') 23 api.gclient.set_config('webrtc_ios')
23 24
24 api.ios.host_info() 25 api.ios.host_info()
25 update_step = api.bot_update.ensure_checkout() 26 update_step = api.bot_update.ensure_checkout()
26 revs = update_step.presentation.properties 27 revs = update_step.presentation.properties
27 commit_pos = api.commit_position.parse_revision(revs['got_revision_cp']) 28 commit_pos = api.commit_position.parse_revision(revs['got_revision_cp'])
28 api.gclient.runhooks() 29 api.gclient.runhooks()
29 30
30 build_script = api.path['checkout'].join('webrtc', 'build', 'ios', 31 build_script = api.path['checkout'].join('webrtc', 'build', 'ios',
31 'build_ios_libs.sh') 32 'build_ios_libs.sh')
32 api.step('cleanup', [build_script, '-c'], cwd=api.path['checkout']) 33 if not api.tryserver.is_tryserver:
34 api.step('cleanup', [build_script, '-c'], cwd=api.path['checkout'])
33 35
34 api.step('build', [build_script, '-r', commit_pos], cwd=api.path['checkout']) 36 api.step('build', [build_script, '-r', commit_pos], cwd=api.path['checkout'])
35 37
36 output_dir = api.path['checkout'].join('out_ios_libs') 38 if not api.tryserver.is_tryserver:
37 zip_out = api.path['slave_build'].join('webrtc_ios_api_framework.zip') 39 output_dir = api.path['checkout'].join('out_ios_libs')
38 pkg = api.zip.make_package(output_dir, zip_out) 40 zip_out = api.path['slave_build'].join('webrtc_ios_api_framework.zip')
39 pkg.add_directory(output_dir.join('WebRTC.framework')) 41 pkg = api.zip.make_package(output_dir, zip_out)
40 pkg.add_directory(output_dir.join('WebRTC.framework.dSYM')) 42 pkg.add_directory(output_dir.join('WebRTC.framework'))
41 pkg.add_file(output_dir.join('LICENSE.html')) 43 pkg.add_directory(output_dir.join('WebRTC.framework.dSYM'))
42 pkg.zip('zip archive') 44 pkg.add_file(output_dir.join('LICENSE.html'))
45 pkg.zip('zip archive')
43 46
44 api.gsutil.upload( 47 api.gsutil.upload(
45 zip_out, 48 zip_out,
46 'chromium-webrtc', 49 'chromium-webrtc',
47 'ios_api_framework/webrtc_ios_api_framework_%d.zip' % commit_pos, 50 'ios_api_framework/webrtc_ios_api_framework_%d.zip' % commit_pos,
48 args=['-a', 'public-read'], 51 args=['-a', 'public-read'],
49 unauthenticated_url=True) 52 unauthenticated_url=True)
50 53
51 54
52 def GenTests(api): 55 def GenTests(api):
53 yield ( 56 yield (
54 api.test('build_ok') + 57 api.test('build_ok') +
55 api.properties.generic(mastername='client.webrtc.fyi', 58 api.properties.generic(mastername='client.webrtc.fyi',
56 buildername='iOS API Framework Builder') 59 buildername='iOS API Framework Builder')
57 ) 60 )
58 61
59 yield ( 62 yield (
60 api.test('build_failure') + 63 api.test('build_failure') +
61 api.properties.generic(mastername='client.webrtc.fyi', 64 api.properties.generic(mastername='client.webrtc.fyi',
62 buildername='iOS API Framework Builder') + 65 buildername='iOS API Framework Builder') +
63 api.step_data('build', retcode=1) 66 api.step_data('build', retcode=1)
64 ) 67 )
68
69 yield (
70 api.test('trybot_biuld') +
phoglund_chromium 2016/05/26 07:30:07 biuld? That doesn't look right. I guess it's not a
kjellander_chromium 2016/05/26 08:11:59 Right, it only affects the name of the expectation
71 api.properties.tryserver(mastername='tryserver.webrtc',
72 buildername='ios_api_framework')
73 )
OLDNEW
« no previous file with comments | « masters/master.tryserver.webrtc/slaves.cfg ('k') | scripts/slave/recipes/webrtc/ios_api_framework.expected/trybot_biuld.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698