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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 if status != 0: | 178 if status != 0: |
179 print '@@@STEP_FAILURE@@@' | 179 print '@@@STEP_FAILURE@@@' |
180 return status | 180 return status |
181 | 181 |
182 | 182 |
183 #TODO(sigmund): remove this indirection once we update our bots | 183 #TODO(sigmund): remove this indirection once we update our bots |
184 (name, version) = GetBuildInfo() | 184 (name, version) = GetBuildInfo() |
185 # The buildbot will set a BUILDBOT_JAVA_HOME relative to the dart | 185 # The buildbot will set a BUILDBOT_JAVA_HOME relative to the dart |
186 # root directory, set JAVA_HOME based on that. | 186 # root directory, set JAVA_HOME based on that. |
187 FixJavaHome() | 187 FixJavaHome() |
188 if name.startswith('dart-editor'): | 188 if name.startswith('pub-'): |
189 # Run the old annotated steps script | |
190 status = ProcessTools('release', name, version) | |
191 elif name.startswith('pub-'): | |
192 status = ProcessBot(name, 'pub') | 189 status = ProcessBot(name, 'pub') |
193 elif name.startswith('vm-android'): | 190 elif name.startswith('vm-android'): |
194 status = ProcessBot(name, 'android') | 191 status = ProcessBot(name, 'android') |
195 elif name.startswith('cross') or name.startswith('target'): | 192 elif name.startswith('cross') or name.startswith('target'): |
196 status = ProcessBot(name, 'cross-vm', | 193 status = ProcessBot(name, 'cross-vm', |
197 custom_env=EnvironmentWithoutBotoConfig()) | 194 custom_env=EnvironmentWithoutBotoConfig()) |
198 elif name.startswith('linux-distribution-support'): | 195 elif name.startswith('linux-distribution-support'): |
199 status = ProcessBot(name, 'linux_distribution_support') | 196 status = ProcessBot(name, 'linux_distribution_support') |
200 elif name.startswith('ft'): | |
201 status = ProcessBot(name, 'functional_testing') | |
202 elif name.startswith('version-checker'): | 197 elif name.startswith('version-checker'): |
203 status = ProcessBot(name, 'version_checker') | 198 status = ProcessBot(name, 'version_checker') |
204 elif name.startswith('dart2js-dump-info'): | 199 elif name.startswith('dart2js-dump-info'): |
205 status = ProcessBot(name, 'dart2js_dump_info') | 200 status = ProcessBot(name, 'dart2js_dump_info') |
206 else: | 201 else: |
207 status = ProcessBot(name, 'compiler') | 202 status = ProcessBot(name, 'compiler') |
208 | 203 |
209 if status: | 204 if status: |
210 print '@@@STEP_FAILURE@@@' | 205 print '@@@STEP_FAILURE@@@' |
211 | 206 |
212 return status | 207 return status |
213 | 208 |
214 | 209 |
215 if __name__ == '__main__': | 210 if __name__ == '__main__': |
216 sys.exit(main()) | 211 sys.exit(main()) |
OLD | NEW |