| 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 '--use-sdk', | 171 '--use-sdk', |
| 172 '--report', | 172 '--report', |
| 173 '--write-debug-log', | 173 '--write-debug-log', |
| 174 '--write-test-outcome-log']) | 174 '--write-test-outcome-log']) |
| 175 | 175 |
| 176 if user_test == 'yes': | 176 if user_test == 'yes': |
| 177 cmd.append('--progress=color') | 177 cmd.append('--progress=color') |
| 178 else: | 178 else: |
| 179 cmd.extend(['--progress=buildbot', '-v']) | 179 cmd.extend(['--progress=buildbot', '-v']) |
| 180 | 180 |
| 181 if runtime == 'safari': | 181 cmd.append('--clear_browser_cache') |
| 182 cmd.append('--clear_safari_cache') | |
| 183 | 182 |
| 184 global IsFirstTestStepCall | 183 global IsFirstTestStepCall |
| 185 if IsFirstTestStepCall: | 184 if IsFirstTestStepCall: |
| 186 IsFirstTestStepCall = False | 185 IsFirstTestStepCall = False |
| 187 else: | 186 else: |
| 188 cmd.append('--append_logs') | 187 cmd.append('--append_logs') |
| 189 | 188 |
| 190 if flags: | 189 if flags: |
| 191 cmd.extend(flags) | 190 cmd.extend(flags) |
| 192 cmd.extend(targets) | 191 cmd.extend(targets) |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 """ | 371 """ |
| 373 with bot.BuildStep('Build SDK'): | 372 with bot.BuildStep('Build SDK'): |
| 374 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, | 373 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, |
| 375 '--arch=' + build_info.arch, 'dart2js_bot'] | 374 '--arch=' + build_info.arch, 'dart2js_bot'] |
| 376 print 'Build SDK and d8: %s' % (' '.join(args)) | 375 print 'Build SDK and d8: %s' % (' '.join(args)) |
| 377 bot.RunProcess(args) | 376 bot.RunProcess(args) |
| 378 | 377 |
| 379 | 378 |
| 380 if __name__ == '__main__': | 379 if __name__ == '__main__': |
| 381 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) | 380 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) |
| OLD | NEW |