is-travis

Crates.iois-travis
lib.rsis-travis
version1.0.0
sourcesrc
created_at2018-05-27 15:50:22.224404
updated_at2018-05-27 15:50:22.224404
descriptionCheck if your code is running on Travis CI
homepage
repositoryhttps://github.com/nukeop/is-travis
max_upload_size
id67293
size3,750
(nukeop)

documentation

README

is-travis

Check if your code is running on Travis CI

Install

Specify the dependencty in Cargo.toml:

[dependencies]
is-travis = "~1.0.0"

Fetch it with cargo:

$ cargo build

Usage

extern crate is_travis;
use is_travis::is_travis;

println!("{}", is_travis()); // prints false on your PC, true on Travis CI

About

License

Copyright © 2018, nukeop. Released under the MIT License.

Commit count: 3

cargo fmt