language: node_js
node_js:
  - "8"
install:
  - npm install -g npm
  - npm install -g coveralls
  - npm install

script:
  - npm test
#  - npm run coverage
#  - coveralls < ./coverage/lcov.info || true # ignore coveralls error

# Allow Travis tests to run in containers.
sudo: false

deploy:
  provider: npm
  api_key: $NPM_API_KEY
  on:
    tags: true
    all_branches: true
