当前位置: 首页>>代码示例>>Python>>正文


Python config.PROJECTS类代码示例

本文整理汇总了Python中config.PROJECTS的典型用法代码示例。如果您正苦于以下问题:Python PROJECTS类的具体用法?Python PROJECTS怎么用?Python PROJECTS使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了PROJECTS类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1:

c = BuildmasterConfig = {}
c["slavePortnum"] = 9010

from buildbot.status.html import WebStatus

c["status"] = [WebStatus(http_port=8010, allowForce=True)]

c["buildbotURL"] = "http://preproduction-master.build.mozilla.org:8010/"

from buildbot import manhole

c["manhole"] = manhole.PasswordManhole("tcp:1235:interface=127.0.0.1", "cltbld", "password")

from config import BRANCHES, SLAVES, PROJECTS

ACTIVE_BRANCHES = [b for b in BRANCHES.keys() if b != "mozilla-1.9.1"]
ACTIVE_PROJECTS = [p for p in PROJECTS.keys() if p != "fuzzing"]
ACTIVE_RELEASE_BRANCHES = []
ACTIVE_MOBILE_RELEASE_BRANCHES = []

# Set up our fast slaves
# No need to reload, this is reloaded by builder_master.cfg
import buildbotcustom.misc

buildbotcustom.misc.fastRegexes.extend(["linux-ix-", "linux64-ix-", "xserve"])
ENABLE_RELEASES = False
RESERVED_SLAVES = None

QUEUEDIR = "/dev/shm/queue"
开发者ID:jhford,项目名称:setup-master.py,代码行数:29,代码来源:preproduction_builder_master_localconfig.py

示例2: WebStatus

c = BuildmasterConfig = {}
c['slavePortnum'] = 9012

from buildbot.status.html import WebStatus
c['status'] = [
        WebStatus(http_port=8012, allowForce=True)
]

c['buildbotURL'] = 'http://test-master01.build.mozilla.org:8012/'

from buildbot import manhole
c['manhole'] = manhole.PasswordManhole("tcp:1235:interface=127.0.0.1", "cltbld", "password")

from config import BRANCHES, PROJECTS
# Do everything!
ACTIVE_BRANCHES = BRANCHES.keys()
ACTIVE_PLATFORMS = {'linux64': None, 'win64': None, 'macosx64': None, 'linux-android': None}
ACTIVE_PROJECTS = PROJECTS.keys()

QUEUEDIR = "/dev/shm/queue"
开发者ID:jhford,项目名称:setup-master.py,代码行数:20,代码来源:production_tests_master_tm01_localconfig.py

示例3:

master_config = json.load(open("master_config.json"))

c = BuildmasterConfig = {}
c["slavePortnum"] = master_config.get("pb_port", None)
c["status"] = []

if "http_port" in master_config:
    c["status"].append(WebStatus(http_port=master_config["http_port"], allowForce=True))
    c["buildbotURL"] = "http://%(hostname)s:%(http_port)i/" % master_config

if "ssh_port" in master_config:
    c["manhole"] = manhole.PasswordManhole("tcp:%(ssh_port)i:interface=127.0.0.1" % master_config, "cltbld", "password")

from config import BRANCHES, PROJECTS, TRY_SLAVES, BRANCH_PROJECTS

ACTIVE_BRANCHES = ["try"]
ACTIVE_THUNDERBIRD_BRANCHES = ["try-comm-central"]
ACTIVE_RELEASE_BRANCHES = []
ACTIVE_THUNDERBIRD_RELEASE_BRANCHES = []
ACTIVE_MOBILE_RELEASE_BRANCHES = []
ACTIVE_PROJECTS = [k for k, v in PROJECTS.items() if v.get("enable_try")]
ACTIVE_BRANCH_PROJECTS = [k for k, v in BRANCH_PROJECTS.items() if v.get("enable_try")]

# Override with TRY_SLAVES
SLAVES = TRY_SLAVES

ENABLE_RELEASES = False

QUEUEDIR = master_config.get("queuedir", "/dev/shm/queue")
开发者ID:mozilla-releng,项目名称:build-buildbot-configs,代码行数:29,代码来源:try_localconfig.py


注:本文中的config.PROJECTS类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。