| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 dart2js_full = True | 87 dart2js_full = True |
| 88 system = dart2js_full_pattern.group(1) | 88 system = dart2js_full_pattern.group(1) |
| 89 # windows-ie10 or windows-ie11 means a windows machine with that respective | 89 # windows-ie10 or windows-ie11 means a windows machine with that respective |
| 90 # version of ie installed. There is no difference in how we handle testing. | 90 # version of ie installed. There is no difference in how we handle testing. |
| 91 # We use the builder tag to pass along this information. | 91 # We use the builder tag to pass along this information. |
| 92 if system.startswith('win'): | 92 if system.startswith('win'): |
| 93 ie = dart2js_full_pattern.group(3) | 93 ie = dart2js_full_pattern.group(3) |
| 94 assert ie in IE_VERSIONS | 94 assert ie in IE_VERSIONS |
| 95 builder_tag = 'windows-%s' % ie | 95 builder_tag = 'windows-%s' % ie |
| 96 system = 'windows' | 96 system = 'windows' |
| 97 if dart2js_full_pattern.group(2): | 97 if dart2js_full_pattern.group(4): |
| 98 checked = True | 98 checked = True |
| 99 if dart2js_full_pattern.group(3): | 99 if dart2js_full_pattern.group(5): |
| 100 minified = True | 100 minified = True |
| 101 shard_index = dart2js_full_pattern.group(4) | 101 shard_index = dart2js_full_pattern.group(6) |
| 102 total_shards = dart2js_full_pattern.group(5) | 102 total_shards = dart2js_full_pattern.group(7) |
| 103 elif dart2js_pattern: | 103 elif dart2js_pattern: |
| 104 compiler = 'dart2js' | 104 compiler = 'dart2js' |
| 105 system = dart2js_pattern.group(1) | 105 system = dart2js_pattern.group(1) |
| 106 runtime = 'd8' | 106 runtime = 'd8' |
| 107 arch = 'ia32' | 107 arch = 'ia32' |
| 108 if dart2js_pattern.group(3) == 'jsshell': | 108 if dart2js_pattern.group(3) == 'jsshell': |
| 109 runtime = 'jsshell' | 109 runtime = 'jsshell' |
| 110 mode = dart2js_pattern.group(4) | 110 mode = dart2js_pattern.group(4) |
| 111 # The valid naming parts for checked and host-checked are: | 111 # The valid naming parts for checked and host-checked are: |
| 112 # Empty: checked=False, host_checked=False | 112 # Empty: checked=False, host_checked=False |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 if build_info.mode == 'debug': | 399 if build_info.mode == 'debug': |
| 400 target = 'dart2js_bot_debug' | 400 target = 'dart2js_bot_debug' |
| 401 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, | 401 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, |
| 402 '--arch=' + build_info.arch, target] | 402 '--arch=' + build_info.arch, target] |
| 403 print 'Build SDK and d8: %s' % (' '.join(args)) | 403 print 'Build SDK and d8: %s' % (' '.join(args)) |
| 404 bot.RunProcess(args) | 404 bot.RunProcess(args) |
| 405 | 405 |
| 406 | 406 |
| 407 if __name__ == '__main__': | 407 if __name__ == '__main__': |
| 408 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) | 408 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) |
| OLD | NEW |