Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(345)

Side by Side Diff: tools/bots/compiler.py

Issue 1072833002: Always run in minified mode under csp (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
83 shard_index = web_pattern.group(8) 85 shard_index = web_pattern.group(8)
84 total_shards = web_pattern.group(9) 86 total_shards = web_pattern.group(9)
85 elif dart2js_full_pattern: 87 elif dart2js_full_pattern:
86 mode = 'release' 88 mode = 'release'
87 compiler = 'dart2js' 89 compiler = 'dart2js'
88 dart2js_full = True 90 dart2js_full = True
89 system = dart2js_full_pattern.group(1) 91 system = dart2js_full_pattern.group(1)
90 # windows-ie10 or windows-ie11 means a windows machine with that respective 92 # windows-ie10 or windows-ie11 means a windows machine with that respective
91 # version of ie installed. There is no difference in how we handle testing. 93 # version of ie installed. There is no difference in how we handle testing.
92 # We use the builder tag to pass along this information. 94 # We use the builder tag to pass along this information.
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 if build_info.mode == 'debug': 408 if build_info.mode == 'debug':
407 target = 'dart2js_bot_debug' 409 target = 'dart2js_bot_debug'
408 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, 410 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode,
409 '--arch=' + build_info.arch, target] 411 '--arch=' + build_info.arch, target]
410 print 'Build SDK and d8: %s' % (' '.join(args)) 412 print 'Build SDK and d8: %s' % (' '.join(args))
411 bot.RunProcess(args) 413 bot.RunProcess(args)
412 414
413 415
414 if __name__ == '__main__': 416 if __name__ == '__main__':
415 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) 417 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698