Skip to content
This repository has been archived by the owner on May 10, 2019. It is now read-only.

Commit

Permalink
Fix the ugly npm install errors.
Browse files Browse the repository at this point in the history
Only install the automation-tests deps if AUTOMATION_TESTS=true is defined on the command line.

fixes #3160
  • Loading branch information
Shane Tomlinson committed Apr 8, 2013
1 parent e9b900c commit 8015a7a
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions scripts/postinstall.js
Expand Up @@ -25,11 +25,15 @@ function node(script) {

node('./generate_ephemeral_keys.js');

console.log(">>> Installing automation-tests dependencies");
// install automation-test dependencies
var npm_process = child_process.spawn('npm', ['install'], {
cwd: path.join(__dirname, '..', 'automation-tests'),
env: process.env
});
npm_process.stdout.pipe(process.stdout);
npm_process.stderr.pipe(process.stderr);
// To install the automation-tests dependencies, specify AUTOMATION_TESTS=true
// on the command line when running npm install. See issue #3160
if (process.env.AUTOMATION_TESTS) {
console.log(">>> Installing automation-tests dependencies");
// install automation-test dependencies
var npm_process = child_process.spawn('npm', ['install'], {
cwd: path.join(__dirname, '..', 'automation-tests'),
env: process.env
});
npm_process.stdout.pipe(process.stdout);
npm_process.stderr.pipe(process.stderr);
}

0 comments on commit 8015a7a

Please sign in to comment.