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

Side by Side Diff: tools/promote.py

Issue 1502253002: Revert "Copy entire api-docs directory to release GCloud directory in promote script." (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update comment. Created 5 years 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/bot_utils.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
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 safety_check_on_gs_path(gs_path, to_revision, channel) 124 safety_check_on_gs_path(gs_path, to_revision, channel)
125 Gsutil(['-m', 'rm', '-R', '-f', gs_path]) 125 Gsutil(['-m', 'rm', '-R', '-f', gs_path])
126 wait_for_delete_to_be_consistent_with_list(gs_path) 126 wait_for_delete_to_be_consistent_with_list(gs_path)
127 127
128 # Copy sdk directory. 128 # Copy sdk directory.
129 from_loc = raw_namer.sdk_directory(revision) 129 from_loc = raw_namer.sdk_directory(revision)
130 to_loc = release_namer.sdk_directory(to_revision) 130 to_loc = release_namer.sdk_directory(to_revision)
131 remove_gs_directory(to_loc) 131 remove_gs_directory(to_loc)
132 Gsutil(['-m', 'cp', '-a', 'public-read', '-R', from_loc, to_loc]) 132 Gsutil(['-m', 'cp', '-a', 'public-read', '-R', from_loc, to_loc])
133 133
134 # Copy api-docs directory. 134 # Copy api-docs zipfile.
135 from_loc = raw_namer.apidocs_directory(revision) 135 from_loc = raw_namer.apidocs_zipfilepath(revision)
136 to_loc = release_namer.apidocs_directory(to_revision) 136 to_loc = release_namer.apidocs_zipfilepath(to_revision)
137 remove_gs_directory(to_loc) 137 Gsutil(['-m', 'cp', '-a', 'public-read', from_loc, to_loc])
138 Gsutil(['-m', 'cp', '-a', 'public-read', '-R', from_loc, to_loc])
139 138
140 # Copy dartium directory. 139 # Copy dartium directory.
141 from_loc = raw_namer.dartium_directory(revision) 140 from_loc = raw_namer.dartium_directory(revision)
142 to_loc = release_namer.dartium_directory(to_revision) 141 to_loc = release_namer.dartium_directory(to_revision)
143 remove_gs_directory(to_loc) 142 remove_gs_directory(to_loc)
144 Gsutil(['-m', 'cp', '-a', 'public-read', '-R', from_loc, to_loc]) 143 Gsutil(['-m', 'cp', '-a', 'public-read', '-R', from_loc, to_loc])
145 144
146 # Copy wheezy linux deb and src packages. 145 # Copy wheezy linux deb and src packages.
147 from_loc = raw_namer.linux_packages_directory(revision, 'debian_wheezy') 146 from_loc = raw_namer.linux_packages_directory(revision, 'debian_wheezy')
148 to_loc = release_namer.linux_packages_directory(to_revision, 147 to_loc = release_namer.linux_packages_directory(to_revision,
(...skipping 13 matching lines...) Expand all
162 gsutilTool = join(DART_PATH, 'third_party', 'gsutil', 'gsutil') 161 gsutilTool = join(DART_PATH, 'third_party', 'gsutil', 'gsutil')
163 command = [sys.executable, gsutilTool] + cmd 162 command = [sys.executable, gsutilTool] + cmd
164 if DRY_RUN: 163 if DRY_RUN:
165 print "DRY runnning: %s" % command 164 print "DRY runnning: %s" % command
166 return 165 return
167 return bot_utils.run(command, throw_on_error=throw_on_error) 166 return bot_utils.run(command, throw_on_error=throw_on_error)
168 167
169 168
170 if __name__ == '__main__': 169 if __name__ == '__main__':
171 sys.exit(main()) 170 sys.exit(main())
OLDNEW
« no previous file with comments | « tools/bots/bot_utils.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698