language: node_js
node_js:
  - "0.10"
  - "0.12"
  - "node"
env:
  - FORMDATA_VERSION=1.0.0
  - FORMDATA_VERSION=2.1.0
before_script:
  - 'if [ "$FORMDATA_VERSION" ]; then npm install form-data@^$FORMDATA_VERSION; fi'
before_install: if [[ `npm -v` < 3 ]]; then npm install -g npm@1.4.28; fi
script: npm run coverage