| OLD | NEW |
| 1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
| 3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #!/usr/bin/python | 5 #!/usr/bin/python |
| 6 | 6 |
| 7 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 7 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 8 # Use of this source code is governed by a BSD-style license that can be | 8 # Use of this source code is governed by a BSD-style license that can be |
| 9 # found in the LICENSE file. | 9 # found in the LICENSE file. |
| 10 | 10 |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 print "version = " + version | 160 print "version = " + version |
| 161 print "toolsBuildScript = " + os.path.abspath(toolsBuildScript) | 161 print "toolsBuildScript = " + os.path.abspath(toolsBuildScript) |
| 162 | 162 |
| 163 utils = GetUtils() | 163 utils = GetUtils() |
| 164 outdir = GetOutDir(utils, mode) | 164 outdir = GetOutDir(utils, mode) |
| 165 cmds = [sys.executable, toolsBuildScript, | 165 cmds = [sys.executable, toolsBuildScript, |
| 166 '--mode=' + mode, '--revision=' + version, | 166 '--mode=' + mode, '--revision=' + version, |
| 167 '--name=' + name, '--out=' + outdir] | 167 '--name=' + name, '--out=' + outdir] |
| 168 local_env = os.environ | 168 local_env = os.environ |
| 169 if 'linux' in name: | 169 if 'linux' in name: |
| 170 local_env['JAVA_HOME'] = os.path.join(os.path.expanduser('~'), | 170 javahome = os.path.join(os.path.expanduser('~'), 'jdk1.6.0_25') |
| 171 'jdk1.6.0_25') | 171 local_env['JAVA_HOME'] = javahome |
| 172 local_env['PATH'] = (os.path.join(javahome, 'bin') + |
| 173 os.pathsep + local_env['PATH']) |
| 174 |
| 172 return subprocess.call(cmds, env=local_env) | 175 return subprocess.call(cmds, env=local_env) |
| 173 | 176 |
| 174 def ProcessFrog(): | 177 def ProcessFrog(): |
| 175 ''' | 178 ''' |
| 176 build and test experimental frog build | 179 build and test experimental frog build |
| 177 ''' | 180 ''' |
| 178 print 'ProcessFrog' | 181 print 'ProcessFrog' |
| 179 | 182 |
| 180 return subprocess.call([sys.executable, | 183 return subprocess.call([sys.executable, |
| 181 os.path.join('frog', 'scripts', 'buildbot_annotated_steps.py')]) | 184 os.path.join('frog', 'scripts', 'buildbot_annotated_steps.py')]) |
| (...skipping 18 matching lines...) Expand all Loading... |
| 200 status = ProcessDartClientTests(component, mode, platform, name) | 203 status = ProcessDartClientTests(component, mode, platform, name) |
| 201 | 204 |
| 202 if status: | 205 if status: |
| 203 print '@@@STEP_FAILURE@@@' | 206 print '@@@STEP_FAILURE@@@' |
| 204 | 207 |
| 205 return status | 208 return status |
| 206 | 209 |
| 207 | 210 |
| 208 if __name__ == '__main__': | 211 if __name__ == '__main__': |
| 209 sys.exit(main()) | 212 sys.exit(main()) |
| OLD | NEW |