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

Side by Side Diff: native_client_sdk/src/build_tools/nacl-mono-buildbot.py

Issue 10829266: [NaCl SDK] Make mono buildbot script run in the proper directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 | no next file » | 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/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import hashlib 6 import hashlib
7 import json 7 import json
8 import os 8 import os
9 import sys 9 import sys
10 10
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 buildbot_common.Run([buildbot_common.GetGsutil(), 'cp', '-a', 'public-read', 153 buildbot_common.Run([buildbot_common.GetGsutil(), 'cp', '-a', 'public-read',
154 MONO_MANIFEST, GS_MANIFEST_PATH + MONO_MANIFEST]) 154 MONO_MANIFEST, GS_MANIFEST_PATH + MONO_MANIFEST])
155 155
156 156
157 def main(args): 157 def main(args):
158 args = args[1:] 158 args = args[1:]
159 159
160 buildbot_revision = os.environ.get('BUILDBOT_REVISION', '') 160 buildbot_revision = os.environ.get('BUILDBOT_REVISION', '')
161 buildername = os.environ.get('BUILDBOT_BUILDERNAME', '') 161 buildername = os.environ.get('BUILDBOT_BUILDERNAME', '')
162 162
163 os.chdir(buildbot_common.SCRIPT_DIR)
164
163 if buildername == 'linux-sdk-mono32': 165 if buildername == 'linux-sdk-mono32':
164 assert buildbot_revision 166 assert buildbot_revision
165 sdk_revision = buildbot_revision.split(':')[0] 167 sdk_revision = buildbot_revision.split(':')[0]
166 pepper_revision = build_utils.ChromeMajorVersion() 168 pepper_revision = build_utils.ChromeMajorVersion()
167 build_and_upload_mono(sdk_revision, pepper_revision, None, 169 build_and_upload_mono(sdk_revision, pepper_revision, None,
168 'trunk.' + sdk_revision, args) 170 'trunk.' + sdk_revision, args)
169 elif buildername == 'linux-sdk-mono64': 171 elif buildername == 'linux-sdk-mono64':
170 infos = get_sdk_build_info() 172 infos = get_sdk_build_info()
171 for info in infos: 173 for info in infos:
172 # This will put the file in naclmono_19/1/naclmono_19.bz2 for example. 174 # This will put the file in naclmono_19/1/naclmono_19.bz2 for example.
173 upload_path = info['naclmono_name'] + '/' + info['naclmono_rev'] 175 upload_path = info['naclmono_name'] + '/' + info['naclmono_rev']
174 build_and_upload_mono(None, info['pepper_revision'], info['sdk_url'], 176 build_and_upload_mono(None, info['pepper_revision'], info['sdk_url'],
175 upload_path, args) 177 upload_path, args)
176 update_mono_sdk_json(infos) 178 update_mono_sdk_json(infos)
177 179
178 180
179 181
180 if __name__ == '__main__': 182 if __name__ == '__main__':
181 sys.exit(main(sys.argv)) 183 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698