| 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 15 matching lines...) Expand all Loading... |
| 26 DART2JS_FULL_BUILDER = r'dart2js-full-(linux|mac|windows)(-checked)?(-minified)?
-(\d+)-(\d+)' | 26 DART2JS_FULL_BUILDER = r'dart2js-full-(linux|mac|windows)(-checked)?(-minified)?
-(\d+)-(\d+)' |
| 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 ], | 37 ], |
| 37 } | 38 } |
| 38 | 39 |
| 39 | 40 |
| 40 def GetBuildInfo(builder_name, is_buildbot): | 41 def GetBuildInfo(builder_name, is_buildbot): |
| 41 """Returns a BuildInfo object for the current buildbot based on the | 42 """Returns a BuildInfo object for the current buildbot based on the |
| 42 name of the builder. | 43 name of the builder. |
| 43 """ | 44 """ |
| 44 compiler = None | 45 compiler = None |
| 45 runtime = None | 46 runtime = None |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 """ | 366 """ |
| 366 with bot.BuildStep('Build SDK'): | 367 with bot.BuildStep('Build SDK'): |
| 367 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, | 368 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, |
| 368 '--arch=' + build_info.arch, 'dart2js_bot'] | 369 '--arch=' + build_info.arch, 'dart2js_bot'] |
| 369 print 'Build SDK and d8: %s' % (' '.join(args)) | 370 print 'Build SDK and d8: %s' % (' '.join(args)) |
| 370 bot.RunProcess(args) | 371 bot.RunProcess(args) |
| 371 | 372 |
| 372 | 373 |
| 373 if __name__ == '__main__': | 374 if __name__ == '__main__': |
| 374 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) | 375 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) |
| OLD | NEW |