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

Side by Side Diff: tools/dartium/multivm_archive.py

Issue 270663007: Refactor a copy of dartium/buildbot_annotated_steps.py (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: stray blank line Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « tools/dartium/dartium_bot_utils.py ('k') | tools/dartium/upload_steps.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/python
2
3 # Copyright (c) 2014 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
7 """Archive builds from the multivm and dartium perf builders
8
9 Archive dartium, content_shell, and chromedriver to the old cloud storage bucket
10 gs://dartium-archive.
11 """
12
13 import os
14 import platform
15 import re
16 import subprocess
17 import sys
18
19 import dartium_bot_utils
20 import upload_steps
21
22 SRC_PATH = dartium_bot_utils.srcPath()
23
24 def main():
25 print SRC_PATH
26 multivm_deps = os.path.join(os.path.dirname(SRC_PATH), 'multivm.deps')
27 revision_directory = (multivm_deps if (os.path.isdir(multivm_deps))
28 else os.path.join(SRC_PATH, 'dart'))
29 output, _ = subprocess.Popen(['svn', 'info'],
30 stdout=subprocess.PIPE,
31 stderr=subprocess.STDOUT,
32 shell=(platform.system == 'Windows'),
33 cwd=revision_directory).communicate()
34 revision = re.search('Last Changed Rev: (\d+)', output).group(1)
35 version = revision + '.0'
36 info = upload_steps.BuildInfo(version, revision)
37 if info.is_build:
38 upload_steps.ArchiveAndUpload(info, archive_latest=False)
39
40 if __name__ == '__main__':
41 sys.exit(main())
OLDNEW
« no previous file with comments | « tools/dartium/dartium_bot_utils.py ('k') | tools/dartium/upload_steps.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698