sudo: false
language: node_js
cache:
  directories:
    - node_modules
notifications:
  email: false
node_js:
  - '4'
before_install:
  - npm i -g npm@^2.0.0
before_script:
  - npm prune
script:
  - npm run coverage
after_success:
  - npm run report:coverage
  - npm run build
  - npm run semantic-release
branches:
  only:
    - master
    - /^greenkeeper/.*$/

sudo: false
language: node_js
cache:
  directories:
    - node_modules
notifications:
  email: false
node_js:
  - '8'
before_install:
  - npm install --global npm
  - npm install --global yarn
before_script:
  - yarn install
script:
  - yarn run coverage
after_success:
  - yarn run report:coverage
  - yarn run build
  - yarn run semantic-release
branches:
  only:
    - master
    - /^greenkeeper/.*$/

Upgrade node version and switch npm scripts usage to yarn
ci(Travis): Upgrade node version and switch npm scripts usage to yarn
