| 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 'goma', | 6 'goma', |
| 7 'recipe_engine/platform', | 7 'recipe_engine/platform', |
| 8 'recipe_engine/properties', | 8 'recipe_engine/properties', |
| 9 'recipe_engine/raw_io', | 9 'recipe_engine/raw_io', |
| 10 'recipe_engine/step', |
| 10 ] | 11 ] |
| 11 | 12 |
| 12 def RunSteps(api): | 13 def RunSteps(api): |
| 13 api.goma.ensure_goma() | 14 api.goma.ensure_goma() |
| 15 api.step('echo', ['echo', str(api.goma.goma_jobs)]) |
| 14 api.goma.start(env={}) | 16 api.goma.start(env={}) |
| 15 # build something using goma. | 17 # build something using goma. |
| 16 api.goma.stop( | 18 api.goma.stop( |
| 17 ninja_log_outdir=api.properties.get('ninja_log_outdir'), | 19 ninja_log_outdir=api.properties.get('ninja_log_outdir'), |
| 18 ninja_log_compiler=api.properties.get('ninja_log_compiler'), | 20 ninja_log_compiler=api.properties.get('ninja_log_compiler'), |
| 19 ninja_log_command=api.properties.get('ninja_log_command'), | 21 ninja_log_command=api.properties.get('ninja_log_command'), |
| 20 ninja_log_exit_status=api.properties.get('ninja_log_exit_status'), | 22 ninja_log_exit_status=api.properties.get('ninja_log_exit_status'), |
| 21 ) | 23 ) |
| 22 | 24 |
| 23 | 25 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 36 properties.update({ | 38 properties.update({ |
| 37 'build_data_dir': 'build_data_dir', | 39 'build_data_dir': 'build_data_dir', |
| 38 'ninja_log_outdir': 'build_data_dir', | 40 'ninja_log_outdir': 'build_data_dir', |
| 39 'ninja_log_compiler': 'goma', | 41 'ninja_log_compiler': 'goma', |
| 40 'ninja_log_command': 'ninja -j 500', | 42 'ninja_log_command': 'ninja -j 500', |
| 41 'ninja_log_exit_status': '0', | 43 'ninja_log_exit_status': '0', |
| 42 }) | 44 }) |
| 43 | 45 |
| 44 yield (api.test('%s_upload_logs' % platform) + api.platform.name(platform) + | 46 yield (api.test('%s_upload_logs' % platform) + api.platform.name(platform) + |
| 45 api.properties.generic(**properties)) | 47 api.properties.generic(**properties)) |
| OLD | NEW |