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
#65
that enables failing for CI systems other than
Travis.

Refs: #63
PR-URL: #325
Reviewed-By: Mykola Bilochub <nbelochub@gmail.com>
  • Loading branch information
nechaido authored and belochub committed Feb 9, 2018
1 parent 5de537d commit 36c0636
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 36c0636

Please sign in to comment.