2024-11-22 05:02:56 +00:00
|
|
|
#!/usr/bin/env node
|
|
|
|
|
2024-11-22 05:58:44 +00:00
|
|
|
// 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])
|
2024-11-22 05:02:56 +00:00
|
|
|
|
|
|
|
if (require.main === module) {
|
2024-11-22 05:58:44 +00:00
|
|
|
process.exit(is ? 0 : 1)
|
2024-11-22 05:02:56 +00:00
|
|
|
}
|