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

Side by Side Diff: tools/promote.py

Issue 1133573002: Remove promote script from editor/build and put it under tools (where it really belongs) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 | « editor/build/promote.py ('k') | no next file » | 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/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2012, 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 # Dart Editor promote tools. 7 # Dart Editor promote tools.
8 8
9 import imp 9 import imp
10 import optparse 10 import optparse
11 import os 11 import os
12 import subprocess 12 import subprocess
13 import sys 13 import sys
14 import time 14 import time
15 import urllib 15 import urllib
16 import bots.bot_utils as bot_utils
16 17
17 from os.path import join 18 from os.path import join
18 19
19 DART_PATH = os.path.abspath(os.path.join(__file__, '..', '..', '..')) 20 DART_PATH = os.path.abspath(os.path.join(__file__, '..', '..'))
20 BOT_UTILS = os.path.abspath(os.path.join(
21 DART_PATH, 'tools', 'bots', 'bot_utils.py'))
22
23 bot_utils = imp.load_source('bot_utils', BOT_UTILS)
24 21
25 def BuildOptions(): 22 def BuildOptions():
26 usage = """usage: %prog promote [options] 23 usage = """usage: %prog promote [options]
27 where: 24 where:
28 promote - Will promote builds from raw/signed locations to release 25 promote - Will promote builds from raw/signed locations to release
29 locations. 26 locations.
30 27
31 Example: Promote revision r29962 on dev channel: 28 Example: Promote revision r29962 on dev channel:
32 python editor/build/promote.py promote --channel=dev --revision=29962 29 python editor/build/promote.py promote --channel=dev --revision=29962
33 """ 30 """
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 promote('latest') 164 promote('latest')
168 165
169 def Gsutil(cmd, throw_on_error=True): 166 def Gsutil(cmd, throw_on_error=True):
170 gsutilTool = join(DART_PATH, 'third_party', 'gsutil', 'gsutil') 167 gsutilTool = join(DART_PATH, 'third_party', 'gsutil', 'gsutil')
171 return bot_utils.run([sys.executable, gsutilTool] + cmd, 168 return bot_utils.run([sys.executable, gsutilTool] + cmd,
172 throw_on_error=throw_on_error) 169 throw_on_error=throw_on_error)
173 170
174 171
175 if __name__ == '__main__': 172 if __name__ == '__main__':
176 sys.exit(main()) 173 sys.exit(main())
OLDNEW
« no previous file with comments | « editor/build/promote.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698