language: node_js
node_js: 6
cache:
  directories:
    - node_modules
script: npm test -- --coverage
before_deploy: npm run build
deploy:
  provider: pages
  skip_cleanup: true
  github_token: $GITHUB_TOKEN
  local_dir: build
  on:
    branch: master

language: node_js
node_js: 8
cache:
  directories:
    - node_modules
script: npm test -- --coverage
before_deploy: npm run build
deploy:
  provider: pages
  skip_cleanup: true
  github_token: $GITHUB_TOKEN
  local_dir: build
  on:
    branch: master

Test with Node 8 for npm 5
Test with Node 8 for npm 5