| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 cmd.extend([sys.executable, | 114 cmd.extend([sys.executable, |
| 115 os.path.join(os.curdir, 'tools', 'test.py'), | 115 os.path.join(os.curdir, 'tools', 'test.py'), |
| 116 '--step_name=' + step_name, | 116 '--step_name=' + step_name, |
| 117 '--mode=' + mode, | 117 '--mode=' + mode, |
| 118 '--compiler=' + compiler, | 118 '--compiler=' + compiler, |
| 119 '--runtime=' + runtime, | 119 '--runtime=' + runtime, |
| 120 '--time', | 120 '--time', |
| 121 '--use-sdk', | 121 '--use-sdk', |
| 122 '--report']) | 122 '--report']) |
| 123 | 123 |
| 124 # TODO(ricow/kustermann): Issue 7339 |
| 125 if runtime == "safari": |
| 126 cmd.append('--nobatch') |
| 127 |
| 124 if user_test == 'yes': | 128 if user_test == 'yes': |
| 125 cmd.append('--progress=color') | 129 cmd.append('--progress=color') |
| 126 else: | 130 else: |
| 127 cmd.extend(['--progress=buildbot', '-v']) | 131 cmd.extend(['--progress=buildbot', '-v']) |
| 128 | 132 |
| 129 if flags: | 133 if flags: |
| 130 cmd.extend(flags) | 134 cmd.extend(flags) |
| 131 cmd.extend(targets) | 135 cmd.extend(targets) |
| 132 | 136 |
| 133 print 'running %s' % (' '.join(cmd)) | 137 print 'running %s' % (' '.join(cmd)) |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 """ | 307 """ |
| 304 with bot.BuildStep('Build SDK and d8'): | 308 with bot.BuildStep('Build SDK and d8'): |
| 305 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, | 309 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, |
| 306 'dart2js_bot'] | 310 'dart2js_bot'] |
| 307 print 'Build SDK and d8: %s' % (' '.join(args)) | 311 print 'Build SDK and d8: %s' % (' '.join(args)) |
| 308 bot.RunProcess(args) | 312 bot.RunProcess(args) |
| 309 | 313 |
| 310 | 314 |
| 311 if __name__ == '__main__': | 315 if __name__ == '__main__': |
| 312 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) | 316 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) |
| OLD | NEW |