Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(689)

Side by Side Diff: scripts/slave/recipe_modules/chromium/example.py

Issue 2466793002: Add option to not use compile.py in chromium recipe_module (Closed)
Patch Set: rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 DEPS = [ 5 DEPS = [
6 'chromium', 6 'chromium',
7 'chromium_tests', 7 'chromium_tests',
8 'recipe_engine/platform', 8 'recipe_engine/platform',
9 'recipe_engine/properties', 9 'recipe_engine/properties',
10 ] 10 ]
11 11
12
12 def RunSteps(api): 13 def RunSteps(api):
13 mastername = api.properties.get('mastername') 14 mastername = api.properties.get('mastername')
14 buildername = api.properties.get('buildername') 15 buildername = api.properties.get('buildername')
15 use_goma_module = api.properties.get('use_goma_module', False) 16 use_goma_module = api.properties.get('use_goma_module', False)
16 out_dir = api.properties.get('out_dir', None) 17 out_dir = api.properties.get('out_dir', None)
17 18
18 if api.properties.get('codesearch'): 19 if api.properties.get('codesearch'):
19 api.chromium.set_config('codesearch', BUILD_CONFIG='Debug') 20 api.chromium.set_config('codesearch', BUILD_CONFIG='Debug')
20 elif api.properties.get('chromeos'): 21 elif api.properties.get('chromeos'):
21 api.chromium.set_config('chromeos', TARGET_CROS_BOARD='amd64-generic', 22 api.chromium.set_config('chromeos', TARGET_CROS_BOARD='amd64-generic',
22 TARGET_PLATFORM='chromeos') 23 TARGET_PLATFORM='chromeos')
23 else: 24 else:
24 bot_config = api.chromium_tests.create_bot_config_object( 25 bot_config = api.chromium_tests.create_bot_config_object(
25 mastername, buildername) 26 mastername, buildername)
26 api.chromium_tests.configure_build(bot_config) 27 api.chromium_tests.configure_build(bot_config)
27 28
28 update_step, bot_db = api.chromium_tests.prepare_checkout(bot_config) 29 update_step, bot_db = api.chromium_tests.prepare_checkout(bot_config)
29 30
30 if api.platform.is_win: 31 if api.platform.is_win:
31 api.chromium.run_mb(mastername, buildername, use_goma=True) 32 api.chromium.run_mb(mastername, buildername, use_goma=True)
32 else: 33 else:
33 api.chromium.run_mb(mastername, buildername, use_goma=True, 34 api.chromium.run_mb(mastername, buildername, use_goma=True,
34 android_version_code=3, 35 android_version_code=3,
35 android_version_name="example") 36 android_version_name="example")
36 37
37 env = {} 38 env = {}
38 if api.properties.get('goma_disable', False): 39 use_compile_py = api.properties.get('use_compile_py', True)
39 env.update({'GOMA_DISABLED': 'true'}) 40 api.chromium.compile(
41 targets=['All'], out_dir=out_dir,
42 use_goma_module=use_goma_module,
43 use_compile_py=use_compile_py,
44 env=env)
40 45
41 api.chromium.compile(targets=['All'], out_dir=out_dir,
42 use_goma_module=use_goma_module,
43 env=env)
44 46
45 def GenTests(api): 47 def GenTests(api):
46 yield api.test('basic_out_dir') + api.properties( 48 yield api.test('basic_out_dir') + api.properties(
47 mastername='chromium.linux', 49 mastername='chromium.linux',
48 buildername='Android Builder (dbg)', 50 buildername='Android Builder (dbg)',
49 slavename='build1-a1', 51 slavename='build1-a1',
50 buildnumber='77457', 52 buildnumber='77457',
51 out_dir='/tmp', 53 out_dir='/tmp',
52 ) 54 )
53 55
56 yield api.test('basic_out_dir_without_compile_py') + api.properties(
57 mastername='chromium.linux',
58 buildername='Android Builder (dbg)',
59 slavename='build1-a1',
60 buildnumber='77457',
61 out_dir='/tmp',
62 use_compile_py=False,
63 )
64
54 yield api.test('basic_out_dir_with_goma_module') + api.properties( 65 yield api.test('basic_out_dir_with_goma_module') + api.properties(
55 mastername='chromium.linux', 66 mastername='chromium.linux',
56 buildername='Android Builder (dbg)', 67 buildername='Android Builder (dbg)',
57 slavename='build1-a1', 68 slavename='build1-a1',
58 buildnumber='77457', 69 buildnumber='77457',
59 use_goma_module=True, 70 use_goma_module=True,
60 out_dir='/tmp', 71 out_dir='/tmp',
61 ) 72 )
62 73
63 yield api.test('basic_no_out_dir_with_goma_module') + api.properties( 74 yield api.test('basic_no_out_dir_with_goma_module') + api.properties(
(...skipping 22 matching lines...) Expand all
86 chromeos=True, 97 chromeos=True,
87 ) 98 )
88 99
89 yield (api.test('basic_no_out_dir_with_goma_module_goma_disabled_win') + 100 yield (api.test('basic_no_out_dir_with_goma_module_goma_disabled_win') +
90 api.properties( 101 api.properties(
91 mastername='chromium.win', 102 mastername='chromium.win',
92 buildername='Win Builder', 103 buildername='Win Builder',
93 slavename='build1-a1', 104 slavename='build1-a1',
94 buildnumber='77457', 105 buildnumber='77457',
95 use_goma_module=True, 106 use_goma_module=True,
96 goma_disable=True, 107 ) + api.platform.name('win') +
97 ) + api.platform.name('win')) 108 api.step_data('preprocess_for_goma.start_goma', retcode=1))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698