10 lines
261 B
JavaScript
Executable file
10 lines
261 B
JavaScript
Executable file
#!/usr/bin/env node
|
|
|
|
// Bail out if CI is overrided
|
|
let is = module.exports = process.env.CI === 'false'
|
|
? false
|
|
: !!['CI','CI_APP_ID','BUILD_NUMBER','CI_NAME','RUN_ID'].some(x => process.env[x])
|
|
|
|
if (require.main === module) {
|
|
process.exit(is ? 0 : 1)
|
|
}
|