summaryrefslogtreecommitdiffstats
path: root/taskcluster/ci/source-check/mozlint.yml
blob: fd22a9f8f0d9b6ccec4d370e527d0bf889035eaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
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/**'
            - 'testing/docker/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/**'
            - 'testing/docker/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/**'
            - 'testing/docker/lint/**'