sudo: false
language: node_js
node_js:
  - "0.10"
  - "0.12"
  - "iojs"
script:
  - "npm run build && npm test"
after_script:
  - "istanbul cover --verbose --dir coverage node_modules/.bin/_mocha scripts/generate-regex.js -- -u exports -R spec && cat coverage/lcov.info | coveralls; rm -rf coverage/lcov*"

sudo: false
language: node_js
node_js:
  - '4'
  - '5'
  - '6'
  - '7'
script:
  - 'if [ "${TRAVIS_NODE_VERSION}" = "7" ]; then
       npm run build;
     fi'
  - 'npm test'
after_script:
  - "istanbul cover --verbose --dir coverage node_modules/.bin/_mocha scripts/generate-regex.js -- -u exports -R spec && coveralls < coverage/lcov.info; rm -rf coverage/lcov*"
git:
  depth: 1

Test and build in modern Node.js environments
Test and build in modern Node.js environments
