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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 dartium_pattern = re.match(DARTIUM_BUILDER, builder_name) | 73 dartium_pattern = re.match(DARTIUM_BUILDER, builder_name) |
74 | 74 |
75 if web_pattern: | 75 if web_pattern: |
76 compiler = 'dart2js' | 76 compiler = 'dart2js' |
77 runtime = web_pattern.group(1) | 77 runtime = web_pattern.group(1) |
78 system = web_pattern.group(2) | 78 system = web_pattern.group(2) |
79 mode = 'release' | 79 mode = 'release' |
80 test_set = web_pattern.group(4) | 80 test_set = web_pattern.group(4) |
81 if web_pattern.group(6) == 'csp': | 81 if web_pattern.group(6) == 'csp': |
82 csp = True | 82 csp = True |
83 # Always run csp mode minified | |
84 minified = True | |
85 shard_index = web_pattern.group(8) | 83 shard_index = web_pattern.group(8) |
86 total_shards = web_pattern.group(9) | 84 total_shards = web_pattern.group(9) |
87 elif dart2js_full_pattern: | 85 elif dart2js_full_pattern: |
88 mode = 'release' | 86 mode = 'release' |
89 compiler = 'dart2js' | 87 compiler = 'dart2js' |
90 dart2js_full = True | 88 dart2js_full = True |
91 system = dart2js_full_pattern.group(1) | 89 system = dart2js_full_pattern.group(1) |
92 # windows-ie10 or windows-ie11 means a windows machine with that respective | 90 # windows-ie10 or windows-ie11 means a windows machine with that respective |
93 # version of ie installed. There is no difference in how we handle testing. | 91 # version of ie installed. There is no difference in how we handle testing. |
94 # We use the builder tag to pass along this information. | 92 # We use the builder tag to pass along this information. |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 if build_info.mode == 'debug': | 406 if build_info.mode == 'debug': |
409 target = 'dart2js_bot_debug' | 407 target = 'dart2js_bot_debug' |
410 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, | 408 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, |
411 '--arch=' + build_info.arch, target] | 409 '--arch=' + build_info.arch, target] |
412 print 'Build SDK and d8: %s' % (' '.join(args)) | 410 print 'Build SDK and d8: %s' % (' '.join(args)) |
413 bot.RunProcess(args) | 411 bot.RunProcess(args) |
414 | 412 |
415 | 413 |
416 if __name__ == '__main__': | 414 if __name__ == '__main__': |
417 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) | 415 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) |
OLD | NEW |