taskcluster/ci/source-test/mozlint.yml
author Andrew Halberstadt <ahalberstadt@mozilla.com>
Thu, 02 Feb 2017 16:16:06 -0500
changeset 489235 65b4987c510a3d3d4739d6da75c31d66494f0b0f
parent 466574 taskcluster/ci/source-check/mozlint.yml@259405ce7da2617855d06125275565c9932ddac2
child 494203 4d143bc399a1f21b88aab0ae8af93cca242e7436
permissions -rw-r--r--
Bug 1336559 - Rename source-check kind to source-test, r?dustin The name 'source-check' is a bit of a misnomer, because it already includes a bunch of tasks that are proper unittests, not lints. Some of these unittests will soon depend on a build task, which makes 'source-check' feel even more wrong. They still have a lot in common with the lint tasks though, so it's probably not worth splitting this into two separate kinds. Instead, let's just rename this kind to 'source-test', which means, any task that tests stuff and is run from the source directory (instead of a tests.zip). I think both lints and python-tests fall squarely under this definition. MozReview-Commit-ID: K0gZ5rVLyeD

mozlint-eslint/opt:
    description: JS lint check
    treeherder:
        symbol: ES
        kind: test
        tier: 1
        platform: lint/opt
    worker-type: aws-provisioner-v1/b2gtest
    worker:
        implementation: docker-worker
        docker-image: {in-tree: "lint"}
        max-run-time: 1800
    run:
        using: run-task
        command: >
            cd /home/worker/checkouts/gecko/tools/lint/eslint &&
            /build/tooltool.py fetch -m manifest.tt &&
            tar xvfz eslint.tar.gz &&
            rm eslint.tar.gz &&
            ln -s ../eslint-plugin-mozilla node_modules &&
            cd ../../.. &&
            ./mach lint -l eslint -f treeherder --quiet
    run-on-projects:
        - integration
        - release
    when:
        files-changed:
            # Files that are likely audited.
            - '**/*.js'
            - '**/*.jsm'
            - '**/*.jsx'
            - '**/*.html'
            - '**/*.xhtml'
            - '**/*.xml'
            # Run when eslint policies change.
            - '**/.eslintignore'
            - '**/*eslintrc*'
            # The plugin implementing custom checks.
            - 'tools/lint/eslint/eslint-plugin-mozilla/**'
            # Other misc lint related files.
            - 'python/mozlint/**'
            - 'tools/lint/**'

mozlint-flake8/opt:
    description: flake8 run over the gecko codebase
    treeherder:
        symbol: f8
        kind: test
        tier: 1
        platform: lint/opt
    worker-type: aws-provisioner-v1/b2gtest
    worker:
        implementation: docker-worker
        docker-image: {in-tree: "lint"}
        max-run-time: 1800
    run:
        using: mach
        mach: lint -l flake8 -f treeherder
    run-on-projects:
        - integration
        - release
    when:
        files-changed:
            - '**/*.py'
            - '**/.flake8'
            - 'python/mozlint/**'
            - 'tools/lint/**'

wptlint-gecko/opt:
    description: web-platform-tests linter
    treeherder:
        symbol: W
        kind: test
        tier: 1
        platform: lint/opt
    worker-type: aws-provisioner-v1/b2gtest
    worker:
        implementation: docker-worker
        docker-image: {in-tree: "lint"}
        max-run-time: 1800
    run:
        using: mach
        mach: lint -l wpt -l wpt_manifest -f treeherder
    run-on-projects:
        - integration
        - release
    when:
        files-changed:
            - 'testing/web-platform/tests/**'
            - 'testing/web-platform/mozilla/tests/**'
            - 'testing/web-platform/meta/MANIFEST.json'
            - 'testing/web-platform/mozilla/meta/MANIFEST.json'
            - 'python/mozlint/**'
            - 'tools/lint/**'