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

Side by Side Diff: sky/tools/big_red_button.py

Issue 1235593003: Add a git fetch before git reset --hard origin/master in big_red_button.py (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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 | « no previous file | 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 # Copyright 2015 The Chromium Authors. All rights reserved. 2 # Copyright 2015 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # Prepare release script. 6 # Prepare release script.
7 # 7 #
8 # 1) Bump versions: 8 # 1) Bump versions:
9 # sky/sdk/example/demo_launcher/apk/AndroidManifest.xml 9 # sky/sdk/example/demo_launcher/apk/AndroidManifest.xml
10 # mojo/dart/mojo_services/pubspec.yaml 10 # mojo/dart/mojo_services/pubspec.yaml
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 dart_sdk_root = os.path.join(mojo_root, 'third_party/dart-sdk/dart-sdk') 83 dart_sdk_root = os.path.join(mojo_root, 'third_party/dart-sdk/dart-sdk')
84 pub_path = os.path.join(dart_sdk_root, 'bin/pub') 84 pub_path = os.path.join(dart_sdk_root, 'bin/pub')
85 packages_root = os.path.join(sky_sdk_root, 'packages') 85 packages_root = os.path.join(sky_sdk_root, 'packages')
86 86
87 run(mojo_root, ['git', 'pull', '--rebase']) 87 run(mojo_root, ['git', 'pull', '--rebase'])
88 run(mojo_root, ['gclient', 'sync']) 88 run(mojo_root, ['gclient', 'sync'])
89 run(mojo_root, ['mojo/tools/mojob.py', 'gn', '--android', '--release']) 89 run(mojo_root, ['mojo/tools/mojob.py', 'gn', '--android', '--release'])
90 run(mojo_root, ['mojo/tools/mojob.py', 'build', '--android', '--release']) 90 run(mojo_root, ['mojo/tools/mojob.py', 'build', '--android', '--release'])
91 # Run tests? 91 # Run tests?
92 92
93 run(sky_sdk_root, ['git', 'fetch'])
93 run(sky_sdk_root, ['git', 'reset', '--hard', 'origin/master']) 94 run(sky_sdk_root, ['git', 'reset', '--hard', 'origin/master'])
94 run(mojo_root, [ 95 run(mojo_root, [
95 'sky/tools/deploy_sdk.py', 96 'sky/tools/deploy_sdk.py',
96 '--non-interactive', 97 '--non-interactive',
97 '--commit', 98 '--commit',
98 sky_sdk_root 99 sky_sdk_root
99 ]) 100 ])
100 # tag for version? 101 # tag for version?
101 102
103 run(demo_site_root, ['git', 'fetch'])
102 run(demo_site_root, ['git', 'reset', '--hard', 'origin/master']) 104 run(demo_site_root, ['git', 'reset', '--hard', 'origin/master'])
103 run(mojo_root, ['mojo/tools/deploy_domokit_site.py', demo_site_root]) 105 run(mojo_root, ['mojo/tools/deploy_domokit_site.py', demo_site_root])
104 # tag for version? 106 # tag for version?
105 107
106 for package in os.listdir(packages_root): 108 for package in os.listdir(packages_root):
107 package_path = os.path.join(packages_root, package) 109 package_path = os.path.join(packages_root, package)
108 if not os.path.isdir(package_path): 110 if not os.path.isdir(package_path):
109 continue 111 continue
110 run(package_path, [pub_path, 'publish', '--force']) 112 run(package_path, [pub_path, 'publish', '--force'])
111 113
112 run(sky_sdk_root, ['git', 'push']) 114 run(sky_sdk_root, ['git', 'push'])
113 run(demo_site_root, ['git', 'push']) 115 run(demo_site_root, ['git', 'push'])
114 116
115 117
116 if __name__ == '__main__': 118 if __name__ == '__main__':
117 sys.exit(main()) 119 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698