Provides current CI environment information.
This library main goal is to provide development/build tools such as cargo-make the needed information on the current CI environment.
The code is based on the ci-info npm module.
Simply include the library and invoke the get function to pull all info as follows:
````rust extern crate ci_info;
fn main() { // Just check if a CI environment is detected. let isci = ciinfo::isci(); println!("Is CI: {}", isci);
// Get CI environment information
let info = ci_info::get();
println!("Is CI: {}", info.ci);
if info.ci {
println!("Vendor: {:#?}", info.vendor.unwrap());
}
} ````
In order to use this library, just add it as a dependency:
ini
[dependencies]
ci_info = "*"
See full docs at: API Docs
| Date | Version | Description | | ----------- | ------- | ----------- | | 2017-10-10 | v0.1.1 | Maintenance | | 2017-10-10 | v0.1.0 | Initial release. |
Developed by Sagie Gur-Ari and licensed under the Apache 2 open source license.