---
language: node_js
install: true

matrix:
  include:
  - node_js: '7'
    env: TEST=1
  - node_js: '6'
    env: TEST=1
  - node_js: '7'
    env: TYPECHECK=1

script:
- |
    if [ $TEST ]; then
      npm install && npm run jest -- --runInBand --no-watchman
    fi
- |
    if [ $TYPECHECK ]; then
      npm install --ignore-scripts && npm run typecheck
    fi

---
language: node_js
install: true

matrix:
  include:
  - node_js: '7'
    env: TEST=1
  - node_js: '6'
    env: TEST=1
  - node_js: '7'
    env: TYPECHECK=1
  - node_js: '7'
    env: LINT=1

script:
- |
    if [ $TEST ]; then
      npm install && npm run jest -- --runInBand --no-watchman
    fi
- |
    if [ $TYPECHECK ]; then
      npm install --ignore-scripts && npm run typecheck
    fi
- |
    if [ $LINT ]; then
      npm install --ignore-scripts && npm run lint
    fi

Fix all lint issues, and run as part of test
Fix all lint issues, and run as part of test

Summary:
This runs `npm run lint` as part of `npm test` and in a Travis CI job, and fixes outstanding issues.
Closes https://github.com/facebook/relay/pull/1649

Differential Revision: D4920780

Pulled By: leebyron

fbshipit-source-id: 548b0bba6ea042dce40f6990e387683eb76bd0ba
