language: node_js

node_js:
  - "7"
  - "6"
  - "5"
  - "4"

matrix:
  include:
    - node_js: "7"
      env: ESLINT=true

script:
  - if [ "$ESLINT" == true ]; then npm run lint;
    else npm test; fi

branches:
  only:
    - master

language: node_js

node_js:
  - "7"
  - "6"

matrix:
  include:
    - node_js: "7"
      env: ESLINT=true

script:
  - if [ "$ESLINT" == true ]; then npm run lint;
    else npm test; fi

branches:
  only:
    - master

Remove node 4 and 5 in Travis (didn't work anyway)
Remove node 4 and 5 in Travis (didn't work anyway)
