blob: 2c900ae9bcac0e949354b5129227e61aacc472b5 [file] [log] [blame]
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from recipe_engine.config import config_item_context, ConfigGroup
from recipe_engine.config import Single, Static
from recipe_engine.config_types import Path
def BaseConfig(CHECKOUT_PATH, **_kwargs):
return ConfigGroup(
staging = Single(bool, empty_val=False, required=False),
source_side_spec_dir = Single(Path),
# TODO(martiniss): Remove this and all uses
CHECKOUT_PATH = Static(CHECKOUT_PATH),
)
config_ctx = config_item_context(BaseConfig)
@config_ctx()
def chromium(c):
c.source_side_spec_dir = c.CHECKOUT_PATH.join('testing', 'buildbot')
@config_ctx()
def staging(c):
c.staging = True