aboutsummaryrefslogtreecommitdiffstats
path: root/lib/grunt
diff options
context:
space:
mode:
authorVojta Jina2013-08-13 15:14:55 -0700
committerVojta Jina2013-08-13 23:02:21 -0700
commitc63fbbbcd1147c7e55c3e1d4118bd3a5f6059810 (patch)
tree12f9ef8cd6c83f4abc714ce12d05525461e07f8c /lib/grunt
parent23a59aebada7656d1a1223cf6ac494cddb98412b (diff)
downloadangular.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')
-rw-r--r--lib/grunt/utils.js4
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');
+ }
},