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