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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 revision = utils.GetArchiveVersion() |
85 for revision in [revision, 'latest']: | 85 for revision in [revision, 'latest']: |
86 path32 = namer.sdk_zipfilepath(revision, system, 'ia32', 'release') | 86 path32 = namer.sdk_zipfilepath(revision, system, 'ia32', 'release') |
87 path64 = namer.sdk_zipfilepath(revision, system, 'x64', 'release') | 87 path64 = namer.sdk_zipfilepath(revision, system, 'x64', 'release') |
88 DartArchiveFile(sdk32_zip, path32, checksum_files=True) | 88 DartArchiveFile(sdk32_zip, path32, checksum_files=True) |
89 DartArchiveFile(sdk64_zip, path64, checksum_files=True) | 89 DartArchiveFile(sdk64_zip, path64, checksum_files=True) |
90 | 90 |
| 91 def DartArchiveUnstrippedBinaries(): |
| 92 namer = bot_utils.GCSNamer(CHANNEL, bot_utils.ReleaseType.RAW) |
| 93 revision = utils.GetArchiveVersion() |
| 94 binary = namer.unstripped_filename(BUILD_OS) |
| 95 ia32_binary = os.path.join(bot_utils.DART_DIR, |
| 96 utils.GetBuildRoot(BUILD_OS, 'release', 'ia32'), |
| 97 binary) |
| 98 x64_binary = os.path.join(bot_utils.DART_DIR, |
| 99 utils.GetBuildRoot(BUILD_OS, 'release', 'x64'), |
| 100 binary) |
| 101 gs_ia32_path = namer.unstripped_filepath(revision, BUILD_OS, 'ia32') |
| 102 gs_x64_path = namer.unstripped_filepath(revision, BUILD_OS, 'x64') |
| 103 DartArchiveFile(ia32_binary, gs_ia32_path) |
| 104 DartArchiveFile(x64_binary, gs_x64_path) |
| 105 |
91 def CreateUploadSDK(): | 106 def CreateUploadSDK(): |
92 BuildSDK() | 107 BuildSDK() |
93 CreateUploadSDKZips() | 108 CreateUploadSDKZips() |
| 109 DartArchiveUnstrippedBinaries() |
94 | 110 |
95 def CreateUploadAPIDocs(): | 111 def CreateUploadAPIDocs(): |
96 dartdoc_dir = os.path.join(bot_utils.DART_DIR, | 112 dartdoc_dir = os.path.join(bot_utils.DART_DIR, |
97 utils.GetBuildRoot(BUILD_OS, 'release', 'ia32'), | 113 utils.GetBuildRoot(BUILD_OS, 'release', 'ia32'), |
98 'gen-dartdocs') | 114 'gen-dartdocs') |
99 dartdoc_zip = os.path.join(bot_utils.DART_DIR, | 115 dartdoc_zip = os.path.join(bot_utils.DART_DIR, |
100 utils.GetBuildRoot(BUILD_OS, 'release', 'ia32'), | 116 utils.GetBuildRoot(BUILD_OS, 'release', 'ia32'), |
101 'dartdocs-api.zip') | 117 'dartdocs-api.zip') |
102 UploadApiLatestFile() | 118 UploadApiLatestFile() |
103 BuildDartdocAPIDocs(dartdoc_dir) | 119 BuildDartdocAPIDocs(dartdoc_dir) |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 | 219 |
204 if __name__ == '__main__': | 220 if __name__ == '__main__': |
205 # We always clobber the bot, to make sure releases are build from scratch | 221 # We always clobber the bot, to make sure releases are build from scratch |
206 force = CHANNEL != bot_utils.Channel.BLEEDING_EDGE | 222 force = CHANNEL != bot_utils.Channel.BLEEDING_EDGE |
207 bot.Clobber(force=force) | 223 bot.Clobber(force=force) |
208 | 224 |
209 CreateUploadSDK() | 225 CreateUploadSDK() |
210 if BUILD_OS == 'linux': | 226 if BUILD_OS == 'linux': |
211 CreateUploadVersionFile() | 227 CreateUploadVersionFile() |
212 CreateUploadAPIDocs() | 228 CreateUploadAPIDocs() |
OLD | NEW |