image: node0.10
script:
  - npm config set ca ""
  - npm install
  - npm test
notify:
  email:
    recipients:
      - drone@clever.com
  hipchat:
    room: Clever-Dev-CI
    token: {{hipchatToken}}
    on_started: true
    on_success: true
    on_failure: true
publish:
  npm:
    email: {{npm_drone_email}}
    username: {{npm_drone_username}}
    password: {{npm_drone_password}}
    branch: master

image: node0.10
script:
  - npm config set ca ""
  - npm install
  - npm test
  - nvm install 0.10.29
  - nvm use 0.10.29
notify:
  email:
    recipients:
      - drone@clever.com
  hipchat:
    room: Clever-Dev-CI
    token: {{hipchatToken}}
    on_started: true
    on_success: true
    on_failure: true
publish:
  npm:
    email: {{npm_drone_email}}
    username: {{npm_drone_username}}
    password: {{npm_drone_password}}
    branch: master

Use version 0.10.29 for npm publish step
Use version 0.10.29 for npm publish step

We've seen errors running this with the base node version so let's
update it at the end of the script. The publish step happens after
running the script so we should use 0.10.29 in that step.
