| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 | 2 |
| 3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 4 # for details. All rights reserved. Use of this source code is governed by a | 4 # for details. All rights reserved. Use of this source code is governed by a |
| 5 # BSD-style license that can be found in the LICENSE file. | 5 # BSD-style license that can be found in the LICENSE file. |
| 6 | 6 |
| 7 """ | 7 """ |
| 8 Dart2js buildbot steps | 8 Dart2js buildbot steps |
| 9 | 9 |
| 10 Runs tests for the dart2js compiler. | 10 Runs tests for the dart2js compiler. |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 CleanUpTemporaryFiles(build_info.system, build_info.runtime) | 294 CleanUpTemporaryFiles(build_info.system, build_info.runtime) |
| 295 | 295 |
| 296 | 296 |
| 297 def BuildCompiler(build_info): | 297 def BuildCompiler(build_info): |
| 298 """ | 298 """ |
| 299 Builds the SDK. | 299 Builds the SDK. |
| 300 | 300 |
| 301 - build_info: the buildInfo object, containing information about what sort of | 301 - build_info: the buildInfo object, containing information about what sort of |
| 302 build and test to be run. | 302 build and test to be run. |
| 303 """ | 303 """ |
| 304 with BuildStep('Build SDK and d8'): | 304 with bot.BuildStep('Build SDK and d8'): |
| 305 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, | 305 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, |
| 306 'dart2js_bot'] | 306 'dart2js_bot'] |
| 307 print 'Build SDK and d8: %s' % (' '.join(args)) | 307 print 'Build SDK and d8: %s' % (' '.join(args)) |
| 308 RunProcess(args) | 308 bot.RunProcess(args) |
| 309 | 309 |
| 310 | 310 |
| 311 if __name__ == '__main__': | 311 if __name__ == '__main__': |
| 312 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) | 312 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) |
| OLD | NEW |