sudo: false
language: node_js
node_js:
  - 6
  - 7

before_script: yarn run lint
script:
  - yarn run test
  - yarn run build
after_success: yarn run coverage

cache: yarn

sudo: false
language: node_js
node_js:
  - 6
  - 7

env:
  - COVERAGE=on
  - COVERAGE=off

matrix:
  exclude:
    - node_js: 6
      env: COVERAGE=on
    - node_js: 7
      env: COVERAGE=off

before_script: yarn run lint
script:
  - yarn run test
  - yarn run build
after_success: if [ "$COVERAGE" == "on" ]; then yarn run coverage; fi

cache: yarn

Send coverage only for Node 7 build
CI: Send coverage only for Node 7 build
