# 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/.
---

loader: taskgraph.loader.transform:loader

transforms:
    - taskgraph.transforms.job:transforms
    - taskgraph.transforms.task:transforms

kind-dependencies:
    - toolchain
    - external-gradle-dependencies


task-defaults:
    attributes:
        code-review: true
        retrigger: true
    dependencies:
        external-gradle-dependencies: external-gradle-dependencies-lint-components
    fetches:
        toolchain:
            - android-sdk-linux
        external-gradle-dependencies:
            - external-gradle-dependencies.tar.xz
    run:
        use-caches: false
    run-on-tasks-for:
        - github-pull-request
        - github-pull-request-untrusted
        - github-push
    treeherder:
        kind: test
        platform: 'lint/opt'
        tier: 1
    worker-type: b-android
    worker:
        docker-image: {in-tree: base}
        max-run-time: 1200
    optimization:
        skip-unless-changed:
            - "android-components/**"

tasks-from:
    - buildconfig.yml
    - compare-locales.yml
    - detekt.yml
    - ktlint.yml
    - lint.yml
