From c63fbbbcd1147c7e55c3e1d4118bd3a5f6059810 Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Tue, 13 Aug 2013 15:14:55 -0700 Subject: 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). --- lib/grunt/utils.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') 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'); + } }, -- cgit v1.2.3