diff options
| author | Vojta Jina | 2013-08-13 15:14:55 -0700 |
|---|---|---|
| committer | Vojta Jina | 2013-08-13 23:02:21 -0700 |
| commit | c63fbbbcd1147c7e55c3e1d4118bd3a5f6059810 (patch) | |
| tree | 12f9ef8cd6c83f4abc714ce12d05525461e07f8c /lib/grunt/utils.js | |
| parent | 23a59aebada7656d1a1223cf6ac494cddb98412b (diff) | |
| download | angular.js-c63fbbbcd1147c7e55c3e1d4118bd3a5f6059810.tar.bz2 | |
chore: disable npm install on Travis
Grunt is configured to run `npm install` before every task. That is convenient when switching a branch for example.
On Travis, this makes no sense and is causing tons of NPM warnings (eg. packages not defining repository field etc).
Diffstat (limited to 'lib/grunt/utils.js')
| -rw-r--r-- | lib/grunt/utils.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/grunt/utils.js b/lib/grunt/utils.js index bedf9eef..13150e29 100644 --- a/lib/grunt/utils.js +++ b/lib/grunt/utils.js @@ -7,7 +7,9 @@ var version; module.exports = { init: function() { - shell.exec('npm install'); + if (!process.env.TRAVIS) { + shell.exec('npm install'); + } }, |
