sudo: false
language: node_js
node_js:
  - "0.10"
  - "0.12"
  - "4"
  - "5"
  - "iojs"
before_install:
  - npm install -g npm
matrix:
  fast_finish: true

sudo: false
language: node_js
node_js:
  - "0.10"
  - "0.12"
  - "4"
  - "5"
  - "iojs"
before_install:
  - if [ "$TRAVIS_NODE_VERSION" = "0.10" ]; then npm install -g npm@3; fi
matrix:
  fast_finish: true

Install npm@3 only when using node.js 0.10.
Install npm@3 only when using node.js 0.10.
