#ci #build-environment #build #detection #checker #package #information

build is_ci

Super lightweight CI environment checker. Just tells you if you're in CI or not without much fuss.

6 releases (stable)

1.2.0 Feb 4, 2024
1.1.1 Sep 22, 2021
1.0.1 Sep 22, 2021
0.0.0 Sep 22, 2021

#43 in Build Utils

Download history 128802/week @ 2024-10-15 131009/week @ 2024-10-22 130879/week @ 2024-10-29 133095/week @ 2024-11-05 149549/week @ 2024-11-12 161232/week @ 2024-11-19 146341/week @ 2024-11-26 169840/week @ 2024-12-03 170083/week @ 2024-12-10 170265/week @ 2024-12-17 89190/week @ 2024-12-24 104078/week @ 2024-12-31 154444/week @ 2025-01-07 157330/week @ 2025-01-14 158280/week @ 2025-01-21 134741/week @ 2025-01-28

628,725 downloads per month
Used in 385 crates (15 directly)

ISC license

6KB
62 lines

This crate tells you if you're in a CI environment or not. It does not tell you which you're in, but it makes a good effort to make sure to accurately tell you whether you're in one.

This crate is based on the @npmcli/ci-detect package.

If you need more information about the specific CI environment you're running in and you can handle a heavier dependency, please consider using ci_info instead.

Example

// You can call this repeatedly if you want to get the same result, cached.
let am_i_in_ci_right_now = is_ci::cached();

// If you expect your environment to change between calls, use this instead:
let checking_again_just_in_case = is_ci::uncached();

License

is_ci is released to the Rust community under the ISC License.

It is based on @npmcli/ci-detect which is released to the community under the ISC License.

No runtime deps

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy