aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVojta Jina2013-08-13 15:14:55 -0700
committerVojta Jina2013-08-14 16:12:37 -0700
commitf29f2f99b138de794a58500fed60452935293815 (patch)
tree0a5d286f0812d11cf85600bd816ce04e71ff1703 /lib
parentcc27f0858811ff0d28cf491fca90341c5f8f1c40 (diff)
downloadangular.js-f29f2f99b138de794a58500fed60452935293815.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')
-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 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');
+ }
},