| 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 """Recipe to test the deterministic build. | 5 """Recipe to test the deterministic build. |
| 6 | 6 |
| 7 Waterfall page: https://build.chromium.org/p/chromium.swarm/waterfall | 7 Waterfall page: https://build.chromium.org/p/chromium.swarm/waterfall |
| 8 | 8 |
| 9 """ | 9 """ |
| 10 | 10 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 shutil.rmtree(sys.argv[2]) | 74 shutil.rmtree(sys.argv[2]) |
| 75 shutil.move(sys.argv[1], sys.argv[2])""", | 75 shutil.move(sys.argv[1], sys.argv[2])""", |
| 76 args=[src_dir, dst_dir]) | 76 args=[src_dir, dst_dir]) |
| 77 | 77 |
| 78 | 78 |
| 79 def ConfigureChromiumBuilder(api, recipe_config): | 79 def ConfigureChromiumBuilder(api, recipe_config): |
| 80 api.chromium.set_config(recipe_config['chromium_config'], | 80 api.chromium.set_config(recipe_config['chromium_config'], |
| 81 **recipe_config.get('chromium_config_kwargs', | 81 **recipe_config.get('chromium_config_kwargs', |
| 82 {'BUILD_CONFIG': 'Release'})) | 82 {'BUILD_CONFIG': 'Release'})) |
| 83 api.chromium.apply_config('clobber') | 83 api.chromium.apply_config('clobber') |
| 84 api.gclient.set_config(recipe_config['gclient_config'], GIT_MODE=True, | 84 api.gclient.set_config(recipe_config['gclient_config'], |
| 85 **recipe_config.get('gclient_config_kwargs', {})) | 85 **recipe_config.get('gclient_config_kwargs', {})) |
| 86 | 86 |
| 87 api.chromium.cleanup_temp() | 87 api.chromium.cleanup_temp() |
| 88 | 88 |
| 89 # Checkout chromium. | 89 # Checkout chromium. |
| 90 api.bot_update.ensure_checkout(force=True) | 90 api.bot_update.ensure_checkout(force=True) |
| 91 | 91 |
| 92 | 92 |
| 93 def ConfigureAndroidBuilder(api, recipe_config): | 93 def ConfigureAndroidBuilder(api, recipe_config): |
| 94 kwargs = { | 94 kwargs = { |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 _sanitize_nonalpha(buildername)) | 179 _sanitize_nonalpha(buildername)) |
| 180 yield ( | 180 yield ( |
| 181 api.test(test_name) + | 181 api.test(test_name) + |
| 182 api.properties.scheduled() + | 182 api.properties.scheduled() + |
| 183 api.properties.generic(buildername=buildername, | 183 api.properties.generic(buildername=buildername, |
| 184 mastername=mastername) + | 184 mastername=mastername) + |
| 185 api.platform(DETERMINISTIC_BUILDERS[buildername]['platform'], 32) + | 185 api.platform(DETERMINISTIC_BUILDERS[buildername]['platform'], 32) + |
| 186 api.properties(configuration='Release') + | 186 api.properties(configuration='Release') + |
| 187 api.step_data('remove_build_metadata', retcode=1) | 187 api.step_data('remove_build_metadata', retcode=1) |
| 188 ) | 188 ) |
| OLD | NEW |