Skip to content

Commit

Permalink
fix(ci-test): fix env test for bitrise
Browse files Browse the repository at this point in the history
Comparing to an empty string doesn't work because the env var will be undefined on other CI systems and therefore return true.
  • Loading branch information
David Brockman Smoliansky authored and Realtin committed Jan 26, 2018
1 parent 1acf3b9 commit 96f6303
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci-services/tests.js
Expand Up @@ -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
}

0 comments on commit 96f6303

Please sign in to comment.