| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 system = None | 56 system = None |
| 57 checked = False | 57 checked = False |
| 58 host_checked = False | 58 host_checked = False |
| 59 minified = False | 59 minified = False |
| 60 shard_index = None | 60 shard_index = None |
| 61 total_shards = None | 61 total_shards = None |
| 62 test_set = None | 62 test_set = None |
| 63 csp = None | 63 csp = None |
| 64 arch = None | 64 arch = None |
| 65 dart2js_full = False | 65 dart2js_full = False |
| 66 # We default to true for running in batch mode on dart2js | 66 batch = False |
| 67 batch = True | |
| 68 builder_tag = None | 67 builder_tag = None |
| 69 | 68 |
| 70 dart2js_pattern = re.match(DART2JS_BUILDER, builder_name) | 69 dart2js_pattern = re.match(DART2JS_BUILDER, builder_name) |
| 71 dart2js_full_pattern = re.match(DART2JS_FULL_BUILDER, builder_name) | 70 dart2js_full_pattern = re.match(DART2JS_FULL_BUILDER, builder_name) |
| 72 web_pattern = re.match(WEB_BUILDER, builder_name) | 71 web_pattern = re.match(WEB_BUILDER, builder_name) |
| 73 dartium_pattern = re.match(DARTIUM_BUILDER, builder_name) | 72 dartium_pattern = re.match(DARTIUM_BUILDER, builder_name) |
| 74 | 73 |
| 75 if web_pattern: | 74 if web_pattern: |
| 76 compiler = 'dart2js' | 75 compiler = 'dart2js' |
| 77 runtime = web_pattern.group(1) | 76 runtime = web_pattern.group(1) |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 if dart2js_pattern.group(6) == 'checked': | 116 if dart2js_pattern.group(6) == 'checked': |
| 118 checked = True | 117 checked = True |
| 119 if dart2js_pattern.group(6) == 'host-checked': | 118 if dart2js_pattern.group(6) == 'host-checked': |
| 120 host_checked = True | 119 host_checked = True |
| 121 if dart2js_pattern.group(8) == 'host-checked': | 120 if dart2js_pattern.group(8) == 'host-checked': |
| 122 host_checked = True | 121 host_checked = True |
| 123 if dart2js_pattern.group(10) == 'minified': | 122 if dart2js_pattern.group(10) == 'minified': |
| 124 minified = True | 123 minified = True |
| 125 if dart2js_pattern.group(12) == 'x64': | 124 if dart2js_pattern.group(12) == 'x64': |
| 126 arch = 'x64' | 125 arch = 'x64' |
| 126 if dart2js_pattern.group(14) == 'batch': |
| 127 batch = True |
| 127 shard_index = dart2js_pattern.group(15) | 128 shard_index = dart2js_pattern.group(15) |
| 128 total_shards = dart2js_pattern.group(16) | 129 total_shards = dart2js_pattern.group(16) |
| 129 elif dartium_pattern: | 130 elif dartium_pattern: |
| 130 compiler = 'none' | 131 compiler = 'none' |
| 131 runtime = 'dartium' | 132 runtime = 'dartium' |
| 132 mode = 'release' | 133 mode = 'release' |
| 133 system = dartium_pattern.group(1) | 134 system = dartium_pattern.group(1) |
| 134 else : | 135 else : |
| 135 return None | 136 return None |
| 136 | 137 |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 if build_info.mode == 'debug': | 399 if build_info.mode == 'debug': |
| 399 target = 'dart2js_bot_debug' | 400 target = 'dart2js_bot_debug' |
| 400 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, | 401 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, |
| 401 '--arch=' + build_info.arch, target] | 402 '--arch=' + build_info.arch, target] |
| 402 print 'Build SDK and d8: %s' % (' '.join(args)) | 403 print 'Build SDK and d8: %s' % (' '.join(args)) |
| 403 bot.RunProcess(args) | 404 bot.RunProcess(args) |
| 404 | 405 |
| 405 | 406 |
| 406 if __name__ == '__main__': | 407 if __name__ == '__main__': |
| 407 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) | 408 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) |
| OLD | NEW |