Bug 1291735 - Enable wpt lint on ci, r=ahal draft
authorJames Graham <james@hoppipolla.co.uk>
Tue, 02 Aug 2016 17:03:49 +0100
changeset 396361 6d5db0d9516ad0fee0b99fd9caf61b63281809c0
parent 396360 b4e634bb0ad05676beafcd1dfdb5530f9c6da295
child 527169 acf586dd9c40080f7d152b2a3a1ce387e168160e
push id24966
push userbmo:james@hoppipolla.co.uk
push dateWed, 03 Aug 2016 17:27:56 +0000
reviewersahal
bugs1291735
milestone51.0a1
Bug 1291735 - Enable wpt lint on ci, r=ahal MozReview-Commit-ID: 8o3FDgJ8nB8
taskcluster/ci/legacy/tasks/branches/base_jobs.yml
taskcluster/ci/legacy/tasks/tests/mozlint-wpt.yml
--- a/taskcluster/ci/legacy/tasks/branches/base_jobs.yml
+++ b/taskcluster/ci/legacy/tasks/branches/base_jobs.yml
@@ -268,16 +268,25 @@ tasks:
     root: true
     when:
       file_patterns:
         - '**/*.py'
         - '**/.flake8'
         - 'python/mozlint/**'
         - 'tools/lint/**'
         - 'testing/docker/lint/**'
+  wptlint-gecko:
+    task: tasks/tests/mozlint-wpt.yml
+    root: true
+    when:
+      file_patterns:
+        - 'testing/web-platform/tests/**'
+        - 'python/mozlint/**'
+        - 'tools/lint/**'
+        - 'testing/docker/lint/**'
   taskgraph-tests:
     task: tasks/tests/taskgraph-tests.yml
     root: true
     when:
       file_patterns:
         - 'taskcluster/**.py'
         - 'config/mozunit.py'
         - 'python/mach/**.py'
new file mode 100644
--- /dev/null
+++ b/taskcluster/ci/legacy/tasks/tests/mozlint-wpt.yml
@@ -0,0 +1,41 @@
+---
+$inherits:
+  from: 'tasks/lint.yml'
+  variables:
+    build_product: 'lint'
+    build_name: 'wpt-lint-gecko'
+    build_type: 'opt'
+
+docker-image: lint
+task:
+  metadata:
+    name: '[TC] - wpt-lint'
+    description: 'web-platform-tests linter'
+  payload:
+    image:
+      type: 'task-image'
+      path: 'public/image.tar'
+      taskId:
+        task-reference: "<docker-image>"
+    command:
+      - /home/worker/bin/run-task
+      - '--vcs-checkout=/home/worker/checkouts/gecko'
+      - '--'
+      - bash
+      - -cx
+      - >
+          cd /home/worker/checkouts/gecko &&
+          ./mach lint -l wpt -f treeherder
+  extra:
+    locations:
+      build: null
+      tests: null
+    treeherder:
+      machine:
+        platform: lint
+      groupSymbol: tc
+      symbol: W
+      tier: 2
+    treeherderEnv:
+      - production
+      - staging