Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit f29f2f9

Browse files
committed
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).
1 parent cc27f08 commit f29f2f9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/grunt/utils.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ var version;
77
module.exports = {
88

99
init: function() {
10-
shell.exec('npm install');
10+
if (!process.env.TRAVIS) {
11+
shell.exec('npm install');
12+
}
1113
},
1214

1315

0 commit comments

Comments
 (0)