sudo: false

language: node_js

node_js:
  - 6.14.0 # Cloud Functions Runtime
  - 9
  - 10

notifications:
  email:
    # Only send notifications when travis status changes
    on_failure: change
    on_success: change

cache:
  directories:
    - node_modules

branches:
  only:
    - master

deploy:
  skip_cleanup: true
  provider: npm
  email: $NPM_EMAIL
  api_key: $NPM_KEY
  on:
    node: '10'
    branch: 'master'

script:
  - npm run lint
  - npm run test:cov

after_success:
  - codeclimate-test-reporter < coverage/lcov.info
  - npm run codecov

sudo: false

language: node_js

node_js:
  - 6 # Maintenance
  - 8 # Active
  - 10 # Current release

notifications:
  email:
    # Only send notifications when travis status changes
    on_failure: change
    on_success: change

cache:
  bundler: true
  directories:
    - $HOME/.npm

branches:
  only:
    - master
    - next

script:
  - npm run lint
  - npm run test:cov

after_success:
  - codeclimate-test-reporter < coverage/lcov.info
  - npm run codecov

deploy:
  - provider: npm
    skip_cleanup: true
    email: $NPM_EMAIL
    api_key: $NPM_TOKEN
    on:
      node: '10'
      branch: 'master'
  - provider: npm
    skip_cleanup: true
    email: $NPM_EMAIL
    api_key: $NPM_TOKEN
    tag: next
    on:
      node: '10'
      branch: 'next'

Add publish to npm from next branch
Add publish to npm from next branch
