Skip to content

Commit

Permalink
build: fail CI if native addon build fails
Browse files Browse the repository at this point in the history
This is an additional patch to that made in
metarhia/jstp#65
that enables failing for CI systems other than
Travis.

Refs: metarhia/jstp#63
PR-URL: metarhia/jstp#325
Reviewed-By: Mykola Bilochub <nbelochub@gmail.com>
  • Loading branch information
nechaido authored and belochub committed Feb 9, 2018
1 parent e416dc1 commit 305f9a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/build-native.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fs.access('build', (error) => {
});

function handleBuildError(code) {
if (process.env.TRAVIS) {
if (process.env.CI) {
process.exit(code);
} else {
console.warn('Could not build JSTP native extensions, ' +
Expand Down

0 comments on commit 305f9a2

Please sign in to comment.