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

jobs:
  include:
    - stage: before_install
      script: npm run lint
      node_js: 8
    - stage: before_script
      script: npm run compile
      node_js: 8
    - stage: after_success
      script: npm run coveralls
      node_js: 8

language: node_js
node_js:
 - "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

Disable node 4 due to compiler issue.
Disable node 4 due to compiler issue.
