From 96f630393349cb1feff512cb99b240955a372c05 Mon Sep 17 00:00:00 2001 From: David Brockman Smoliansky Date: Wed, 24 Jan 2018 15:33:10 +0100 Subject: [PATCH] fix(ci-test): fix env test for bitrise Comparing to an empty string doesn't work because the env var will be undefined on other CI systems and therefore return true. --- ci-services/tests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci-services/tests.js b/ci-services/tests.js index c223a7da..e213e79c 100644 --- a/ci-services/tests.js +++ b/ci-services/tests.js @@ -9,5 +9,5 @@ module.exports = { travis: () => env.TRAVIS === 'true', wercker: () => env.WERCKER === 'true', codeship: () => env.CI_NAME === 'codeship', - bitrise: () => env.CI === 'true' && env.BITRISE_BUILD_NUMBER !== '' + bitrise: () => env.CI === 'true' && env.BITRISE_BUILD_NUMBER !== undefined }