| 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.types import freeze | 5 from recipe_engine.types import freeze |
| 6 | 6 |
| 7 DEPS = [ | 7 DEPS = [ |
| 8 'chromium', | 8 'chromium', |
| 9 'commit_position', | 9 'commit_position', |
| 10 'depot_tools/bot_update', | 10 'depot_tools/bot_update', |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 SPEC = freeze({ | 58 SPEC = freeze({ |
| 59 # The builders have the following parameters: | 59 # The builders have the following parameters: |
| 60 # - compile_targets: the compile targets. | 60 # - compile_targets: the compile targets. |
| 61 # - environment: The environment of the bot (prod / staging). | 61 # - environment: The environment of the bot (prod / staging). |
| 62 # - package_filename: The prefix of the name of the source archive. | 62 # - package_filename: The prefix of the name of the source archive. |
| 63 # - platform: The platform for which the code is compiled. | 63 # - platform: The platform for which the code is compiled. |
| 64 'builders': { | 64 'builders': { |
| 65 'Chromium Linux Codesearch': { | 65 'Chromium Linux Codesearch': { |
| 66 'compile_targets': [ | 66 'compile_targets': [ |
| 67 'All', | 67 'all', |
| 68 ], | 68 ], |
| 69 'environment': 'prod', | 69 'environment': 'prod', |
| 70 'package_filename': 'chromium-src', | 70 'package_filename': 'chromium-src', |
| 71 'platform': 'linux', | 71 'platform': 'linux', |
| 72 }, | 72 }, |
| 73 'ChromiumOS Codesearch': { | 73 'ChromiumOS Codesearch': { |
| 74 'compile_targets': [ | 74 'compile_targets': [ |
| 75 'All', | 75 'all', |
| 76 ], | 76 ], |
| 77 'environment': 'prod', | 77 'environment': 'prod', |
| 78 'package_filename': 'chromiumos-src', | 78 'package_filename': 'chromiumos-src', |
| 79 'platform': 'chromeos', | 79 'platform': 'chromeos', |
| 80 }, | 80 }, |
| 81 'Chromium Linux Codesearch Builder': { | 81 'Chromium Linux Codesearch Builder': { |
| 82 'compile_targets': [ | 82 'compile_targets': [ |
| 83 'All', | 83 'all', |
| 84 ], | 84 ], |
| 85 'environment': 'staging', | 85 'environment': 'staging', |
| 86 'package_filename': 'chromium-src', | 86 'package_filename': 'chromium-src', |
| 87 'platform': 'linux', | 87 'platform': 'linux', |
| 88 }, | 88 }, |
| 89 'ChromiumOS Codesearch Builder': { | 89 'ChromiumOS Codesearch Builder': { |
| 90 'compile_targets': [ | 90 'compile_targets': [ |
| 91 'All', | 91 'all', |
| 92 ], | 92 ], |
| 93 'environment': 'staging', | 93 'environment': 'staging', |
| 94 'package_filename': 'chromiumos-src', | 94 'package_filename': 'chromiumos-src', |
| 95 'platform': 'chromeos', | 95 'platform': 'chromeos', |
| 96 }, | 96 }, |
| 97 }, | 97 }, |
| 98 }) | 98 }) |
| 99 | 99 |
| 100 def GenerateCompilationDatabase(api, debug_path, targets, platform): | 100 def GenerateCompilationDatabase(api, debug_path, targets, platform): |
| 101 # TODO(akuegel): If we ever build on Windows or Mac, this needs to be | 101 # TODO(akuegel): If we ever build on Windows or Mac, this needs to be |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 api.test( | 265 api.test( |
| 266 'full_%s_fail' % _sanitize_nonalpha('ChromiumOS Codesearch')) + | 266 'full_%s_fail' % _sanitize_nonalpha('ChromiumOS Codesearch')) + |
| 267 api.step_data('generate compilation database for chromeos', | 267 api.step_data('generate compilation database for chromeos', |
| 268 stdout=api.raw_io.output('some compilation data')) + | 268 stdout=api.raw_io.output('some compilation data')) + |
| 269 api.step_data('generate compilation database for linux', | 269 api.step_data('generate compilation database for linux', |
| 270 stdout=api.raw_io.output('some compilation data')) + | 270 stdout=api.raw_io.output('some compilation data')) + |
| 271 api.step_data('run translation_unit clang tool', retcode=2) + | 271 api.step_data('run translation_unit clang tool', retcode=2) + |
| 272 api.properties.generic(buildername='ChromiumOS Codesearch', | 272 api.properties.generic(buildername='ChromiumOS Codesearch', |
| 273 mastername='chromium.infra.cron') | 273 mastername='chromium.infra.cron') |
| 274 ) | 274 ) |
| OLD | NEW |