OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 | 2 |
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # 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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 # See comment in GetHasHardCodedCheckedMode, this is a hack. | 287 # See comment in GetHasHardCodedCheckedMode, this is a hack. |
288 if (GetHasHardCodedCheckedMode(build_info)): | 288 if (GetHasHardCodedCheckedMode(build_info)): |
289 TestCompiler(build_info.runtime, build_info.mode, build_info.system, | 289 TestCompiler(build_info.runtime, build_info.mode, build_info.system, |
290 test_flags + ['--checked'], build_info.is_buildbot, | 290 test_flags + ['--checked'], build_info.is_buildbot, |
291 build_info.test_set) | 291 build_info.test_set) |
292 | 292 |
293 if build_info.runtime != 'd8': | 293 if build_info.runtime != 'd8': |
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): |
| 298 """ |
| 299 Builds the SDK. |
| 300 |
| 301 - build_info: the buildInfo object, containing information about what sort of |
| 302 build and test to be run. |
| 303 """ |
| 304 with BuildStep('Build SDK and d8'): |
| 305 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, |
| 306 'dart2js_bot'] |
| 307 print 'Build SDK and d8: %s' % (' '.join(args)) |
| 308 RunProcess(args) |
| 309 |
| 310 |
297 if __name__ == '__main__': | 311 if __name__ == '__main__': |
298 bot.RunBot(GetBuildInfo, RunCompilerTests) | 312 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) |
OLD | NEW |