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

Side by Side Diff: tools/bots/dart_sdk.py

Issue 1133113002: Only build and archive docs on linux (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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 # 2 #
3 # Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
4 # for details. All rights reserved. Use of this source code is governed by a 4 # for details. All rights reserved. Use of this source code is governed by a
5 # BSD-style license that can be found in the LICENSE file. 5 # BSD-style license that can be found in the LICENSE file.
6 6
7 import os.path 7 import os.path
8 import shutil 8 import shutil
9 import sys 9 import sys
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 namer = bot_utils.GCSNamer(CHANNEL, bot_utils.ReleaseType.RAW) 55 namer = bot_utils.GCSNamer(CHANNEL, bot_utils.ReleaseType.RAW)
56 revision = utils.GetSVNRevision() 56 revision = utils.GetSVNRevision()
57 for revision in [revision, 'latest']: 57 for revision in [revision, 'latest']:
58 path32 = namer.sdk_zipfilepath(revision, system, 'ia32', 'release') 58 path32 = namer.sdk_zipfilepath(revision, system, 'ia32', 'release')
59 path64 = namer.sdk_zipfilepath(revision, system, 'x64', 'release') 59 path64 = namer.sdk_zipfilepath(revision, system, 'x64', 'release')
60 DartArchiveFile(sdk32_zip, path32, checksum_files=True) 60 DartArchiveFile(sdk32_zip, path32, checksum_files=True)
61 DartArchiveFile(sdk64_zip, path64, checksum_files=True) 61 DartArchiveFile(sdk64_zip, path64, checksum_files=True)
62 62
63 def CreateUploadSDK(): 63 def CreateUploadSDK():
64 BuildSDK() 64 BuildSDK()
65 CreateUploadSDKZips() 65 if BUILD_OS == 'linux':
66 CreateUploadSDKZips()
66 67
67 def CreateUploadAPIDocs(): 68 def CreateUploadAPIDocs():
68 api_path = os.path.join(bot_utils.DART_DIR, 69 api_path = os.path.join(bot_utils.DART_DIR,
69 utils.GetBuildRoot(BUILD_OS, 'release', 'ia32'), 70 utils.GetBuildRoot(BUILD_OS, 'release', 'ia32'),
70 'api_docs') 71 'api_docs')
71 api_zip = os.path.join(bot_utils.DART_DIR, 72 api_zip = os.path.join(bot_utils.DART_DIR,
72 utils.GetBuildRoot(BUILD_OS, 'release', 'ia32'), 73 utils.GetBuildRoot(BUILD_OS, 'release', 'ia32'),
73 'dart-api-docs.zip') 74 'dart-api-docs.zip')
74 shutil.rmtree(api_path, ignore_errors=True) 75 shutil.rmtree(api_path, ignore_errors=True)
75 FileDelete(api_zip) 76 FileDelete(api_zip)
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 mangled_filename) 168 mangled_filename)
168 gsutil.upload(local_sha256, remote_path + '.sha256sum', public=True) 169 gsutil.upload(local_sha256, remote_path + '.sha256sum', public=True)
169 170
170 def Run(command): 171 def Run(command):
171 print "Running %s" % ' '.join(command) 172 print "Running %s" % ' '.join(command)
172 return bot.RunProcess(command) 173 return bot.RunProcess(command)
173 174
174 if __name__ == '__main__': 175 if __name__ == '__main__':
175 CreateUploadSDK() 176 CreateUploadSDK()
176 CreateUploadAPIDocs() 177 CreateUploadAPIDocs()
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