dist: xenial
language: node_js
node_js:
  - "8"
  - "10"
  - "11"
addons:
  apt:
    packages:
      - lcov
env:
  - npm_config_debug=yes
before_install: npm install -g node-gyp nyc
script: nyc npm test && npm run test-ts
after_success:
  - nyc report --reporter=text-lcov > lcov-js.info
  - lcov -c -d . --no-external -o lcov-cpp.info
  - lcov -r lcov-cpp.info "*/node_modules/*" -o lcov-cpp.info
  - lcov -a lcov-cpp.info -a lcov-js.info -o lcov.info
  - npm install -g coveralls && coveralls < lcov.info

dist: xenial
language: node_js
node_js:
  - "8"
  - "10"
  - "11"
os:
  - linux
  - osx
addons:
  apt:
    packages:
      - lcov
env:
  - npm_config_debug=yes
before_install: npm install -g node-gyp nyc
script: nyc npm test && npm run test-ts
after_success:
  - nyc report --reporter=text-lcov > lcov-js.info
  - lcov -c -d . --no-external -o lcov-cpp.info
  - lcov -r lcov-cpp.info "*/node_modules/*" -o lcov-cpp.info
  - lcov -a lcov-cpp.info -a lcov-js.info -o lcov.info
  - npm install -g coveralls && coveralls < lcov.info

Test on Linux and OS X
Test on Linux and OS X
