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

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

Issue 457403002: Revert revision 39082 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 if dart2js_pattern.group(6) == 'host-checked': 118 if dart2js_pattern.group(6) == 'host-checked':
119 host_checked = True 119 host_checked = True
120 if dart2js_pattern.group(8) == 'host-checked': 120 if dart2js_pattern.group(8) == 'host-checked':
121 host_checked = True 121 host_checked = True
122 if dart2js_pattern.group(10) == 'minified': 122 if dart2js_pattern.group(10) == 'minified':
123 minified = True 123 minified = True
124 if dart2js_pattern.group(12) == 'x64': 124 if dart2js_pattern.group(12) == 'x64':
125 arch = 'x64' 125 arch = 'x64'
126 if dart2js_pattern.group(14) == 'batch': 126 if dart2js_pattern.group(14) == 'batch':
127 batch = True 127 batch = True
128 # This is temporary, slowly enabling this.
129 if system == 'linux' or system.startswith('mac'):
130 batch = True
131
128 shard_index = dart2js_pattern.group(15) 132 shard_index = dart2js_pattern.group(15)
129 total_shards = dart2js_pattern.group(16) 133 total_shards = dart2js_pattern.group(16)
130 elif dartium_pattern: 134 elif dartium_pattern:
131 compiler = 'none' 135 compiler = 'none'
132 runtime = 'dartium' 136 runtime = 'dartium'
133 mode = 'release' 137 mode = 'release'
134 system = dartium_pattern.group(1) 138 system = dartium_pattern.group(1)
135 else : 139 else :
136 return None 140 return None
137 141
138 # We have both win7 and win8 bots, functionality is the same. 142 # We have both win7 and win8 bots, functionality is the same.
139 if system.startswith('win'): 143 if system.startswith('win'):
140 system = 'windows' 144 system = 'windows'
141 145
142 # We have both 10.8 and 10.7 bots, functionality is the same. 146 # We have both 10.8 and 10.7 bots, functionality is the same.
143 if system == 'mac10.8' or system == 'mac10.7': 147 if system == 'mac10.8' or system == 'mac10.7':
144 system = 'mac' 148 system = 'mac'
145 149
146 # This is temporary, slowly enabling this.
147 if system == 'linux' or system == 'mac':
148 batch = True
149
150 if (system == 'windows' and platform.system() != 'Windows') or ( 150 if (system == 'windows' and platform.system() != 'Windows') or (
151 system == 'mac' and platform.system() != 'Darwin') or ( 151 system == 'mac' and platform.system() != 'Darwin') or (
152 system == 'linux' and platform.system() != 'Linux'): 152 system == 'linux' and platform.system() != 'Linux'):
153 print ('Error: You cannot emulate a buildbot with a platform different ' 153 print ('Error: You cannot emulate a buildbot with a platform different '
154 'from your own.') 154 'from your own.')
155 return None 155 return None
156 return bot.BuildInfo(compiler, runtime, mode, system, checked, host_checked, 156 return bot.BuildInfo(compiler, runtime, mode, system, checked, host_checked,
157 minified, shard_index, total_shards, is_buildbot, 157 minified, shard_index, total_shards, is_buildbot,
158 test_set, csp, arch, dart2js_full, batch=batch, 158 test_set, csp, arch, dart2js_full, batch=batch,
159 builder_tag=builder_tag) 159 builder_tag=builder_tag)
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 if build_info.mode == 'debug': 403 if build_info.mode == 'debug':
404 target = 'dart2js_bot_debug' 404 target = 'dart2js_bot_debug'
405 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, 405 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode,
406 '--arch=' + build_info.arch, target] 406 '--arch=' + build_info.arch, target]
407 print 'Build SDK and d8: %s' % (' '.join(args)) 407 print 'Build SDK and d8: %s' % (' '.join(args))
408 bot.RunProcess(args) 408 bot.RunProcess(args)
409 409
410 410
411 if __name__ == '__main__': 411 if __name__ == '__main__':
412 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) 412 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