[][src]Function built::util::detect_ci

#[must_use]pub fn detect_ci() -> Option<CIPlatform>

Detect execution on various Continiuous Integration platforms.

CI-platforms are detected by the presence of known environment variables. This allows to detect specific CI-platform (like GitLab); various generic environment variables are also checked, which may result in CIPlatform::Generic.

Since some platforms have fairly generic environment variables to begin with (e.g. TASK_ID), this function may have false positives.