Created by: iamstarkov
CI=true check is insufficient.
It doesnt work for Jenkins, Teamcity, TaskCluster. Where Jenkins and Teamcity are big ones.
If you dont want to bring is-ci
and ci-info
in, I understand, but let me adjust the PR with this snippet from ci-info
:
https://github.com/watson/ci-info/blob/master/index.js#L52-L59
exports.isCI = !!(
env.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari
env.CONTINUOUS_INTEGRATION || // Travis CI, Cirrus CI
env.BUILD_NUMBER || // Jenkins, TeamCity
env.RUN_ID || // TaskCluster, dsari
false
)
Verification: I tried modified fork on a local jenkins and it react-scripts test dont hang up anymore