Check if your code is running on Travis CI
Specify the dependencty in Cargo.toml:
yaml
[dependencies]
is-travis = "~1.0.0"
Fetch it with cargo:
bash
$ cargo build
```rust extern crate istravis; use istravis::is_travis;
println!("{}", is_travis()); // prints false on your PC, true on Travis CI ```
Copyright © 2018, nukeop. Released under the MIT License.