Crates.io | is_ci |
lib.rs | is_ci |
version | 1.2.0 |
source | src |
created_at | 2021-09-22 16:03:35.825781 |
updated_at | 2024-02-04 02:57:53.234697 |
description | Super lightweight CI environment checker. Just tells you if you're in CI or not without much fuss. |
homepage | |
repository | https://github.com/zkat/is_ci |
max_upload_size | |
id | 454986 |
size | 9,535 |
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.
// 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();
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.