language: node_js
before_script: npm install -g npm@latest
node_js:
  - '0.8'
  - '0.10'
  - '0.12'
  - 'iojs'

language: node_js
before_install:
  - '[ "${TRAVIS_NODE_VERSION}" != "0.8" ] || npm install -g npm@1.4.28'
  - npm install -g npm@latest
node_js:
  - '0.8'
  - '0.10'
  - '0.12'
  - 'iojs'

Install a more recent version of npm when testing with Node v0.8.
Install a more recent version of npm when testing with Node v0.8.

This prevents test failures due to caret version strings not being
understood by older versions of npm.

https://github.com/npm/npm/wiki/Troubleshooting#travis-projects-using-08-cant-upgrade-to-npm-2
