language: node_js

node_js:
  - 8
  - 9
  - 10
  - 11
  - 12

git:
  depth: 5
cache:
  directories:
    - node_modules

before_install: npm i -g npm@latest

install:
  - npm install --save-dev nyc
  - npm install --save-dev mocha
  - npm install -save-dev chai
  - npm install socket.io
  - npm install -g codecov
script:
  - npm run coverage
  - npm run report

after_success:
    - bash <(curl -s https://codecov.io/bash)
