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

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

Issue 23889036: Refactor the way that TestApi works so that it is actually useful. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: License headers Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « scripts/slave/recipes/android/android_builder.py ('k') | scripts/slave/recipes/blink_trybot.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 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 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 = ['android', 'properties', 'rietveld'] 5 DEPS = [
6 'android',
7 'path',
8 'properties',
9 'rietveld'
10 ]
6 11
7 def GenSteps(api): 12 def GenSteps(api):
8 droid = api.android 13 droid = api.android
9 droid.set_config('AOSP') 14 droid.set_config('AOSP')
10 yield droid.chromium_with_trimmed_deps() 15 yield droid.chromium_with_trimmed_deps()
11 yield droid.lastchange_steps() 16 yield droid.lastchange_steps()
12 17
13 if 'issue' in api.properties: 18 if 'issue' in api.properties:
14 yield api.rietveld.apply_issue(api.rietveld.calculate_issue_root()) 19 yield api.rietveld.apply_issue(api.rietveld.calculate_issue_root())
15 20
16 yield droid.repo_init_steps() 21 yield droid.repo_init_steps()
17 yield droid.generate_local_manifest_step() 22 yield droid.generate_local_manifest_step()
18 yield droid.repo_sync_steps() 23 yield droid.repo_sync_steps()
19 24
20 yield droid.symlink_chromium_into_android_tree_step() 25 yield droid.symlink_chromium_into_android_tree_step()
21 yield droid.gyp_webview_step() 26 yield droid.gyp_webview_step()
22 27
23 # TODO(android): use api.chromium.compile for this 28 # TODO(android): use api.chromium.compile for this
24 yield droid.compile_step( 29 yield droid.compile_step(
25 build_tool='make-android', 30 build_tool='make-android',
26 targets=['libwebviewchromium', 'android_webview_java'], 31 targets=['libwebviewchromium', 'android_webview_java'],
27 use_goma=True) 32 use_goma=True)
28 33
29 def GenTests(api): 34 def GenTests(api):
30 def _common_step_mocks(): 35 yield api.test('basic') + api.properties.scheduled()
31 return {
32 'calculate trimmed deps': {
33 'json': {
34 'output': {
35 'blacklist': {
36 'src/blacklist/project/1': None,
37 'src/blacklist/project/2': None,
38 }
39 }
40 }
41 }
42 }
43 36
44 yield 'basic', { 37 yield (
45 'properties': api.properties_scheduled(), 38 api.test('uses_android_repo') +
46 'step_mocks': _common_step_mocks(), 39 api.properties.scheduled() +
47 } 40 api.path.exists('[SLAVE_BUILD_ROOT]/android-src/.repo/repo/repo')
41 )
48 42
49 yield 'uses_android_repo', { 43 yield (
50 'properties': api.properties_scheduled(), 44 api.test('doesnt_sync_if_android_present') +
51 'step_mocks': _common_step_mocks(), 45 api.properties.scheduled() +
52 'mock' : { 46 api.path.exists('[SLAVE_BUILD_ROOT]/android-src')
53 'path': { 47 )
54 'exists': [
55 '[SLAVE_BUILD_ROOT]/android-src/.repo/repo/repo',
56 ]
57 }
58 }
59 }
60 48
61 yield 'doesnt_sync_if_android_present', { 49 yield (
62 'properties': api.properties_scheduled(), 50 api.test('does_delete_stale_chromium') +
63 'step_mocks': _common_step_mocks(), 51 api.properties.scheduled() +
64 'mock' : { 52 api.path.exists('[SLAVE_BUILD_ROOT]/android-src/external/chromium_org')
65 'path': { 53 )
66 'exists': [
67 '[SLAVE_BUILD_ROOT]/android-src',
68 ]
69 }
70 }
71 }
72 54
73 yield 'does_delete_stale_chromium', { 55 yield (
74 'properties': api.properties_scheduled(), 56 api.test('uses_goma_test') +
75 'step_mocks': _common_step_mocks(), 57 api.properties.scheduled() +
76 'mock' : { 58 api.path.exists('[BUILD_ROOT]/goma')
77 'path': { 59 )
78 'exists': [
79 '[SLAVE_BUILD_ROOT]/android-src/external/chromium_org',
80 ]
81 }
82 }
83 }
84 60
85 yield 'uses_goma_test', { 61 yield api.test('works_if_revision_not_present') + api.properties.generic()
86 'properties': api.properties_scheduled(),
87 'step_mocks': _common_step_mocks(),
88 'mock' : {
89 'path': {
90 'exists': [
91 '[BUILD_ROOT]/goma'
92 ]
93 }
94 }
95 }
96 62
97 yield 'works_if_revision_not_present', { 63 yield api.test('trybot') + api.properties.tryserver()
98 'properties': api.properties_generic(),
99 'step_mocks': _common_step_mocks(),
100 }
101
102 yield 'trybot', {
103 'properties': api.properties_tryserver(),
104 'step_mocks': _common_step_mocks(),
105 }
OLDNEW
« no previous file with comments | « scripts/slave/recipes/android/android_builder.py ('k') | scripts/slave/recipes/blink_trybot.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698