| 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 16 matching lines...) Expand all Loading... |
| 27 WEB_BUILDER = ( | 27 WEB_BUILDER = ( |
| 28 r'dart2js-(ie9|ie10|ff|safari|chrome|chromeOnAndroid|opera|drt)-(win7|win8|m
ac10\.8|mac10\.7|linux)(-(all|html))?(-(csp))?(-(\d+)-(\d+))?') | 28 r'dart2js-(ie9|ie10|ff|safari|chrome|chromeOnAndroid|opera|drt)-(win7|win8|m
ac10\.8|mac10\.7|linux)(-(all|html))?(-(csp))?(-(\d+)-(\d+))?') |
| 29 | 29 |
| 30 DART2JS_FULL_CONFIGURATIONS = { | 30 DART2JS_FULL_CONFIGURATIONS = { |
| 31 'linux' : [ ], | 31 'linux' : [ ], |
| 32 'mac' : [ ], | 32 'mac' : [ ], |
| 33 'windows' : [ | 33 'windows' : [ |
| 34 {'runtime' : 'ie9'}, | 34 {'runtime' : 'ie9'}, |
| 35 {'runtime' : 'ie9', 'additional_flags' : ['--checked']}, | 35 {'runtime' : 'ie9', 'additional_flags' : ['--checked']}, |
| 36 {'runtime' : 'ff'}, | 36 {'runtime' : 'ff'}, |
| 37 {'runtime' : 'chrome'}, |
| 37 ], | 38 ], |
| 38 } | 39 } |
| 39 | 40 |
| 40 | 41 |
| 41 def GetBuildInfo(builder_name, is_buildbot): | 42 def GetBuildInfo(builder_name, is_buildbot): |
| 42 """Returns a BuildInfo object for the current buildbot based on the | 43 """Returns a BuildInfo object for the current buildbot based on the |
| 43 name of the builder. | 44 name of the builder. |
| 44 """ | 45 """ |
| 45 compiler = None | 46 compiler = None |
| 46 runtime = None | 47 runtime = None |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 """ | 367 """ |
| 367 with bot.BuildStep('Build SDK'): | 368 with bot.BuildStep('Build SDK'): |
| 368 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, | 369 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, |
| 369 '--arch=' + build_info.arch, 'dart2js_bot'] | 370 '--arch=' + build_info.arch, 'dart2js_bot'] |
| 370 print 'Build SDK and d8: %s' % (' '.join(args)) | 371 print 'Build SDK and d8: %s' % (' '.join(args)) |
| 371 bot.RunProcess(args) | 372 bot.RunProcess(args) |
| 372 | 373 |
| 373 | 374 |
| 374 if __name__ == '__main__': | 375 if __name__ == '__main__': |
| 375 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) | 376 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) |
| OLD | NEW |