language: node_js
node_js:
  - 0.8
  - 0.10
  - 0.12
  - "stable"
script: npm run test-spec
sudo: false

language: node_js
node_js:
  - 0.8
  - 0.10
  - 0.12
  - "stable"
before_install:
  - NODE_VERSION=$(node -e 'console.log(process.version.replace(/[.][0-9]+$/, ""))')
  - if [ "v0.8" = "$NODE_VERSION" ]; then npm install -g npm@2.7.3 ; fi
script: npm run test-spec
sudo: false

Install a more recent version of `npm` if running node 0.8.
Travis: Install a more recent version of `npm` if running node 0.8.
