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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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.copy() | 107 local_env = os.environ.copy() |
108 # The buildbot sets BOTO_CONFIG to the chromium specific file, we use the one | 108 # The buildbot sets AWS_CREDENTIAL_FILE/BOTO_CONFIG to the chromium specific |
109 # in home. | 109 # file, we use the one in home. |
110 if 'BOTO_CONFIG' in local_env: | 110 if 'BOTO_CONFIG' in local_env: |
111 del local_env['BOTO_CONFIG'] | 111 del local_env['BOTO_CONFIG'] |
| 112 if 'AWS_CREDENTIAL_FILE' in local_env: |
| 113 del local_env['AWS_CREDENTIAL_FILE'] |
112 #if 'linux' in name: | 114 #if 'linux' in name: |
113 # javahome = os.path.join(os.path.expanduser('~'), 'jdk1.6.0_25') | 115 # javahome = os.path.join(os.path.expanduser('~'), 'jdk1.6.0_25') |
114 # local_env['JAVA_HOME'] = javahome | 116 # local_env['JAVA_HOME'] = javahome |
115 # local_env['PATH'] = (os.path.join(javahome, 'bin') + | 117 # local_env['PATH'] = (os.path.join(javahome, 'bin') + |
116 # os.pathsep + local_env['PATH']) | 118 # os.pathsep + local_env['PATH']) |
117 | 119 |
118 return subprocess.call(cmds, env=local_env) | 120 return subprocess.call(cmds, env=local_env) |
119 | 121 |
120 def ProcessBot(name, target): | 122 def ProcessBot(name, target): |
121 ''' | 123 ''' |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 status = ProcessBot(name, 'compiler') | 227 status = ProcessBot(name, 'compiler') |
226 | 228 |
227 if status: | 229 if status: |
228 print '@@@STEP_FAILURE@@@' | 230 print '@@@STEP_FAILURE@@@' |
229 | 231 |
230 return status | 232 return status |
231 | 233 |
232 | 234 |
233 if __name__ == '__main__': | 235 if __name__ == '__main__': |
234 sys.exit(main()) | 236 sys.exit(main()) |
OLD | NEW |