From f29f2f99b138de794a58500fed60452935293815 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(-) diff --git a/lib/grunt/utils.js b/lib/grunt/utils.js index ea8c65d5..7e85b400 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