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

Side by Side Diff: client/tools/buildbot_annotated_steps.py

Issue 27668002: Revert revisions 28764, 28756, 28754, 28751 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 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 | editor/tools/compile_analyzer.py » ('j') | 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 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
3 # for details. All rights reserved. Use of this source code is governed by a 3 # for details. All rights reserved. Use of this source code is governed by a
4 # BSD-style license that can be found in the LICENSE file. 4 # BSD-style license that can be found in the LICENSE file.
5 5
6 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 6 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
7 # Use of this source code is governed by a BSD-style license that can be 7 # Use of this source code is governed by a BSD-style license that can be
8 # found in the LICENSE file. 8 # found in the LICENSE file.
9 9
10 """Dart client buildbot steps 10 """Dart client buildbot steps
11 11
12 Compiles dart client apps with dartc, and run the client tests both in headless 12 Compiles dart client apps with dartc, and run the client tests both in headless
13 chromium and headless dartium. 13 chromium and headless dartium.
14 """ 14 """
15 15
16 import imp 16 import imp
17 import os 17 import os
18 import platform
19 import re 18 import re
20 import socket 19 import socket
21 import subprocess 20 import subprocess
22 import sys 21 import sys
23 22
24 BUILDER_NAME = 'BUILDBOT_BUILDERNAME' 23 BUILDER_NAME = 'BUILDBOT_BUILDERNAME'
25 BUILDER_CLOBBER = 'BUILDBOT_CLOBBER' 24 BUILDER_CLOBBER = 'BUILDBOT_CLOBBER'
26 REVISION = 'BUILDBOT_REVISION' 25 REVISION = 'BUILDBOT_REVISION'
27 26
28 # latest dartium location 27 # latest dartium location
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 # environment variables available. 127 # environment variables available.
129 has_shell = True 128 has_shell = True
130 return subprocess.call([sys.executable, 129 return subprocess.call([sys.executable,
131 os.path.join('tools', 'bots', target + '.py')], 130 os.path.join('tools', 'bots', target + '.py')],
132 env=environment, shell=has_shell) 131 env=environment, shell=has_shell)
133 132
134 def FixJavaHome(): 133 def FixJavaHome():
135 buildbot_javahome = os.getenv('BUILDBOT_JAVA_HOME') 134 buildbot_javahome = os.getenv('BUILDBOT_JAVA_HOME')
136 if buildbot_javahome: 135 if buildbot_javahome:
137 current_pwd = os.getenv('PWD') 136 current_pwd = os.getenv('PWD')
138 if platform.system() != 'Windows': 137 java_home = os.path.join(current_pwd, buildbot_javahome)
139 java_home = '/usr/lib/jvm/java-6-sun' # Hackety-hack. Please remove!
140 else:
141 java_home = os.path.join(current_pwd, buildbot_javahome)
142 java_bin = os.path.join(java_home, 'bin') 138 java_bin = os.path.join(java_home, 'bin')
143 os.environ['JAVA_HOME'] = java_home 139 os.environ['JAVA_HOME'] = java_home
144 os.environ['PATH'] = '%s;%s' % (java_bin, os.environ['PATH']) 140 os.environ['PATH'] = '%s;%s' % (java_bin, os.environ['PATH'])
145 141
146 print 'Setting java home to ', java_home 142 print 'Setting java home to ', java_home
147 sys.stdout.flush() 143 sys.stdout.flush()
148 144
149 def ClobberBuilder(): 145 def ClobberBuilder():
150 """ Clobber the builder before we do the build. 146 """ Clobber the builder before we do the build.
151 """ 147 """
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 status = ProcessBot(name, 'compiler') 204 status = ProcessBot(name, 'compiler')
209 205
210 if status: 206 if status:
211 print '@@@STEP_FAILURE@@@' 207 print '@@@STEP_FAILURE@@@'
212 208
213 return status 209 return status
214 210
215 211
216 if __name__ == '__main__': 212 if __name__ == '__main__':
217 sys.exit(main()) 213 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | editor/tools/compile_analyzer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698