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