| 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 DEPS = [ | 5 DEPS = [ |
| 6 'depot_tools/bot_update', | 6 'depot_tools/bot_update', |
| 7 'depot_tools/gclient', | 7 'depot_tools/gclient', |
| 8 'file', | 8 'file', |
| 9 'gsutil', | 9 'gsutil', |
| 10 'recipe_engine/path', | 10 'recipe_engine/path', |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 'target_arch': 'x64', | 33 'target_arch': 'x64', |
| 34 'clobber': True}, | 34 'clobber': True}, |
| 35 } | 35 } |
| 36 | 36 |
| 37 def tarball_name(arch, mode, revision): | 37 def tarball_name(arch, mode, revision): |
| 38 return 'cross_build_%s_%s_%s.tar.bz2' % (arch, mode, revision) | 38 return 'cross_build_%s_%s_%s.tar.bz2' % (arch, mode, revision) |
| 39 | 39 |
| 40 def RunSteps(api): | 40 def RunSteps(api): |
| 41 api.gclient.set_config('dart') | 41 api.gclient.set_config('dart') |
| 42 api.path.c.dynamic_paths['tools'] = None | 42 api.path.c.dynamic_paths['tools'] = None |
| 43 update_step = api.bot_update.ensure_checkout(force=True) | 43 update_step = api.bot_update.ensure_checkout() |
| 44 revision = update_step.json.output['fixed_revisions']['sdk'] | 44 revision = update_step.json.output['fixed_revisions']['sdk'] |
| 45 | 45 |
| 46 api.path['tools'] = api.path['checkout'].join('tools') | 46 api.path['tools'] = api.path['checkout'].join('tools') |
| 47 buildername = str(api.properties.get('buildername')) # Convert from unicode. | 47 buildername = str(api.properties.get('buildername')) # Convert from unicode. |
| 48 (buildername, _, channel) = buildername.rpartition('-') | 48 (buildername, _, channel) = buildername.rpartition('-') |
| 49 assert channel in ['be', 'dev', 'stable', 'integration'] | 49 assert channel in ['be', 'dev', 'stable', 'integration'] |
| 50 buildername = buildername.replace('-recipe', '') | 50 buildername = buildername.replace('-recipe', '') |
| 51 b = builders[buildername] | 51 b = builders[buildername] |
| 52 | 52 |
| 53 if b.get('clobber', False): | 53 if b.get('clobber', False): |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 api.platform('linux', 64) + | 88 api.platform('linux', 64) + |
| 89 api.properties.generic(mastername='client.dart', | 89 api.properties.generic(mastername='client.dart', |
| 90 buildername='cross-arm-vm-linux-release-recipe-be', | 90 buildername='cross-arm-vm-linux-release-recipe-be', |
| 91 revision='abcd1234efef5656')) | 91 revision='abcd1234efef5656')) |
| 92 yield ( | 92 yield ( |
| 93 api.test('clobber-coverage') + | 93 api.test('clobber-coverage') + |
| 94 api.platform('linux', 64) + | 94 api.platform('linux', 64) + |
| 95 api.properties.generic(mastername='client.dart', | 95 api.properties.generic(mastername='client.dart', |
| 96 buildername='test-coverage-stable', | 96 buildername='test-coverage-stable', |
| 97 revision='abcd1234efef5656')) | 97 revision='abcd1234efef5656')) |
| OLD | NEW |