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

Unified Diff: tools/bots/bot_utils.py

Issue 1164423008: add dartdoc to third_party/pkg, run dartdoc to generate docs for sdk and upload to GCS (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: fix long line 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « DEPS ('k') | tools/bots/dart_sdk.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/bots/bot_utils.py
diff --git a/tools/bots/bot_utils.py b/tools/bots/bot_utils.py
index 565ee5ae3043a4cf40586881b3af4ba5de9cd71a..36467245b1628e11665dfb5ea0fd63335ea7104f 100644
--- a/tools/bots/bot_utils.py
+++ b/tools/bots/bot_utils.py
@@ -169,6 +169,9 @@ class GCSNamer(object):
def apidocs_zipfilename(self):
return 'dart-api-docs.zip'
+ def dartdocs_zipfilename(self):
+ return 'dartdocs-gen-api.zip'
+
def editor_zipfilename(self, system, arch):
return 'darteditor-%s-%s.zip' % (
SYSTEM_RENAMES[system], ARCH_RENAMES[arch])
@@ -203,6 +206,11 @@ class GCSNamerApiDocs(object):
assert len('%s' % revision) > 0
return '%s/channels/%s/%s' % (self.bucket, self.channel, revision)
+ def dartdocs_dirpath(self, revision):
+ assert len('%s' % revision) > 0
+ return '%s/channels/%s/gen-dartdocs/%s' % (self.bucket,
+ self.channel, revision)
+
def docs_latestpath(self, revision):
assert len('%s' % revision) > 0
return '%s/channels/%s/latest.txt' % (self.bucket, self.channel)
@@ -278,10 +286,14 @@ class GSUtil(object):
shell=(GSUtil.GSUTIL_IS_SHELL_SCRIPT and
sys.platform == 'win32'))
- def upload(self, local_path, remote_path, recursive=False, public=False):
+ def upload(self, local_path, remote_path, recursive=False,
+ public=False, multithread=False):
assert remote_path.startswith('gs://')
- args = ['cp']
+ if multithread:
+ args = ['-m', 'cp']
+ else:
+ args = ['cp']
if public:
args += ['-a', 'public-read']
if recursive:
« no previous file with comments | « DEPS ('k') | tools/bots/dart_sdk.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698