OLD | NEW |
---|---|
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 import subprocess | 10 import subprocess |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
74 utils.GetBuildRoot(BUILD_OS, 'release', 'x64'), | 74 utils.GetBuildRoot(BUILD_OS, 'release', 'x64'), |
75 'dartsdk-%s-64.zip' % BUILD_OS) | 75 'dartsdk-%s-64.zip' % BUILD_OS) |
76 FileDelete(sdk32_zip) | 76 FileDelete(sdk32_zip) |
77 FileDelete(sdk64_zip) | 77 FileDelete(sdk64_zip) |
78 CreateZip(sdk32_path, sdk32_zip) | 78 CreateZip(sdk32_path, sdk32_zip) |
79 CreateZip(sdk64_path, sdk64_zip) | 79 CreateZip(sdk64_path, sdk64_zip) |
80 DartArchiveUploadSDKs(BUILD_OS, sdk32_zip, sdk64_zip) | 80 DartArchiveUploadSDKs(BUILD_OS, sdk32_zip, sdk64_zip) |
81 | 81 |
82 def DartArchiveUploadSDKs(system, sdk32_zip, sdk64_zip): | 82 def DartArchiveUploadSDKs(system, sdk32_zip, sdk64_zip): |
83 namer = bot_utils.GCSNamer(CHANNEL, bot_utils.ReleaseType.RAW) | 83 namer = bot_utils.GCSNamer(CHANNEL, bot_utils.ReleaseType.RAW) |
84 revision = utils.GetArchiveVersion() | 84 git_number = utils.GetArchiveVersion() |
kustermann
2016/08/05 11:32:37
Is this really a number of a semantic version? If
Bill Hesse
2016/08/05 22:07:28
This is a consecutive number for 'be', which I wan
| |
85 for revision in [revision, 'latest']: | 85 git_hash = 'hash/' + utils.GetGitRevision() |
Bill Hesse
2016/08/05 11:28:11
Should I use 'hash/%s' % instead of 'hash/' +?
kustermann
2016/08/05 11:32:37
Yes, I think this is the "python way" of doing it
| |
86 for revision in [git_number, git_hash, 'latest']: | |
86 path32 = namer.sdk_zipfilepath(revision, system, 'ia32', 'release') | 87 path32 = namer.sdk_zipfilepath(revision, system, 'ia32', 'release') |
87 path64 = namer.sdk_zipfilepath(revision, system, 'x64', 'release') | 88 path64 = namer.sdk_zipfilepath(revision, system, 'x64', 'release') |
88 DartArchiveFile(sdk32_zip, path32, checksum_files=True) | 89 DartArchiveFile(sdk32_zip, path32, checksum_files=True) |
89 DartArchiveFile(sdk64_zip, path64, checksum_files=True) | 90 DartArchiveFile(sdk64_zip, path64, checksum_files=True) |
90 | 91 |
91 def DartArchiveUnstrippedBinaries(): | 92 def DartArchiveUnstrippedBinaries(): |
92 namer = bot_utils.GCSNamer(CHANNEL, bot_utils.ReleaseType.RAW) | 93 namer = bot_utils.GCSNamer(CHANNEL, bot_utils.ReleaseType.RAW) |
93 revision = utils.GetArchiveVersion() | 94 revision = utils.GetArchiveVersion() |
94 binary = namer.unstripped_filename(BUILD_OS) | 95 binary = namer.unstripped_filename(BUILD_OS) |
95 ia32_binary = os.path.join(bot_utils.DART_DIR, | 96 ia32_binary = os.path.join(bot_utils.DART_DIR, |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
219 | 220 |
220 if __name__ == '__main__': | 221 if __name__ == '__main__': |
221 # We always clobber the bot, to make sure releases are build from scratch | 222 # We always clobber the bot, to make sure releases are build from scratch |
222 force = CHANNEL != bot_utils.Channel.BLEEDING_EDGE | 223 force = CHANNEL != bot_utils.Channel.BLEEDING_EDGE |
223 bot.Clobber(force=force) | 224 bot.Clobber(force=force) |
224 | 225 |
225 CreateUploadSDK() | 226 CreateUploadSDK() |
226 if BUILD_OS == 'linux': | 227 if BUILD_OS == 'linux': |
227 CreateUploadVersionFile() | 228 CreateUploadVersionFile() |
228 CreateUploadAPIDocs() | 229 CreateUploadAPIDocs() |
OLD | NEW |