language: node_js
node_js:
 - "4"
 - "6"
 - "7"
 - "8"
install:
- npm install
script:
- npm run lint
- npm run compile
- npm run coveralls

language: node_js
node_js:
 - "4"
 - "6"
 - "7"
 - "8"
 - "9"
install:
- npm install
script:
- npm run lint
- npm run compile
- npm run test

jobs:
  include:
    - stage: after_success
      script: npm run coveralls
      node_js: 8

Update Travis build, only run coveralls on dedicate after_success
Update Travis build, only run coveralls on dedicate after_success
