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

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

Issue 3004233002: Split the dart_sdk bot script into two runs, one with only apidocs. (Closed)
Patch Set: Created 3 years, 3 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
« 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 7 import os
8 import os.path 8 import os.path
9 import shutil 9 import shutil
10 import sys 10 import sys
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 local_sha256 = bot_utils.CreateSha256ChecksumFile(local_path, 217 local_sha256 = bot_utils.CreateSha256ChecksumFile(local_path,
218 mangled_filename) 218 mangled_filename)
219 gsutil.upload(local_sha256, remote_path + '.sha256sum', public=True) 219 gsutil.upload(local_sha256, remote_path + '.sha256sum', public=True)
220 220
221 def Run(command, env=None): 221 def Run(command, env=None):
222 print "Running %s" % ' '.join(command) 222 print "Running %s" % ' '.join(command)
223 print "Environment %s" % env 223 print "Environment %s" % env
224 return bot.RunProcess(command, env=env) 224 return bot.RunProcess(command, env=env)
225 225
226 if __name__ == '__main__': 226 if __name__ == '__main__':
227 # We always clobber the bot, to make sure releases are build from scratch 227 if len(sys.argv) > 1 and sys.argv[2] == 'api_docs':
228 force = CHANNEL != bot_utils.Channel.BLEEDING_EDGE 228 if BUILD_OS == 'linux':
229 bot.Clobber(force=force) 229 CreateUploadAPIDocs()
230 else:
231 # We always clobber the bot, to make sure releases are build from scratch
232 force = CHANNEL != bot_utils.Channel.BLEEDING_EDGE
233 bot.Clobber(force=force)
230 234
231 CreateUploadSDK() 235 CreateUploadSDK()
232 if BUILD_OS == 'linux': 236 if BUILD_OS == 'linux':
233 CreateUploadVersionFile() 237 CreateUploadVersionFile()
234 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