OLD | NEW |
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 |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 | 97 |
98 # TODO(devoncarew): should we move this into GetBuildInfo()? | 98 # TODO(devoncarew): should we move this into GetBuildInfo()? |
99 # get the latest changed revision from the current repository sub-tree | 99 # get the latest changed revision from the current repository sub-tree |
100 version = GetLatestChangedRevision() | 100 version = GetLatestChangedRevision() |
101 | 101 |
102 utils = GetUtils() | 102 utils = GetUtils() |
103 outdir = GetOutDir(utils, mode) | 103 outdir = GetOutDir(utils, mode) |
104 cmds = [sys.executable, toolsBuildScript, | 104 cmds = [sys.executable, toolsBuildScript, |
105 '--mode=' + mode, '--revision=' + version, | 105 '--mode=' + mode, '--revision=' + version, |
106 '--name=' + name, '--out=' + outdir] | 106 '--name=' + name, '--out=' + outdir] |
107 local_env = os.environ | 107 local_env = os.environ.copy() |
| 108 # The buildbot sets BOTO_CONFIG to the chromium specific file, we use the one |
| 109 # in home. |
| 110 if 'BOTO_CONFIG' in local_env: |
| 111 del local_env['BOTO_CONFIG'] |
108 #if 'linux' in name: | 112 #if 'linux' in name: |
109 # javahome = os.path.join(os.path.expanduser('~'), 'jdk1.6.0_25') | 113 # javahome = os.path.join(os.path.expanduser('~'), 'jdk1.6.0_25') |
110 # local_env['JAVA_HOME'] = javahome | 114 # local_env['JAVA_HOME'] = javahome |
111 # local_env['PATH'] = (os.path.join(javahome, 'bin') + | 115 # local_env['PATH'] = (os.path.join(javahome, 'bin') + |
112 # os.pathsep + local_env['PATH']) | 116 # os.pathsep + local_env['PATH']) |
113 | 117 |
114 return subprocess.call(cmds, env=local_env) | 118 return subprocess.call(cmds, env=local_env) |
115 | 119 |
116 def ProcessBot(name, target): | 120 def ProcessBot(name, target): |
117 ''' | 121 ''' |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 status = ProcessBot(name, 'compiler') | 225 status = ProcessBot(name, 'compiler') |
222 | 226 |
223 if status: | 227 if status: |
224 print '@@@STEP_FAILURE@@@' | 228 print '@@@STEP_FAILURE@@@' |
225 | 229 |
226 return status | 230 return status |
227 | 231 |
228 | 232 |
229 if __name__ == '__main__': | 233 if __name__ == '__main__': |
230 sys.exit(main()) | 234 sys.exit(main()) |
OLD | NEW |