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

Unified Diff: tools/bots/bot_utils.py

Issue 185583003: Archive dartium on android builds (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 9 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 | « no previous file | tools/bots/dartium_android.py » ('j') | tools/bots/dartium_android.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/bots/bot_utils.py
===================================================================
--- tools/bots/bot_utils.py (revision 33324)
+++ tools/bots/bot_utils.py (working copy)
@@ -116,11 +116,18 @@
return '/'.join([self.apidocs_directory(revision),
self.apidocs_zipfilename()])
+ def dartium_android_apk_filepath(self, revision):
+ return '/'.join([self.dartium_android_directory(revision),
+ self.dartium_android_apk_filename()])
+
# Functions for querying gs:// directories
def dartium_directory(self, revision):
return self._variant_directory('dartium', revision)
+ def dartium_android_directory(self, revision):
+ return self._variant_directory('dartium_android', revision)
+
def sdk_directory(self, revision):
return self._variant_directory('sdk', revision)
@@ -142,6 +149,9 @@
# Functions for quering filenames
+ def dartium_android_apk_filename(self):
+ return 'Chrome.apk'
kustermann 2014/03/06 09:20:36 I'd prefer if we can differentiate between release
ricow1 2014/03/06 11:49:05 valid point, I will add that
+
def apidocs_zipfilename(self):
return 'dart-api-docs.zip'
@@ -249,6 +259,14 @@
args += [local_path, remote_path]
self.execute(args)
+ def setGroupReadACL(self, remote_path, group):
+ args = ['acl', 'ch', '-g', '%s:R' % group, remote_path]
+ self.execute(args)
+
+ def setContentType(self, remote_path, content_type):
+ args = ['setmeta', '-h', 'Content-Type:%s' % content_type, remote_path]
+ self.execute(args)
+
def remove(self, remote_path, recursive=False):
assert remote_path.startswith('gs://')
« no previous file with comments | « no previous file | tools/bots/dartium_android.py » ('j') | tools/bots/dartium_android.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698