OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2014 the V8 project authors. All rights reserved. | 2 # Copyright 2014 the V8 project 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 import argparse | 6 import argparse |
7 import json | 7 import json |
8 import os | 8 import os |
9 import sys | 9 import sys |
10 import urllib | 10 import urllib |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 def RunStep(self): | 92 def RunStep(self): |
93 if self._options.roll: | 93 if self._options.roll: |
94 args = [ | 94 args = [ |
95 "--author", self._options.author, | 95 "--author", self._options.author, |
96 "--reviewer", self._options.reviewer, | 96 "--reviewer", self._options.reviewer, |
97 "--chromium", self._options.chromium, | 97 "--chromium", self._options.chromium, |
98 "--last-roll", self["last_roll"], | 98 "--last-roll", self["last_roll"], |
99 "--use-commit-queue", | 99 "--use-commit-queue", |
100 ] | 100 ] |
101 if self._options.sheriff: | 101 if self._options.sheriff: |
102 args.extend([ | 102 args.append("--sheriff") |
103 "--sheriff", "--googlers-mapping", self._options.googlers_mapping]) | |
104 if self._options.dry_run: | 103 if self._options.dry_run: |
105 args.extend(["--dry-run"]) | 104 args.append("--dry-run") |
106 if self._options.work_dir: | 105 if self._options.work_dir: |
107 args.extend(["--work-dir", self._options.work_dir]) | 106 args.extend(["--work-dir", self._options.work_dir]) |
108 self._side_effect_handler.Call(chromium_roll.ChromiumRoll().Run, args) | 107 self._side_effect_handler.Call(chromium_roll.ChromiumRoll().Run, args) |
109 | 108 |
110 | 109 |
111 class AutoRoll(ScriptsBase): | 110 class AutoRoll(ScriptsBase): |
112 def _PrepareOptions(self, parser): | 111 def _PrepareOptions(self, parser): |
113 parser.add_argument("-c", "--chromium", required=True, | 112 parser.add_argument("-c", "--chromium", required=True, |
114 help=("The path to your Chromium src/ " | 113 help=("The path to your Chromium src/ " |
115 "directory to automate the V8 roll.")) | 114 "directory to automate the V8 roll.")) |
(...skipping 19 matching lines...) Expand all Loading... |
135 return [ | 134 return [ |
136 CheckActiveRoll, | 135 CheckActiveRoll, |
137 DetectLastRoll, | 136 DetectLastRoll, |
138 CheckClusterFuzz, | 137 CheckClusterFuzz, |
139 RollChromium, | 138 RollChromium, |
140 ] | 139 ] |
141 | 140 |
142 | 141 |
143 if __name__ == "__main__": # pragma: no cover | 142 if __name__ == "__main__": # pragma: no cover |
144 sys.exit(AutoRoll().Run()) | 143 sys.exit(AutoRoll().Run()) |
OLD | NEW |