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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 dartdoc_zip = os.path.join(bot_utils.DART_DIR, | 110 dartdoc_zip = os.path.join(bot_utils.DART_DIR, |
111 utils.GetBuildRoot(BUILD_OS, 'release', 'ia32'), | 111 utils.GetBuildRoot(BUILD_OS, 'release', 'ia32'), |
112 'dartdocs-api.zip') | 112 'dartdocs-api.zip') |
113 shutil.rmtree(api_path, ignore_errors=True) | 113 shutil.rmtree(api_path, ignore_errors=True) |
114 FileDelete(api_zip) | 114 FileDelete(api_zip) |
115 BuildAPIDocs() | 115 BuildAPIDocs() |
116 UploadApiDocs(api_path) | 116 UploadApiDocs(api_path) |
117 UploadApiLatestFile() | 117 UploadApiLatestFile() |
118 CreateZip(api_path, api_zip) | 118 CreateZip(api_path, api_zip) |
119 DartArchiveUploadAPIDocs(api_zip) | 119 DartArchiveUploadAPIDocs(api_zip) |
120 BuildDartdocAPIDocs(dartdoc_dir) | |
121 UploadDartdocApiDocs(dartdoc_dir) | |
122 CreateZip(dartdoc_dir, dartdoc_zip) | |
123 DartArchiveUploadDartdocAPIDocs(dartdoc_zip) | |
124 | 120 |
125 def DartArchiveUploadAPIDocs(api_zip): | 121 def DartArchiveUploadAPIDocs(api_zip): |
126 namer = bot_utils.GCSNamer(CHANNEL, bot_utils.ReleaseType.RAW) | 122 namer = bot_utils.GCSNamer(CHANNEL, bot_utils.ReleaseType.RAW) |
127 revision = utils.GetArchiveVersion() | 123 revision = utils.GetArchiveVersion() |
128 for revision in [revision, 'latest']: | 124 for revision in [revision, 'latest']: |
129 destination = (namer.apidocs_directory(revision) + '/' + | 125 destination = (namer.apidocs_directory(revision) + '/' + |
130 namer.apidocs_zipfilename()) | 126 namer.apidocs_zipfilename()) |
131 DartArchiveFile(api_zip, destination, checksum_files=False) | 127 DartArchiveFile(api_zip, destination, checksum_files=False) |
132 | 128 |
133 def UploadApiDocs(dir_name): | 129 def UploadApiDocs(dir_name): |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 | 243 |
248 if __name__ == '__main__': | 244 if __name__ == '__main__': |
249 # We always clobber the bot, to make sure releases are build from scratch | 245 # We always clobber the bot, to make sure releases are build from scratch |
250 force = CHANNEL != bot_utils.Channel.BLEEDING_EDGE | 246 force = CHANNEL != bot_utils.Channel.BLEEDING_EDGE |
251 bot.Clobber(force=force) | 247 bot.Clobber(force=force) |
252 | 248 |
253 CreateUploadSDK() | 249 CreateUploadSDK() |
254 if BUILD_OS == 'linux': | 250 if BUILD_OS == 'linux': |
255 CreateUploadVersionFile() | 251 CreateUploadVersionFile() |
256 CreateUploadAPIDocs() | 252 CreateUploadAPIDocs() |
OLD | NEW |