mozlint.yml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. mozlint-eslint/opt:
  2. description: JS lint check
  3. treeherder:
  4. symbol: ES
  5. kind: test
  6. tier: 1
  7. platform: lint/opt
  8. worker-type: aws-provisioner-v1/b2gtest
  9. worker:
  10. implementation: docker-worker
  11. docker-image: {in-tree: "lint"}
  12. max-run-time: 1800
  13. run:
  14. using: run-task
  15. command: >
  16. cd /home/worker/checkouts/gecko/tools/lint/eslint &&
  17. /build/tooltool.py fetch -m manifest.tt &&
  18. tar xvfz eslint.tar.gz &&
  19. rm eslint.tar.gz &&
  20. ln -s ../eslint-plugin-mozilla node_modules &&
  21. cd ../../.. &&
  22. ./mach lint -l eslint -f treeherder --quiet
  23. run-on-projects:
  24. - integration
  25. - release
  26. when:
  27. files-changed:
  28. # Files that are likely audited.
  29. - '**/*.js'
  30. - '**/*.jsm'
  31. - '**/*.jsx'
  32. - '**/*.html'
  33. - '**/*.xhtml'
  34. - '**/*.xml'
  35. # Run when eslint policies change.
  36. - '**/.eslintignore'
  37. - '**/*eslintrc*'
  38. # The plugin implementing custom checks.
  39. - 'tools/lint/eslint/eslint-plugin-mozilla/**'
  40. # Other misc lint related files.
  41. - 'python/mozlint/**'
  42. - 'tools/lint/**'
  43. - 'testing/docker/lint/**'
  44. mozlint-flake8/opt:
  45. description: flake8 run over the gecko codebase
  46. treeherder:
  47. symbol: f8
  48. kind: test
  49. tier: 1
  50. platform: lint/opt
  51. worker-type: aws-provisioner-v1/b2gtest
  52. worker:
  53. implementation: docker-worker
  54. docker-image: {in-tree: "lint"}
  55. max-run-time: 1800
  56. run:
  57. using: mach
  58. mach: lint -l flake8 -f treeherder
  59. run-on-projects:
  60. - integration
  61. - release
  62. when:
  63. files-changed:
  64. - '**/*.py'
  65. - '**/.flake8'
  66. - 'python/mozlint/**'
  67. - 'tools/lint/**'
  68. - 'testing/docker/lint/**'
  69. wptlint-gecko/opt:
  70. description: web-platform-tests linter
  71. treeherder:
  72. symbol: W
  73. kind: test
  74. tier: 1
  75. platform: lint/opt
  76. worker-type: aws-provisioner-v1/b2gtest
  77. worker:
  78. implementation: docker-worker
  79. docker-image: {in-tree: "lint"}
  80. max-run-time: 1800
  81. run:
  82. using: mach
  83. mach: lint -l wpt -l wpt_manifest -f treeherder
  84. run-on-projects:
  85. - integration
  86. - release
  87. when:
  88. files-changed:
  89. - 'testing/web-platform/tests/**'
  90. - 'testing/web-platform/mozilla/tests/**'
  91. - 'testing/web-platform/meta/MANIFEST.json'
  92. - 'testing/web-platform/mozilla/meta/MANIFEST.json'
  93. - 'python/mozlint/**'
  94. - 'tools/lint/**'
  95. - 'testing/docker/lint/**'