Chromium Code Reviews

Side by Side Diff: build/android/buildbot/bb_host_steps.py

Issue 416243007: extract_build failure should be fatal (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2013 The Chromium Authors. All rights reserved. 2 # Copyright 2013 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import os 6 import os
7 import sys 7 import sys
8 8
9 import bb_utils 9 import bb_utils
10 import bb_annotations 10 import bb_annotations
(...skipping 57 matching lines...)
68 RunCmd([ 68 RunCmd([
69 os.path.join(SLAVE_SCRIPTS_DIR, 'zip_build.py'), 69 os.path.join(SLAVE_SCRIPTS_DIR, 'zip_build.py'),
70 '--src-dir', constants.DIR_SOURCE_ROOT, 70 '--src-dir', constants.DIR_SOURCE_ROOT,
71 '--exclude-files', 'lib.target,gen,android_webview,jingle_unittests'] 71 '--exclude-files', 'lib.target,gen,android_webview,jingle_unittests']
72 + bb_utils.EncodeProperties(options), cwd=DIR_BUILD_ROOT) 72 + bb_utils.EncodeProperties(options), cwd=DIR_BUILD_ROOT)
73 73
74 74
75 def ExtractBuild(options): 75 def ExtractBuild(options):
76 bb_annotations.PrintNamedStep('extract_build') 76 bb_annotations.PrintNamedStep('extract_build')
77 RunCmd([os.path.join(SLAVE_SCRIPTS_DIR, 'extract_build.py')] 77 RunCmd([os.path.join(SLAVE_SCRIPTS_DIR, 'extract_build.py')]
78 + bb_utils.EncodeProperties(options), 78 + bb_utils.EncodeProperties(options), cwd=DIR_BUILD_ROOT)
79 warning_code=1, cwd=DIR_BUILD_ROOT)
80 79
81 80
82 def FindBugs(options): 81 def FindBugs(options):
83 bb_annotations.PrintNamedStep('findbugs') 82 bb_annotations.PrintNamedStep('findbugs')
84 build_type = [] 83 build_type = []
85 if options.target == 'Release': 84 if options.target == 'Release':
86 build_type = ['--release-build'] 85 build_type = ['--release-build']
87 RunCmd([SrcPath('build', 'android', 'findbugs_diff.py')] + build_type) 86 RunCmd([SrcPath('build', 'android', 'findbugs_diff.py')] + build_type)
88 RunCmd([SrcPath( 87 RunCmd([SrcPath(
89 'tools', 'android', 'findbugs_plugin', 'test', 88 'tools', 'android', 'findbugs_plugin', 'test',
(...skipping 44 matching lines...)
134 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) 133 setattr(options, 'target', options.factory_properties.get('target', 'Debug'))
135 setattr(options, 'extra_src', 134 setattr(options, 'extra_src',
136 options.factory_properties.get('extra_src', '')) 135 options.factory_properties.get('extra_src', ''))
137 136
138 if options.steps: 137 if options.steps:
139 bb_utils.RunSteps(options.steps.split(','), GetHostStepCmds(), options) 138 bb_utils.RunSteps(options.steps.split(','), GetHostStepCmds(), options)
140 139
141 140
142 if __name__ == '__main__': 141 if __name__ == '__main__':
143 sys.exit(main(sys.argv)) 142 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine