OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2016 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2016 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 """This script takes a Clang revision as an argument, it then | 6 """This script takes a Clang revision as an argument, it then |
7 creates a feature branch, puts this revision into update.py, uploads | 7 creates a feature branch, puts this revision into update.py, uploads |
8 a CL, triggers Clang Upload try bots, and tells what to do next""" | 8 a CL, triggers Clang Upload try bots, and tells what to do next""" |
9 | 9 |
10 import argparse | 10 import argparse |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 clang_old_revision = PatchRevision(clang_revision, clang_sub_revision) | 65 clang_old_revision = PatchRevision(clang_revision, clang_sub_revision) |
66 | 66 |
67 Git(["checkout", "-b", "clang-{}-{}".format( | 67 Git(["checkout", "-b", "clang-{}-{}".format( |
68 clang_revision, clang_sub_revision)]) | 68 clang_revision, clang_sub_revision)]) |
69 Git(["add", UPDATE_PY_PATH]) | 69 Git(["add", UPDATE_PY_PATH]) |
70 | 70 |
71 commit_message = 'Ran `{}`.'.format(' '.join(sys.argv)) | 71 commit_message = 'Ran `{}`.'.format(' '.join(sys.argv)) |
72 Git(["commit", "-m", "Roll clang {}:{}.\n\n{}".format( | 72 Git(["commit", "-m", "Roll clang {}:{}.\n\n{}".format( |
73 clang_old_revision, clang_revision, commit_message)]) | 73 clang_old_revision, clang_revision, commit_message)]) |
74 | 74 |
75 Git(["cl", "upload"]) | 75 Git(["cl", "upload", "-f"]) |
76 Git(["cl", "try", "-b", "linux_upload_clang", "-r", git_revision]) | 76 Git(["cl", "try", "-b", "linux_upload_clang", "-r", git_revision]) |
77 Git(["cl", "try", "-b", "mac_upload_clang", "-r", git_revision]) | 77 Git(["cl", "try", "-b", "mac_upload_clang", "-r", git_revision]) |
78 Git(["cl", "try", "-b", "win_upload_clang", "-r", git_revision]) | 78 Git(["cl", "try", "-b", "win_upload_clang", "-r", git_revision]) |
79 | 79 |
80 print ("Please, wait until the try bots succeeded " | 80 print ("Please, wait until the try bots succeeded " |
81 "and then push the binaries to goma.") | 81 "and then push the binaries to goma.") |
82 | 82 |
83 if __name__ == '__main__': | 83 if __name__ == '__main__': |
84 sys.exit(main()) | 84 sys.exit(main()) |
OLD | NEW |