Saturday, 3 June 2017

CircleCI: NodeJS execSync(…) output is swallowed

I am using CircleCI's free container hosting to run my continuous integration. For me, this involves running JSHint, and Jasmine unit tests.

Part of my application relies on a third party program, which is called by using child_process.execSync(command).

The output of the command is assigned to a variable and used later in the application, such as:

var output = execSync(COMMAND);

While this works correctly on my local machines, and other machines, it does not work on the CircleCI container. In fact it would seem that the output is swallowed by a CircleCI process. By this I mean that output has an empty string as its value.

Is there a way around this?



via Hopeful Llama

No comments:

Post a Comment