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

Side by Side Diff: scripts/slave/recipe_modules/chromium_android/config.py

Issue 23889036: Refactor the way that TestApi works so that it is actually useful. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: once more... Created 7 years, 3 months 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 | Annotate | Revision Log
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 from slave.recipe_configs_util import config_item_context, ConfigGroup 5 from slave.recipe_config import config_item_context, ConfigGroup
6 from slave.recipe_configs_util import Dict, Single, Static 6 from slave.recipe_config import Dict, Single, Static
7 7
8 def BaseConfig(INTERNAL, REPO_NAME, REPO_URL, **_kwargs): 8 def BaseConfig(INTERNAL, REPO_NAME, REPO_URL, **_kwargs):
9 return ConfigGroup( 9 return ConfigGroup(
10 INTERNAL = Static(INTERNAL), 10 INTERNAL = Static(INTERNAL),
11 REPO_NAME = Static(REPO_NAME), 11 REPO_NAME = Static(REPO_NAME),
12 REPO_URL = Static(REPO_URL), 12 REPO_URL = Static(REPO_URL),
13 target_arch = Single(basestring, required=False, empty_val=''), 13 target_arch = Single(basestring, required=False, empty_val=''),
14 custom_vars = Dict(value_type=basestring),
15 extra_env = Dict(value_type=(basestring,int,list)), 14 extra_env = Dict(value_type=(basestring,int,list)),
16 run_findbugs = Single(bool, required=False, empty_val=False), 15 run_findbugs = Single(bool, required=False, empty_val=False),
17 run_lint = Single(bool, required=False, empty_val=False), 16 run_lint = Single(bool, required=False, empty_val=False),
18 run_checkdeps = Single(bool, required=False, empty_val=False) 17 run_checkdeps = Single(bool, required=False, empty_val=False)
19 ) 18 )
20 19
21 20
22 VAR_TEST_MAP = { 21 VAR_TEST_MAP = {
23 'INTERNAL': [True, False], 22 'INTERNAL': [True, False],
24 'REPO_NAME': ['src', 'internal'], 23 'REPO_NAME': ['src', 'internal'],
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 'ANDROID_SDK_BUILD_TOOLS_VERSION': 'android-KeyLimePie', 58 'ANDROID_SDK_BUILD_TOOLS_VERSION': 'android-KeyLimePie',
60 'ANDROID_SDK_ROOT': ['third_party', 'android_tools_internal', 'sdk'], 59 'ANDROID_SDK_ROOT': ['third_party', 'android_tools_internal', 'sdk'],
61 'ANDROID_SDK_VERSION': 'KeyLimePie' 60 'ANDROID_SDK_VERSION': 'KeyLimePie'
62 } 61 }
63 62
64 @config_ctx() 63 @config_ctx()
65 def try_builder(c): 64 def try_builder(c):
66 if c.INTERNAL: 65 if c.INTERNAL:
67 c.run_findbugs = True 66 c.run_findbugs = True
68 c.run_lint = True 67 c.run_lint = True
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698