| 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 print "mode = " + mode | 158 print "mode = " + mode |
| 159 print "name = " + name | 159 print "name = " + name |
| 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 return subprocess.call(cmds) | 168 local_env = os.environ |
| 169 if 'linux' in name: |
| 170 local_env['JAVA_HOME'] = os.path.join(os.path.expanduser('~'), |
| 171 'jdk1.6.0_25') |
| 172 return subprocess.call(cmds, env=local_env) |
| 169 | 173 |
| 170 def ProcessFrog(): | 174 def ProcessFrog(): |
| 171 ''' | 175 ''' |
| 172 build and test experimental frog build | 176 build and test experimental frog build |
| 173 ''' | 177 ''' |
| 174 print 'ProcessFrog' | 178 print 'ProcessFrog' |
| 175 | 179 |
| 176 return subprocess.call([sys.executable, | 180 return subprocess.call([sys.executable, |
| 177 os.path.join('frog', 'scripts', 'buildbot_annotated_steps.py')]) | 181 os.path.join('frog', 'scripts', 'buildbot_annotated_steps.py')]) |
| 178 | 182 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 196 status = ProcessDartClientTests(component, mode, platform, name) | 200 status = ProcessDartClientTests(component, mode, platform, name) |
| 197 | 201 |
| 198 if status: | 202 if status: |
| 199 print '@@@STEP_FAILURE@@@' | 203 print '@@@STEP_FAILURE@@@' |
| 200 | 204 |
| 201 return status | 205 return status |
| 202 | 206 |
| 203 | 207 |
| 204 if __name__ == '__main__': | 208 if __name__ == '__main__': |
| 205 sys.exit(main()) | 209 sys.exit(main()) |
| OLD | NEW |