forked from mirrors/gecko-dev
This allows firefox and thunderbird builds to avoid using each others bits. MozReview-Commit-ID: KYQYDd2tkGj --HG-- extra : rebase_source : 42f1d13ec609f066cb3bd3050ed894296b72d982
29 lines
1.2 KiB
Python
29 lines
1.2 KiB
Python
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
from __future__ import absolute_import, print_function, unicode_literals
|
|
|
|
from .util.schema import validate_schema, Schema
|
|
from voluptuous import Required
|
|
|
|
graph_config_schema = Schema({
|
|
# The trust-domain for this graph.
|
|
# (See https://firefox-source-docs.mozilla.org/taskcluster/taskcluster/taskgraph.html#taskgraph-trust-domain) # noqa
|
|
Required('trust-domain'): basestring,
|
|
Required('treeherder'): {
|
|
# Mapping of treeherder group symbols to descriptive names
|
|
Required('group-names'): {basestring: basestring}
|
|
},
|
|
Required('try'): {
|
|
# We have a few platforms for which we want to do some "extra" builds, or at
|
|
# least build-ish things. Sort of. Anyway, these other things are implemented
|
|
# as different "platforms". These do *not* automatically ride along with "-p
|
|
# all"
|
|
Required('ridealong-builds', default={}): {basestring: [basestring]},
|
|
},
|
|
})
|
|
|
|
|
|
def validate_graph_config(config):
|
|
return validate_schema(graph_config_schema, config, "Invalid graph configuration:")
|