Bug 1291735 - Enable wpt lint on ci, r=ahal
authorJames Graham <james@hoppipolla.co.uk>
Tue, 02 Aug 2016 17:03:49 +0100
changeset 351477 db87a086b6932d63dd32873f459bad1a74732934
parent 351476 f9825328b6b3c0ab9e924d425c2179d43811f6a0
child 351478 f0e0cd618dde2988152a98cd4a285b0ae4afd964
push id1324
push usermtabara@mozilla.com
push dateMon, 16 Jan 2017 13:07:44 +0000
treeherdermozilla-release@a01c49833940 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersahal
bugs1291735
milestone51.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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