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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 FixJavaHome() | 200 FixJavaHome() |
201 if name.startswith('dart-editor'): | 201 if name.startswith('dart-editor'): |
202 # TODO(kustermann,ricow): This is a temporary hack until we can safely | 202 # TODO(kustermann,ricow): This is a temporary hack until we can safely |
203 # enable it on main waterfall. We need to remove this eventually | 203 # enable it on main waterfall. We need to remove this eventually |
204 is_fyi = False | 204 is_fyi = False |
205 if name.startswith('dart-editor-fyi'): | 205 if name.startswith('dart-editor-fyi'): |
206 match = re.search('dart-editor-fyi(.*)', name) | 206 match = re.search('dart-editor-fyi(.*)', name) |
207 name = 'dart-editor' + match.group(1) | 207 name = 'dart-editor' + match.group(1) |
208 is_fyi = True | 208 is_fyi = True |
209 # Run the old annotated steps script first. | 209 # Run the old annotated steps script first. |
210 status = ProcessTools('release', name, version) or status | 210 status = ProcessTools('release', name, version) |
211 # In case we're an FYI builder, run 'tools/bots/editor.py' as well | 211 # In case we're an FYI builder, run 'tools/bots/editor.py' as well |
212 if is_fyi: | 212 if is_fyi: |
213 status = ProcessBot(name, 'editor') | 213 status = ProcessBot(name, 'editor') or status |
214 elif name.startswith('pub-'): | 214 elif name.startswith('pub-'): |
215 status = ProcessBot(name, 'pub') | 215 status = ProcessBot(name, 'pub') |
216 elif name.startswith('vm-android'): | 216 elif name.startswith('vm-android'): |
217 status = ProcessBot(name, 'android') | 217 status = ProcessBot(name, 'android') |
218 else: | 218 else: |
219 status = ProcessBot(name, 'compiler') | 219 status = ProcessBot(name, 'compiler') |
220 | 220 |
221 if status: | 221 if status: |
222 print '@@@STEP_FAILURE@@@' | 222 print '@@@STEP_FAILURE@@@' |
223 | 223 |
224 return status | 224 return status |
225 | 225 |
226 | 226 |
227 if __name__ == '__main__': | 227 if __name__ == '__main__': |
228 sys.exit(main()) | 228 sys.exit(main()) |
OLD | NEW |