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

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: small modify 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 ]
(...skipping 16 matching lines...) Expand all
27 if api.platform.is_win: 27 if api.platform.is_win:
28 api.chromium.run_mb(mastername, buildername, use_goma=True) 28 api.chromium.run_mb(mastername, buildername, use_goma=True)
29 else: 29 else:
30 api.chromium.run_mb(mastername, buildername, use_goma=True, 30 api.chromium.run_mb(mastername, buildername, use_goma=True,
31 android_version_code=3, 31 android_version_code=3,
32 android_version_name="example") 32 android_version_name="example")
33 33
34 env = {} 34 env = {}
35 if api.properties.get('goma_disable', False): 35 if api.properties.get('goma_disable', False):
36 env.update({'GOMA_DISABLED': 'true'}) 36 env.update({'GOMA_DISABLED': 'true'})
37 37 use_compile_py = api.properties.get('use_compile_py', True)
38 api.chromium.compile(targets=['All'], out_dir=out_dir, 38 api.chromium.compile(targets=['All'], out_dir=out_dir,
39 use_goma_module=use_goma_module, 39 use_goma_module=use_goma_module,
40 use_compile_py=use_compile_py,
40 env=env) 41 env=env)
41 42
42 def GenTests(api): 43 def GenTests(api):
43 yield api.test('basic_out_dir') + api.properties( 44 yield api.test('basic_out_dir') + api.properties(
44 mastername='chromium.linux', 45 mastername='chromium.linux',
45 buildername='Android Builder (dbg)', 46 buildername='Android Builder (dbg)',
46 slavename='build1-a1', 47 slavename='build1-a1',
47 buildnumber='77457', 48 buildnumber='77457',
48 out_dir='/tmp', 49 out_dir='/tmp',
49 ) 50 )
50 51
52 yield api.test('basic_out_dir_without_compile_py') + api.properties(
53 mastername='chromium.linux',
54 buildername='Android Builder (dbg)',
55 slavename='build1-a1',
56 buildnumber='77457',
57 out_dir='/tmp',
58 use_compile_py=False,
59 )
60
51 yield api.test('basic_out_dir_with_goma_module') + api.properties( 61 yield api.test('basic_out_dir_with_goma_module') + api.properties(
52 mastername='chromium.linux', 62 mastername='chromium.linux',
53 buildername='Android Builder (dbg)', 63 buildername='Android Builder (dbg)',
54 slavename='build1-a1', 64 slavename='build1-a1',
55 buildnumber='77457', 65 buildnumber='77457',
56 use_goma_module=True, 66 use_goma_module=True,
57 out_dir='/tmp', 67 out_dir='/tmp',
58 ) 68 )
59 69
60 yield api.test('basic_no_out_dir_with_goma_module') + api.properties( 70 yield api.test('basic_no_out_dir_with_goma_module') + api.properties(
(...skipping 15 matching lines...) Expand all
76 86
77 yield (api.test('basic_no_out_dir_with_goma_module_goma_disabled_win') + 87 yield (api.test('basic_no_out_dir_with_goma_module_goma_disabled_win') +
78 api.properties( 88 api.properties(
79 mastername='chromium.win', 89 mastername='chromium.win',
80 buildername='Win Builder', 90 buildername='Win Builder',
81 slavename='build1-a1', 91 slavename='build1-a1',
82 buildnumber='77457', 92 buildnumber='77457',
83 use_goma_module=True, 93 use_goma_module=True,
84 goma_disable=True, 94 goma_disable=True,
85 ) + api.platform.name('win')) 95 ) + api.platform.name('win'))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698