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

Side by Side Diff: scripts/slave/recipes/webrtc_android_apk_trybot.py

Issue 75163006: WebRTC Android APK trybot recipe (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Rebased, removed video_engine_tests Created 7 years 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 # Copyright 2013 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 'base_android',
7 'chromium',
8 'gclient',
9 'json',
10 'path',
11 'platform',
12 'properties',
13 'python',
14 'step',
15 'webrtc',
16 ]
17
18
19 def GenSteps(api):
20 config_vals = {}
21 config_vals.update(
22 dict((str(k),v) for k,v in api.properties.iteritems() if k.isupper())
23 )
24 api.webrtc.set_config('webrtc_android_apk_try_builder', **config_vals)
25
26 # Replace src/third_party/webrtc with a WebRTC ToT checkout and force the
27 # Chromium code to sync ToT.
28 api.gclient.c.solutions[0].revision = 'HEAD'
29 # TODO(kjellander): Switch to use the webrtc_revision gyp variable in DEPS
30 # as soon we've switched over to use the trunk branch instead of the stable
31 # branch (which is about to be retired).
32 api.gclient.c.solutions[0].custom_deps['src/third_party/webrtc'] += (
33 '@' + api.properties.get('revision'))
34
35 api.step.auto_resolve_conflicts = True
36
37 yield api.gclient.checkout()
38 yield api.webrtc.apply_svn_patch()
39 yield api.base_android.envsetup()
40 yield api.base_android.runhooks()
41 yield api.chromium.cleanup_temp()
42 yield api.base_android.compile()
43
44 for test in api.webrtc.NORMAL_TESTS:
45 # The libjingle tests or video_engine_tests are not yet supported.
46 if not test.startswith(('libjingle', 'video_engine_tests')):
47 yield api.base_android.test_runner(test)
48
49
50 def GenTests(api):
51 for build_config in ('Debug', 'Release'):
52 for target_arch in ('intel', 'arm'):
53 props = api.properties(
54 TARGET_PLATFORM='android',
55 TARGET_ARCH=target_arch,
56 TARGET_BITS=32,
57 BUILD_CONFIG=build_config,
58 ANDROID_APK=True,
59 revision='12345',
60 patch_url='try_job_svn_patch'
61 )
62 yield (
63 api.test('%s_%s' % (build_config, target_arch)) +
64 props +
65 api.platform('linux', 64) +
66 api.step_data('envsetup',
67 api.json.output({
68 'FOO': 'bar',
69 'GYP_DEFINES': 'my_new_gyp_def=aaa',
70 }))
71 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698