| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 if dart2js_pattern.group(6) == 'host-checked': | 118 if dart2js_pattern.group(6) == 'host-checked': |
| 119 host_checked = True | 119 host_checked = True |
| 120 if dart2js_pattern.group(8) == 'host-checked': | 120 if dart2js_pattern.group(8) == 'host-checked': |
| 121 host_checked = True | 121 host_checked = True |
| 122 if dart2js_pattern.group(10) == 'minified': | 122 if dart2js_pattern.group(10) == 'minified': |
| 123 minified = True | 123 minified = True |
| 124 if dart2js_pattern.group(12) == 'x64': | 124 if dart2js_pattern.group(12) == 'x64': |
| 125 arch = 'x64' | 125 arch = 'x64' |
| 126 if dart2js_pattern.group(14) == 'batch': | 126 if dart2js_pattern.group(14) == 'batch': |
| 127 batch = True | 127 batch = True |
| 128 # This is temporary, slowly enabling this. | |
| 129 if system == 'linux' or system.startswith('mac'): | |
| 130 batch = True | |
| 131 shard_index = dart2js_pattern.group(15) | 128 shard_index = dart2js_pattern.group(15) |
| 132 total_shards = dart2js_pattern.group(16) | 129 total_shards = dart2js_pattern.group(16) |
| 133 elif dartium_pattern: | 130 elif dartium_pattern: |
| 134 compiler = 'none' | 131 compiler = 'none' |
| 135 runtime = 'dartium' | 132 runtime = 'dartium' |
| 136 mode = 'release' | 133 mode = 'release' |
| 137 system = dartium_pattern.group(1) | 134 system = dartium_pattern.group(1) |
| 138 else : | 135 else : |
| 139 return None | 136 return None |
| 140 | 137 |
| 141 # We have both win7 and win8 bots, functionality is the same. | 138 # We have both win7 and win8 bots, functionality is the same. |
| 142 if system.startswith('win'): | 139 if system.startswith('win'): |
| 143 system = 'windows' | 140 system = 'windows' |
| 144 | 141 |
| 145 # We have both 10.8 and 10.7 bots, functionality is the same. | 142 # We have both 10.8 and 10.7 bots, functionality is the same. |
| 146 if system == 'mac10.8' or system == 'mac10.7': | 143 if system == 'mac10.8' or system == 'mac10.7': |
| 147 system = 'mac' | 144 system = 'mac' |
| 148 | 145 |
| 146 # This is temporary, slowly enabling this. |
| 147 if system == 'linux' or system == 'mac': |
| 148 batch = True |
| 149 |
| 149 if (system == 'windows' and platform.system() != 'Windows') or ( | 150 if (system == 'windows' and platform.system() != 'Windows') or ( |
| 150 system == 'mac' and platform.system() != 'Darwin') or ( | 151 system == 'mac' and platform.system() != 'Darwin') or ( |
| 151 system == 'linux' and platform.system() != 'Linux'): | 152 system == 'linux' and platform.system() != 'Linux'): |
| 152 print ('Error: You cannot emulate a buildbot with a platform different ' | 153 print ('Error: You cannot emulate a buildbot with a platform different ' |
| 153 'from your own.') | 154 'from your own.') |
| 154 return None | 155 return None |
| 155 return bot.BuildInfo(compiler, runtime, mode, system, checked, host_checked, | 156 return bot.BuildInfo(compiler, runtime, mode, system, checked, host_checked, |
| 156 minified, shard_index, total_shards, is_buildbot, | 157 minified, shard_index, total_shards, is_buildbot, |
| 157 test_set, csp, arch, dart2js_full, batch=batch, | 158 test_set, csp, arch, dart2js_full, batch=batch, |
| 158 builder_tag=builder_tag) | 159 builder_tag=builder_tag) |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 if build_info.mode == 'debug': | 403 if build_info.mode == 'debug': |
| 403 target = 'dart2js_bot_debug' | 404 target = 'dart2js_bot_debug' |
| 404 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, | 405 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, |
| 405 '--arch=' + build_info.arch, target] | 406 '--arch=' + build_info.arch, target] |
| 406 print 'Build SDK and d8: %s' % (' '.join(args)) | 407 print 'Build SDK and d8: %s' % (' '.join(args)) |
| 407 bot.RunProcess(args) | 408 bot.RunProcess(args) |
| 408 | 409 |
| 409 | 410 |
| 410 if __name__ == '__main__': | 411 if __name__ == '__main__': |
| 411 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) | 412 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) |
| OLD | NEW |