sudo: false

language: node_js

node_js:
  - '8'
  - '10'

branches:
  only:
    - master
    - travis-ci

install:
  # Echo trickery prevents an error return from `[ -e $dir/package.json ]` from erroring the Travis CI build.
  - for dir in $(find . -maxdepth 1 -type d -a ! -name .\*); do [ -e $dir/package.json ] && (cd $dir && npm install --no-save --no-package-lock && echo $dir) || echo $dir; done
  - npm install --no-save --no-package-lock
  - npm install -g nyc

script:
  - nyc npm test

sudo: false

language: node_js

node_js:
  - '10'

branches:
  only:
    - master
    - travis-ci

install:
  # Echo trickery prevents an error return from `[ -e $dir/package.json ]` from erroring the Travis CI build.
  - for dir in $(find . -maxdepth 1 -type d -a ! -name .\*); do [ -e $dir/package.json ] && (cd $dir && npm install --no-save --no-package-lock && echo $dir) || echo $dir; done
  - npm install --no-save --no-package-lock
  - npm install -g nyc

script:
  - nyc npm test

Drop support for Node.js 8 early.
Drop support for Node.js 8 early.
