Crates.io | is-travis |
lib.rs | is-travis |
version | 1.0.0 |
source | src |
created_at | 2018-05-27 15:50:22.224404 |
updated_at | 2018-05-27 15:50:22.224404 |
description | Check if your code is running on Travis CI |
homepage | |
repository | https://github.com/nukeop/is-travis |
max_upload_size | |
id | 67293 |
size | 3,750 |
Check if your code is running on Travis CI
Specify the dependencty in Cargo.toml:
[dependencies]
is-travis = "~1.0.0"
Fetch it with cargo:
$ cargo build
extern crate is_travis;
use is_travis::is_travis;
println!("{}", is_travis()); // prints false on your PC, true on Travis CI
Copyright © 2018, nukeop. Released under the MIT License.