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 | 7 |
8 DEPS = [ | 8 DEPS = [ |
9 'depot_tools/bot_update', | 9 'depot_tools/bot_update', |
10 'chromium', | 10 'chromium', |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 if os.path.exists(sys.argv[2]): | 57 if os.path.exists(sys.argv[2]): |
58 shutil.rmtree(sys.argv[2]) | 58 shutil.rmtree(sys.argv[2]) |
59 shutil.move(sys.argv[1], sys.argv[2])""", | 59 shutil.move(sys.argv[1], sys.argv[2])""", |
60 args=[src_dir, dst_dir]) | 60 args=[src_dir, dst_dir]) |
61 | 61 |
62 | 62 |
63 def ConfigureChromiumBuilder(api, recipe_config): | 63 def ConfigureChromiumBuilder(api, recipe_config): |
64 api.chromium.set_config(recipe_config['chromium_config'], | 64 api.chromium.set_config(recipe_config['chromium_config'], |
65 **recipe_config.get('chromium_config_kwargs', | 65 **recipe_config.get('chromium_config_kwargs', |
66 {'BUILD_CONFIG': 'Release'})) | 66 {'BUILD_CONFIG': 'Release'})) |
67 api.chromium.apply_config('chromium_deterministic_build') | |
68 api.gclient.set_config(recipe_config['gclient_config'], | 67 api.gclient.set_config(recipe_config['gclient_config'], |
69 **recipe_config.get('gclient_config_kwargs', {})) | 68 **recipe_config.get('gclient_config_kwargs', {})) |
70 | 69 |
71 api.chromium.cleanup_temp() | 70 api.chromium.cleanup_temp() |
72 | 71 |
73 # Checkout chromium. | 72 # Checkout chromium. |
74 api.bot_update.ensure_checkout(force=True) | 73 api.bot_update.ensure_checkout(force=True) |
75 | 74 |
76 | 75 |
77 def ConfigureAndroidBuilder(api, recipe_config): | 76 def ConfigureAndroidBuilder(api, recipe_config): |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 _sanitize_nonalpha(buildername)) | 149 _sanitize_nonalpha(buildername)) |
151 yield ( | 150 yield ( |
152 api.test(test_name) + | 151 api.test(test_name) + |
153 api.properties.scheduled() + | 152 api.properties.scheduled() + |
154 api.properties.generic(buildername=buildername, | 153 api.properties.generic(buildername=buildername, |
155 mastername=mastername) + | 154 mastername=mastername) + |
156 api.platform(DETERMINISTIC_BUILDERS[buildername]['platform'], 32) + | 155 api.platform(DETERMINISTIC_BUILDERS[buildername]['platform'], 32) + |
157 api.properties(configuration='Release') + | 156 api.properties(configuration='Release') + |
158 api.step_data('remove_build_metadata', retcode=1) | 157 api.step_data('remove_build_metadata', retcode=1) |
159 ) | 158 ) |
OLD | NEW |