OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
3 # for details. All rights reserved. Use of this source code is governed by a | 3 # for details. All rights reserved. Use of this source code is governed by a |
4 # BSD-style license that can be found in the LICENSE file. | 4 # BSD-style license that can be found in the LICENSE file. |
5 | 5 |
6 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 6 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
7 # Use of this source code is governed by a BSD-style license that can be | 7 # Use of this source code is governed by a BSD-style license that can be |
8 # found in the LICENSE file. | 8 # found in the LICENSE file. |
9 | 9 |
10 """Dart client buildbot steps | 10 """Dart client buildbot steps |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 # The buildbot will set a BUILDBOT_JAVA_HOME relative to the dart | 211 # The buildbot will set a BUILDBOT_JAVA_HOME relative to the dart |
212 # root directory, set JAVA_HOME based on that. | 212 # root directory, set JAVA_HOME based on that. |
213 FixJavaHome() | 213 FixJavaHome() |
214 if name.startswith('dart-editor'): | 214 if name.startswith('dart-editor'): |
215 # TODO(kustermann,ricow): This is a temporary hack until we can safely | 215 # TODO(kustermann,ricow): This is a temporary hack until we can safely |
216 # enable it on main waterfall. We need to remove this eventually | 216 # enable it on main waterfall. We need to remove this eventually |
217 if name.startswith('dart-editor-fyi'): | 217 if name.startswith('dart-editor-fyi'): |
218 match = re.search('dart-editor-fyi(.*)', name) | 218 match = re.search('dart-editor-fyi(.*)', name) |
219 name = 'dart-editor' + match.group(1) | 219 name = 'dart-editor' + match.group(1) |
220 # In case we're an FYI builder, run 'tools/bots/editor.py'. | 220 # In case we're an FYI builder, run 'tools/bots/editor.py'. |
221 status = ProcessBot(name, 'editor') | 221 status = ProcessBot(name, 'editor', |
| 222 custom_env=EnvironmentWithoutBotoConfig()) |
222 else: | 223 else: |
223 # Run the old annotated steps script | 224 # Run the old annotated steps script |
224 status = ProcessTools('release', name, version) | 225 status = ProcessTools('release', name, version) |
225 elif name.startswith('pub-'): | 226 elif name.startswith('pub-'): |
226 status = ProcessBot(name, 'pub') | 227 status = ProcessBot(name, 'pub') |
227 elif name.startswith('vm-android'): | 228 elif name.startswith('vm-android'): |
228 status = ProcessBot(name, 'android') | 229 status = ProcessBot(name, 'android') |
229 elif name.startswith('cross') or name.startswith('target'): | 230 elif name.startswith('cross') or name.startswith('target'): |
230 status = ProcessBot(name, 'cross-vm', | 231 status = ProcessBot(name, 'cross-vm', |
231 custom_env=EnvironmentWithoutBotoConfig()) | 232 custom_env=EnvironmentWithoutBotoConfig()) |
232 else: | 233 else: |
233 status = ProcessBot(name, 'compiler') | 234 status = ProcessBot(name, 'compiler') |
234 | 235 |
235 if status: | 236 if status: |
236 print '@@@STEP_FAILURE@@@' | 237 print '@@@STEP_FAILURE@@@' |
237 | 238 |
238 return status | 239 return status |
239 | 240 |
240 | 241 |
241 if __name__ == '__main__': | 242 if __name__ == '__main__': |
242 sys.exit(main()) | 243 sys.exit(main()) |
OLD | NEW |