https://github.com/nukeop/is-travis
Check if your code is running on Travis CI
https://github.com/nukeop/is-travis
Last synced: 11 months ago
JSON representation
Check if your code is running on Travis CI
- Host: GitHub
- URL: https://github.com/nukeop/is-travis
- Owner: nukeop
- License: mit
- Created: 2018-05-27T15:44:28.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-27T15:50:17.000Z (about 8 years ago)
- Last Synced: 2025-07-19T21:23:28.182Z (12 months ago)
- Language: Rust
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# is-travis
Check if your code is running on Travis CI
## Install
Specify the dependencty in Cargo.toml:
```yaml
[dependencies]
is-travis = "~1.0.0"
```
Fetch it with cargo:
```bash
$ cargo build
```
## Usage
```rust
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](https://github.com/nukeop).
Released under the [MIT License](LICENSE).