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
  • Loading branch information
nechaido authored and belochub committed Feb 8, 2018
1 parent a5b7927 commit 2bbc015
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 2bbc015

Please sign in to comment.