language: node_js
matrix: # for versions that gulp won't run on
  include:
    - node_js: '0.8'
      env: BUILD_WITH_0_12=1
    - node_js: '0.10'
      env: BUILD_WITH_0_12=1
    - node_js: '0.12'
    - node_js: '4'
    - node_js: '5'
    - node_js: '6'
install:
  - if [ $BUILD_WITH_0_12 -eq 1 ]; then nvm install 0.12 ; fi
  - npm install
script:
  - gulp instrumented
  - nvm use $TRAVIS_NODE_VERSION
  - node ./scripts/run-coverage.js
after_success:
  - codecov

language: node_js
matrix: # for versions that gulp won't run on
  include:
    - node_js: '0.8'
      env: BUILD_WITH_0_12=1
    - node_js: '0.10'
      env: BUILD_WITH_0_12=1
    - node_js: '0.12'
    - node_js: '4'
    - node_js: '5'
    - node_js: '6'
install:
  - if [ $BUILD_WITH_0_12 -eq 1 ]; then nvm install 0.12 ; fi
  - npm install
script:
  - gulp instrumented
  - nvm use $TRAVIS_NODE_VERSION
  - node ./scripts/run-coverage.js
after_success:
  - if [ $BUILD_WITH_0_12 -eq 1 ]; then nvm use 0.12 ; fi
  - codecov

Use build Node to run codecov
Use build Node to run codecov
