testing/taskcluster/tasks/tests/eslint-gecko.yml
author Dave Townsend <dtownsend@oxymoronical.com>
Wed, 06 Jan 2016 13:33:30 -0800
changeset 279667 4b34c9d1a31a0f3af5f130315acd0585755b5aaf
child 290068 93c1fd8563307ecf2543e381e2f79fea0659b796
permissions -rw-r--r--
Bug 1229588: Add a taskcluster test for eslint. r=dustin Adds a new lint docker image for linting tools and adds an eslint-gecko task that uses it to run eslint over the tree.

---
$inherits:
    from: 'tasks/lint.yml'

task:
  metadata:
    name: '[TC] - ESLint'
    description: 'ESLint test'

  payload:
    image:
      type: 'task-image'
      path: 'public/image.tar'
      taskId: '{{#task_id_for_image}}lint{{/task_id_for_image}}'

    command:
      - bash
      - -cx
      - >
          tc-vcs checkout ./gecko {{base_repository}} {{head_repository}} {{head_rev}} {{head_ref}} &&
          cd gecko &&
          npm link testing/eslint-plugin-mozilla &&
          eslint --plugin html --ext [.js,.jsm,.jsx,.xml,.html] -f tools/lint/eslint-formatter .
  extra:
    locations:
        build: null
        tests: null
    treeherder:
        machine:
            platform: lint
        groupSymbol: tc
        symbol: ES
    treeherderEnv:
        - production
        - staging