Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shamsher31/goistravis
Check if your code is running on Travis CI
https://github.com/shamsher31/goistravis
Last synced: 4 days ago
JSON representation
Check if your code is running on Travis CI
- Host: GitHub
- URL: https://github.com/shamsher31/goistravis
- Owner: shamsher31
- License: mit
- Created: 2015-08-16T13:11:16.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-10-21T08:36:54.000Z (about 6 years ago)
- Last Synced: 2024-06-21T01:43:36.380Z (5 months ago)
- Language: Go
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license
Awesome Lists containing this project
README
# goistravis
[![Godoc](http://img.shields.io/badge/godoc-reference-blue.svg?style=flat)](https://godoc.org/github.com/shamsher31/goistravis)
[![Build Status](https://travis-ci.org/shamsher31/goistravis.svg)](https://travis-ci.org/shamsher31/goistravis)
[![GitHub release](http://img.shields.io/github/release/shamsher31/goistravis.svg?style=flat-square)](release)
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](license)Check if your code is running on Travis CI
### How to install
```go
go get github.com/shamsher31/goistravis
```### How to use
```go
package mainimport (
"fmt"
"github.com/shamsher31/goistravis"
)func main() {
fmt.Println(travis.Is()) // Returns true if running on Travis system , else false
}
```
###Aliasing Imports
If you already have package name ```travis``` you can use following.
```go
package mainimport (
"fmt"
pckTravis "github.com/shamsher31/goistravis"
)func main() {
fmt.Println(pckTravis.Is()) // Returns true if running on Travis system , else false
}
```
### Related
[goisvdo](https://github.com/shamsher31/goisvdo)
[goistext](https://github.com/ferhatelmas/goistext)
[goisimg](https://github.com/ferhatelmas/goisimg)### Why
This package is inspired by [is-travis](https://www.npmjs.com/package/is-travis) npm module .### License
MIT © [Shamsher Ansari](https://github.com/shamsher31)