author Dustin J. Mitchell <>
Mon, 02 Oct 2017 18:22:56 +0000
changeset 399750 0f0395687d36597098e4248457ed69f092c39f8f
parent 399728 7e910ce230d09b7380de3c8e5552e435cae14166
child 403021 8a9ea2c5c940fd27782a71443cbee091648c923f
permissions -rw-r--r--
Bug 1403519 - only build docs when necessary r=gps This marks **/docs/** as exclusively docs, and code that is autodoc'd as inclusively docs. That means that a change that purely modifies documentation files will *only* run `docs` tasks, while a change that modifies autodoc'd source code will *additionaly* run `docs` tasks. The tasks do not run by default. MozReview-Commit-ID: G9tOK0AwtrI

# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=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

with Files("**"):
    BUG_COMPONENT = ("Core", "General")

with Files("code-coverage/**"):
    BUG_COMPONENT = ("Testing", "Code Coverage")

with Files("compare-locales/docs/**"):
    BUG_COMPONENT = ('Mozilla Localizations', 'Documentation')

with Files("compare-locales/"):
    BUG_COMPONENT = ("Localization Infrastructure and Tools", "compare-locales")

with Files("coverity/**"):
    BUG_COMPONENT = ("Core", "Rewriting and Analysis")

with Files("docs/**"):
    BUG_COMPONENT = ("Core", "Build Config")
    SCHEDULES.exclusive = ['docs']

with Files("lint/**"):
    BUG_COMPONENT = ("Testing", "Lint")

with Files("mercurial/**"):
    BUG_COMPONENT = ("Core", "Build Config")

with Files("profiler/**"):
    BUG_COMPONENT = ("Core", "Gecko Profiler")

with Files("quitter/**"):
    BUG_COMPONENT = ("Testing", "General")

with Files("rb/**"):
    BUG_COMPONENT = ("Core", "XPCOM")

with Files("rewriting/**"):
    BUG_COMPONENT = ("Core", "Rewriting and Analysis")

with Files("tryselect/**"):
    BUG_COMPONENT = ("Testing", "General")

with Files("update-packaging/**"):
    BUG_COMPONENT = ("Release Engineering", "Other")

SPHINX_TREES['lint'] = 'lint/docs'

with Files('lint/docs/**'):
    SCHEDULES.exclusive = ['docs']

SPHINX_TREES['compare-locales'] = 'compare-locales/docs'

with Files('compare-locales/docs/**'):
    SCHEDULES.exclusive = ['docs']

SPHINX_TREES['try'] = 'tryselect/docs'

with Files('tryselect/docs/**'):
    SCHEDULES.exclusive = ['docs']