| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 """Define the supported projects.""" | 4 """Define the supported projects.""" |
| 5 | 5 |
| 6 import json | 6 import json |
| 7 import logging | 7 import logging |
| 8 import os | 8 import os |
| 9 import re | 9 import re |
| 10 import sys | 10 import sys |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 [re.escape(user)]), | 177 [re.escape(user)]), |
| 178 ] | 178 ] |
| 179 verifiers = [] | 179 verifiers = [] |
| 180 prereq_builder = 'blink_presubmit' | 180 prereq_builder = 'blink_presubmit' |
| 181 prereq_tests = ['presubmit'] | 181 prereq_tests = ['presubmit'] |
| 182 step_verifiers = [ | 182 step_verifiers = [ |
| 183 try_job_steps.TryJobSteps(builder_name=prereq_builder, | 183 try_job_steps.TryJobSteps(builder_name=prereq_builder, |
| 184 steps=prereq_tests)] | 184 steps=prereq_tests)] |
| 185 if not no_try: | 185 if not no_try: |
| 186 blink_tests = [ | 186 blink_tests = [ |
| 187 'blink_heap_unittests', |
| 187 'blink_platform_unittests', | 188 'blink_platform_unittests', |
| 188 'webkit_lint', | 189 'webkit_lint', |
| 189 'webkit_python_tests', | 190 'webkit_python_tests', |
| 190 'webkit_tests', | 191 'webkit_tests', |
| 191 'webkit_unit_tests', | 192 'webkit_unit_tests', |
| 192 'wtf_unittests', | 193 'wtf_unittests', |
| 193 ] | 194 ] |
| 194 | 195 |
| 195 # A "compile-only" bot runs the webkit_lint tests (which are fast) | 196 # A "compile-only" bot runs the webkit_lint tests (which are fast) |
| 196 # in order to pick up the default build targets. We don't use the | 197 # in order to pick up the default build targets. We don't use the |
| (...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 760 """List the projects that can be managed by the commit queue.""" | 761 """List the projects that can be managed by the commit queue.""" |
| 761 return sorted( | 762 return sorted( |
| 762 x[5:] for x in dir(sys.modules[__name__]) if x.startswith('_gen_')) | 763 x[5:] for x in dir(sys.modules[__name__]) if x.startswith('_gen_')) |
| 763 | 764 |
| 764 | 765 |
| 765 def load_project(project, user, root_dir, rietveld_obj, no_try): | 766 def load_project(project, user, root_dir, rietveld_obj, no_try): |
| 766 """Loads the specified project.""" | 767 """Loads the specified project.""" |
| 767 assert os.path.isabs(root_dir) | 768 assert os.path.isabs(root_dir) |
| 768 return getattr(sys.modules[__name__], '_gen_' + project)( | 769 return getattr(sys.modules[__name__], '_gen_' + project)( |
| 769 user, root_dir, rietveld_obj, no_try) | 770 user, root_dir, rietveld_obj, no_try) |
| OLD | NEW |