mochajs/mocha — pull request #1404 by shinnn (2014-10-27 15:39:56+00:00)
Title: update npm before testing on Travis CI

The only problem in [this error](https://travis-ci.org/mochajs/mocha/jobs/38422941) is that npm v1.2 doesn’t support `^` version specifier. It's not the problem of Node v0.8 itself.

So I added `before_install` command to install the latest version of [npm](https://github.com/npm/npm), before installing the dependencies of mocha.

[The Grunt plugins maintained by Grunt team](https://github.com/gruntjs?query=grunt-contrib-+only%3Asources+) get benefit from this solution, such as [the nodeunit plugin](https://github.com/gruntjs/grunt-contrib-nodeunit/blob/eec8316f58224da4cf9f651200f345eb35a666cb/.travis.yml#L5-L8) and [the requirejs plugin](https://github.com/gruntjs/grunt-contrib-requirejs/blob/master/.travis.yml#L5-L8).

After merging this PR, you can also merge #1396.