| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 def TestStepName(name, flags): | 106 def TestStepName(name, flags): |
| 107 # Filter out flags with '=' as this breaks the /stats feature of the | 107 # Filter out flags with '=' as this breaks the /stats feature of the |
| 108 # build bot. | 108 # build bot. |
| 109 flags = [x for x in flags if not '=' in x] | 109 flags = [x for x in flags if not '=' in x] |
| 110 return ('%s tests %s' % (name, ' '.join(flags))).strip() | 110 return ('%s tests %s' % (name, ' '.join(flags))).strip() |
| 111 | 111 |
| 112 # TODO(ricow): remove this once we have browser controller drivers for all | 112 # TODO(ricow): remove this once we have browser controller drivers for all |
| 113 # supported platforms. | 113 # supported platforms. |
| 114 def UseBrowserController(runtime, system): | 114 def UseBrowserController(runtime, system): |
| 115 supported_platforms = { | 115 supported_platforms = { |
| 116 'linux': ['ff', 'chromeOnAndroid', 'chrome', 'safari'], | 116 'linux': ['ff', 'chromeOnAndroid', 'chrome'], |
| 117 'mac': [], | 117 'mac': ['safari'], |
| 118 'windows': [] | 118 'windows': [] |
| 119 } | 119 } |
| 120 # Platforms that we run on the fyi waterfall only. | 120 # Platforms that we run on the fyi waterfall only. |
| 121 fyi_supported_platforms = { | 121 fyi_supported_platforms = { |
| 122 'linux': [], | 122 'linux': [], |
| 123 'mac': [], | 123 'mac': [], |
| 124 'windows': [] | 124 'windows': [] |
| 125 } | 125 } |
| 126 | 126 |
| 127 if (runtime in supported_platforms[system]): | 127 if (runtime in supported_platforms[system]): |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 """ | 375 """ |
| 376 with bot.BuildStep('Build SDK and d8'): | 376 with bot.BuildStep('Build SDK and d8'): |
| 377 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, | 377 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, |
| 378 'dart2js_bot'] | 378 'dart2js_bot'] |
| 379 print 'Build SDK and d8: %s' % (' '.join(args)) | 379 print 'Build SDK and d8: %s' % (' '.join(args)) |
| 380 bot.RunProcess(args) | 380 bot.RunProcess(args) |
| 381 | 381 |
| 382 | 382 |
| 383 if __name__ == '__main__': | 383 if __name__ == '__main__': |
| 384 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) | 384 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) |
| OLD | NEW |