Bug 1387862 - Add yaml lint to the taskgraph. r=ahal r=dustin draft
authorJustin Wood <Callek@gmail.com>
Sun, 06 Aug 2017 13:52:24 -0400
changeset 644110 2ab21c6326519d3767511d69ce1ec0878faa1319
parent 644109 19ce6b7639a9756ea799d23ce6b37fa13fc71837
child 725487 ffc2aa4c53c0bf4601097a57b90a4a9908291189
push id73304
push userCallek@gmail.com
push dateThu, 10 Aug 2017 12:43:29 +0000
reviewersahal, dustin
bugs1387862
milestone57.0a1
Bug 1387862 - Add yaml lint to the taskgraph. r=ahal r=dustin We should have CI Lint YAML files in the tree. MozReview-Commit-ID: GN5pOJCXvnz
taskcluster/ci/source-test/mozlint.yml
--- a/taskcluster/ci/source-test/mozlint.yml
+++ b/taskcluster/ci/source-test/mozlint.yml
@@ -52,16 +52,38 @@ mozlint-flake8:
         mach: lint -l flake8 -f treeherder
     when:
         files-changed:
             - '**/*.py'
             - '**/.flake8'
             - 'python/mozlint/**'
             - 'tools/lint/**'
 
+mozlint-yaml:
+    description: yamllint run over the gecko codebase
+    platform: lint/opt
+    treeherder:
+        symbol: yaml
+        kind: test
+        tier: 1
+    worker-type: aws-provisioner-v1/gecko-t-linux-xlarge
+    worker:
+        docker-image: {in-tree: "lint"}
+        max-run-time: 1800
+    run:
+        using: mach
+        mach: lint -l yaml -f treeherder
+    when:
+        files-changed:
+            - '**/*.yml'
+            - '**/*.yaml'
+            - '**/.ymllint'
+            - 'python/mozlint/**'
+            - 'tools/lint/**'
+
 wptlint-gecko:
     description: web-platform-tests linter
     platform: lint/opt
     treeherder:
         symbol: W
         kind: test
         tier: 1
     worker-type: aws-provisioner-v1/gecko-t-linux-xlarge