Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 main

import (
"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 main

import (
"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)