mod private
{
#[ cfg( feature = "process_environment_is_cicd" ) ]
#[ must_use ]
pub fn is_cicd() -> bool
{
use std ::env;
let ci_vars =
[
"CI", "GITHUB_ACTIONS", "GITLAB_CI", "TRAVIS", "CIRCLECI", "JENKINS_URL", ];
ci_vars.iter().any( | &var | env ::var( var ).is_ok() )
}
}
crate ::mod_interface!
{
#[ cfg( feature = "process_environment_is_cicd" ) ]
own use is_cicd;
}