| 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 if runtime == "safari": | 138 if runtime == "safari": |
| 139 cmd.append('--nobatch') | 139 cmd.append('--nobatch') |
| 140 | 140 |
| 141 if user_test == 'yes': | 141 if user_test == 'yes': |
| 142 cmd.append('--progress=color') | 142 cmd.append('--progress=color') |
| 143 else: | 143 else: |
| 144 cmd.extend(['--progress=buildbot', '-v']) | 144 cmd.extend(['--progress=buildbot', '-v']) |
| 145 | 145 |
| 146 # TODO(ricow): temporary hack to run on fyi with --use_browser_controller | 146 # TODO(ricow): temporary hack to run on fyi with --use_browser_controller |
| 147 if (os.environ.get('BUILDBOT_SCHEDULER') == "fyi-main" and | 147 if (os.environ.get('BUILDBOT_SCHEDULER') == "fyi-main" and |
| 148 (runtime == 'drt' or runtime == 'firefox')): | 148 (runtime == 'chrome' or runtime == 'firefox')): |
| 149 cmd.append('--use_browser_controller') | 149 cmd.append('--use_browser_controller') |
| 150 | 150 |
| 151 global IsFirstTestStepCall | 151 global IsFirstTestStepCall |
| 152 if IsFirstTestStepCall: | 152 if IsFirstTestStepCall: |
| 153 IsFirstTestStepCall = False | 153 IsFirstTestStepCall = False |
| 154 else: | 154 else: |
| 155 cmd.append('--append_logs') | 155 cmd.append('--append_logs') |
| 156 | 156 |
| 157 if flags: | 157 if flags: |
| 158 cmd.extend(flags) | 158 cmd.extend(flags) |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 """ | 330 """ |
| 331 with bot.BuildStep('Build SDK and d8'): | 331 with bot.BuildStep('Build SDK and d8'): |
| 332 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, | 332 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, |
| 333 'dart2js_bot'] | 333 'dart2js_bot'] |
| 334 print 'Build SDK and d8: %s' % (' '.join(args)) | 334 print 'Build SDK and d8: %s' % (' '.join(args)) |
| 335 bot.RunProcess(args) | 335 bot.RunProcess(args) |
| 336 | 336 |
| 337 | 337 |
| 338 if __name__ == '__main__': | 338 if __name__ == '__main__': |
| 339 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) | 339 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) |
| OLD | NEW |