sudo: false
language: node_js
cache:
  directories:
    - node_modules
notifications:
  email: false
node_js:
  - '4'
  - '0.10'
before_install:
  - npm i -g npm@^3.0.0
before_script:
  - npm prune
script:
  - npm run validate
after_success:
  - 'curl -Lo travis_after_all.py https://git.io/travis_after_all'
  - python travis_after_all.py
  - 'export $(cat .to_export_back) &> /dev/null'
  - npm run report-coverage
  - npm run semantic-release
branches:
  only:
    - master

sudo: false
language: node_js
cache:
  directories:
    - node_modules
notifications:
  email: false
node_js:
  - '5'
  - '4'
  - '0.10'
before_install:
  - if [[ `node -v | sed 's/[^0-9\.]//g'` < 4 ]]; then npm i -g npm@^2.0.0; else npm i -g npm@^3.0.0; fi
before_script:
  - npm prune
script:
  - npm run validate
after_success:
  - 'curl -Lo travis_after_all.py https://git.io/travis_after_all'
  - python travis_after_all.py
  - 'export $(cat .to_export_back) &> /dev/null'
  - npm run report-coverage
  - npm run semantic-release
branches:
  only:
    - master

Test Node `0.x` with npm `2.x` and Node ≥ `4.x` with npm `3.x`.
chore(ci): Test Node `0.x` with npm `2.x` and Node ≥ `4.x` with npm `3.x`.
