From 44dd197ee00a04dfe76171784dcb6a69dc5266ec Mon Sep 17 00:00:00 2001 From: Dmytro Nechai Date: Thu, 8 Feb 2018 18:55:41 +0200 Subject: [PATCH] build: fail CI if native addon build fails This is an additional patch to that made in https://github.com/metarhia/jstp/pull/65 that enables failing for CI systems other than Travis. Refs: https://github.com/metarhia/jstp/issues/63 PR-URL: https://github.com/metarhia/jstp/pull/325 Reviewed-By: Mykola Bilochub --- tools/build-native.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/build-native.js b/tools/build-native.js index 4844dc6..af84ab8 100755 --- a/tools/build-native.js +++ b/tools/build-native.js @@ -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, ' +