| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 | 5 |
| 6 # Recipe module for Skia Swarming compile. | 6 # Recipe module for Skia Swarming compile. |
| 7 | 7 |
| 8 | 8 |
| 9 DEPS = [ | 9 DEPS = [ |
| 10 'depot_tools/infra_paths', |
| 10 'recipe_engine/json', | 11 'recipe_engine/json', |
| 11 'recipe_engine/path', | 12 'recipe_engine/path', |
| 12 'recipe_engine/platform', | 13 'recipe_engine/platform', |
| 13 'recipe_engine/properties', | 14 'recipe_engine/properties', |
| 14 'skia', | 15 'skia', |
| 15 ] | 16 ] |
| 16 | 17 |
| 17 | 18 |
| 18 TEST_BUILDERS = { | 19 TEST_BUILDERS = { |
| 19 'client.skia.compile': { | 20 'client.skia.compile': { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 45 for builder in builders_by_slave: | 46 for builder in builders_by_slave: |
| 46 test = ( | 47 test = ( |
| 47 api.test(builder) + | 48 api.test(builder) + |
| 48 api.properties(buildername=builder, | 49 api.properties(buildername=builder, |
| 49 mastername=mastername, | 50 mastername=mastername, |
| 50 slavename=slavename, | 51 slavename=slavename, |
| 51 buildnumber=5, | 52 buildnumber=5, |
| 52 revision='abc123', | 53 revision='abc123', |
| 53 swarm_out_dir='[SWARM_OUT_DIR]') + | 54 swarm_out_dir='[SWARM_OUT_DIR]') + |
| 54 api.path.exists( | 55 api.path.exists( |
| 55 api.path['slave_build'].join('skia'), | 56 api.infra_paths['slave_build'].join('skia'), |
| 56 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') | 57 api.infra_paths['slave_build'].join('tmp', 'uninteresting_hashes.t
xt') |
| 57 ) | 58 ) |
| 58 ) | 59 ) |
| 59 if 'Win' in builder: | 60 if 'Win' in builder: |
| 60 test += api.platform('win', 64) | 61 test += api.platform('win', 64) |
| 61 | 62 |
| 62 if 'Android' in builder: | 63 if 'Android' in builder: |
| 63 ccache = '/usr/bin/ccache' if 'Appurify' in builder else None | 64 ccache = '/usr/bin/ccache' if 'Appurify' in builder else None |
| 64 test += api.step_data('has ccache?', | 65 test += api.step_data('has ccache?', |
| 65 stdout=api.json.output({'ccache':ccache})) | 66 stdout=api.json.output({'ccache':ccache})) |
| 66 if 'Trybot' in builder: | 67 if 'Trybot' in builder: |
| 67 test += api.properties(issue=500, | 68 test += api.properties(issue=500, |
| 68 patchset=1, | 69 patchset=1, |
| 69 rietveld='https://codereview.chromium.org') | 70 rietveld='https://codereview.chromium.org') |
| 70 | 71 |
| 71 yield test | 72 yield test |
| OLD | NEW |