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

Side by Side Diff: tools/bots/dartium_android.py

Issue 1166743005: Remove GetSVNRevision from tools/utils.py (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: address comments 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 unified diff | Download patch
« no previous file with comments | « tools/bots/dart_sdk.py ('k') | tools/bots/linux_distribution_support.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
3 # for details. All rights reserved. Use of this source code is governed by a 3 # for details. All rights reserved. Use of this source code is governed by a
4 # BSD-style license that can be found in the LICENSE file. 4 # BSD-style license that can be found in the LICENSE file.
5 5
6 """ 6 """
7 Dartium on Android buildbot steps. 7 Dartium on Android buildbot steps.
8 8
9 Runs steps after the buildbot builds Dartium on Android, 9 Runs steps after the buildbot builds Dartium on Android,
10 which should upload the APK to an attached device, and run 10 which should upload the APK to an attached device, and run
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 return 45 return
46 channel = bot_utils.GetChannelFromName(bot_name) 46 channel = bot_utils.GetChannelFromName(bot_name)
47 namer = bot_utils.GCSNamer(channel=channel) 47 namer = bot_utils.GCSNamer(channel=channel)
48 gsutil = bot_utils.GSUtil() 48 gsutil = bot_utils.GSUtil()
49 49
50 web_link_prefix = 'https://storage.cloud.google.com/' 50 web_link_prefix = 'https://storage.cloud.google.com/'
51 51
52 # Archive content shell 52 # Archive content shell
53 local = os.path.join(options.build_products_dir, CS_LOCATION) 53 local = os.path.join(options.build_products_dir, CS_LOCATION)
54 54
55 for revision in [utils.GetSVNRevision(), 'latest']: 55 for revision in [utils.GetArchiveVersion(), 'latest']:
56 # TODO(whesse): pass in arch and mode from reciepe 56 # TODO(whesse): pass in arch and mode from reciepe
57 remote = namer.dartium_android_apk_filepath(revision, 57 remote = namer.dartium_android_apk_filepath(revision,
58 'content_shell-android', 58 'content_shell-android',
59 'arm', 59 'arm',
60 'release') 60 'release')
61 content_shell_link = string.replace(remote, 'gs://', web_link_prefix) 61 content_shell_link = string.replace(remote, 'gs://', web_link_prefix)
62 UploadSetACL(gsutil, local, remote) 62 UploadSetACL(gsutil, local, remote)
63 print "Uploaded content shell, available from: %s" % content_shell_link 63 print "Uploaded content shell, available from: %s" % content_shell_link
64 64
65 65
(...skipping 14 matching lines...) Expand all
80 if not options.build_products_dir: 80 if not options.build_products_dir:
81 print "No build products directory given." 81 print "No build products directory given."
82 sys.exit(1) 82 sys.exit(1)
83 83
84 UploadAPKs(options) 84 UploadAPKs(options)
85 RunContentShellTests(options) 85 RunContentShellTests(options)
86 sys.exit(0) 86 sys.exit(0)
87 87
88 if __name__ == '__main__': 88 if __name__ == '__main__':
89 main() 89 main()
OLDNEW
« no previous file with comments | « tools/bots/dart_sdk.py ('k') | tools/bots/linux_distribution_support.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698