Bug 1291735 - Enable wpt lint on ci, r=ahal
MozReview-Commit-ID: 8o3FDgJ8nB8
--- 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