Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 | 4 |
| 5 from recipe_engine import config as recipe_config | |
|
dtu
2016/08/10 01:19:39
Unused import? If it's necessary, include a commen
RobertoCN
2016/08/10 22:59:54
Done.
| |
| 6 | |
| 5 from . import chromium_perf | 7 from . import chromium_perf |
| 6 | 8 |
| 9 import DEPS | |
| 10 CONFIG_CTX = DEPS['gclient'].CONFIG_CTX | |
| 11 | |
| 12 @CONFIG_CTX(includes=['chromium_perf']) | |
| 13 def tryserver_chromium_perf(c): | |
| 14 soln = c.solutions.add() | |
| 15 soln.name = 'catapult' | |
| 16 soln.url = ('https://chromium.googlesource.com/external/github.com/' | |
| 17 'catapult-project/catapult.git') | |
| 7 | 18 |
| 8 SPEC = { | 19 SPEC = { |
| 9 'builders': {}, | 20 'builders': {}, |
| 10 'settings': chromium_perf.SPEC['settings'], | 21 'settings': chromium_perf.SPEC['settings'], |
| 11 } | 22 } |
| 12 | 23 |
| 13 | 24 |
| 14 def _AddBuildSpec(name, platform, target_bits=64): | 25 def _AddBuildSpec(name, platform, target_bits=64): |
| 15 SPEC['builders'][name] = chromium_perf.BuildSpec( | 26 SPEC['builders'][name] = chromium_perf.BuildSpec( |
| 16 'tryserver_chromium_perf', None, platform, target_bits) | 27 'tryserver_chromium_perf', None, platform, target_bits, |
| 28 gclient_config='tryserver_chromium_perf') | |
| 17 | 29 |
| 18 | 30 |
| 19 def _AddTestSpec(name, platform, target_bits=64): | 31 def _AddTestSpec(name, platform, target_bits=64): |
| 20 # TODO(dtu): Change this to TestSpec after try job builds are all offloaded | 32 # TODO(dtu): Change this to TestSpec after try job builds are all offloaded |
| 21 # to builders. | 33 # to builders. |
| 22 spec = chromium_perf.BuildSpec( | 34 spec = chromium_perf.BuildSpec( |
| 23 'tryserver_chromium_perf', None, platform, target_bits) | 35 'tryserver_chromium_perf', None, platform, target_bits, |
| 36 gclient_config='tryserver_chromium_perf') | |
| 24 del spec['tests'] | 37 del spec['tests'] |
| 25 SPEC['builders'][name] = spec | 38 SPEC['builders'][name] = spec |
| 26 | 39 |
| 27 | 40 |
| 28 _AddBuildSpec('win_perf_bisect_builder', 'win', target_bits=32) | 41 _AddBuildSpec('win_perf_bisect_builder', 'win', target_bits=32) |
| 29 _AddBuildSpec('winx64_bisect_builder', 'win') | 42 _AddBuildSpec('winx64_bisect_builder', 'win') |
| 30 _AddBuildSpec('mac_perf_bisect_builder', 'mac') | 43 _AddBuildSpec('mac_perf_bisect_builder', 'mac') |
| 31 _AddBuildSpec('linux_perf_bisect_builder', 'linux') | 44 _AddBuildSpec('linux_perf_bisect_builder', 'linux') |
| 32 | 45 |
| 33 | 46 |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 49 _AddTestSpec('winx64ati_perf_bisect', 'win') | 62 _AddTestSpec('winx64ati_perf_bisect', 'win') |
| 50 _AddTestSpec('winx64intel_perf_bisect', 'win') | 63 _AddTestSpec('winx64intel_perf_bisect', 'win') |
| 51 _AddTestSpec('winx64nvidia_perf_bisect', 'win') | 64 _AddTestSpec('winx64nvidia_perf_bisect', 'win') |
| 52 | 65 |
| 53 _AddTestSpec('mac_10_11_perf_bisect', 'mac') | 66 _AddTestSpec('mac_10_11_perf_bisect', 'mac') |
| 54 _AddTestSpec('mac_10_10_perf_bisect', 'mac') | 67 _AddTestSpec('mac_10_10_perf_bisect', 'mac') |
| 55 _AddTestSpec('mac_retina_perf_bisect', 'mac') | 68 _AddTestSpec('mac_retina_perf_bisect', 'mac') |
| 56 _AddTestSpec('mac_hdd_perf_bisect', 'mac') | 69 _AddTestSpec('mac_hdd_perf_bisect', 'mac') |
| 57 | 70 |
| 58 _AddTestSpec('linux_perf_bisect', 'linux') | 71 _AddTestSpec('linux_perf_bisect', 'linux') |
| OLD | NEW |