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) |
120 | 124 |
121 def DartArchiveUploadAPIDocs(api_zip): | 125 def DartArchiveUploadAPIDocs(api_zip): |
122 namer = bot_utils.GCSNamer(CHANNEL, bot_utils.ReleaseType.RAW) | 126 namer = bot_utils.GCSNamer(CHANNEL, bot_utils.ReleaseType.RAW) |
123 revision = utils.GetArchiveVersion() | 127 revision = utils.GetArchiveVersion() |
124 for revision in [revision, 'latest']: | 128 for revision in [revision, 'latest']: |
125 destination = (namer.apidocs_directory(revision) + '/' + | 129 destination = (namer.apidocs_directory(revision) + '/' + |
126 namer.apidocs_zipfilename()) | 130 namer.apidocs_zipfilename()) |
127 DartArchiveFile(api_zip, destination, checksum_files=False) | 131 DartArchiveFile(api_zip, destination, checksum_files=False) |
128 | 132 |
129 def UploadApiDocs(dir_name): | 133 def UploadApiDocs(dir_name): |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 | 247 |
244 if __name__ == '__main__': | 248 if __name__ == '__main__': |
245 # We always clobber the bot, to make sure releases are build from scratch | 249 # We always clobber the bot, to make sure releases are build from scratch |
246 force = CHANNEL != bot_utils.Channel.BLEEDING_EDGE | 250 force = CHANNEL != bot_utils.Channel.BLEEDING_EDGE |
247 bot.Clobber(force=force) | 251 bot.Clobber(force=force) |
248 | 252 |
249 CreateUploadSDK() | 253 CreateUploadSDK() |
250 if BUILD_OS == 'linux': | 254 if BUILD_OS == 'linux': |
251 CreateUploadVersionFile() | 255 CreateUploadVersionFile() |
252 CreateUploadAPIDocs() | 256 CreateUploadAPIDocs() |
OLD | NEW |