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

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

Issue 1160793008: Actually clobber on be sdk bots if the flag is set (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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.path 7 import os.path
8 import shutil 8 import shutil
9 import sys 9 import sys
10 10
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 gsutil.upload(local_md5sum, remote_path + '.md5sum', public=True) 180 gsutil.upload(local_md5sum, remote_path + '.md5sum', public=True)
181 local_sha256 = bot_utils.CreateSha256ChecksumFile(local_path, 181 local_sha256 = bot_utils.CreateSha256ChecksumFile(local_path,
182 mangled_filename) 182 mangled_filename)
183 gsutil.upload(local_sha256, remote_path + '.sha256sum', public=True) 183 gsutil.upload(local_sha256, remote_path + '.sha256sum', public=True)
184 184
185 def Run(command): 185 def Run(command):
186 print "Running %s" % ' '.join(command) 186 print "Running %s" % ' '.join(command)
187 return bot.RunProcess(command) 187 return bot.RunProcess(command)
188 188
189 if __name__ == '__main__': 189 if __name__ == '__main__':
190 if CHANNEL != bot_utils.Channel.BLEEDING_EDGE: 190 # We always clobber the bot, to make sure releases are build from scratch
191 # We always clobber the bot, to make sure releases are build from scratch 191 force = CHANNEL != bot_utils.Channel.BLEEDING_EDGE:
192 bot.Clobber(force=True) 192 bot.Clobber(force=force)
193 193
194 CreateUploadSDK() 194 CreateUploadSDK()
195 if BUILD_OS == 'linux': 195 if BUILD_OS == 'linux':
196 CreateUploadVersionFile() 196 CreateUploadVersionFile()
197 CreateUploadAPIDocs() 197 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