Skip to content

Commit 185ec3b

Browse files
committed
Add travis-ci
1 parent 42deba7 commit 185ec3b

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
language: go
2+
sudo: false
3+
4+
go:
5+
- 1.x
6+
7+
before_install:
8+
- go get -u github.com/golang/lint/golint
9+
10+
script:
11+
- find . -name "*.go" | grep -v "vendor" | xargs gofmt -d
12+
- go list ./... | grep -v "vendor" | sed 's/^github.com\/cloverstd\/tcping//' | sed 's/^\///' | xargs -I '{p}' -n1 go tool vet -printfuncs "Info,Infof,Debug,Debugf,Warn,Warnf" {p}
13+
- go list ./... | grep -v "vendor" | xargs -I '{p}' -n1 golint -set_exit_status=1 {p}
14+
- make

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![Build Status](https://travis-ci.org/cloverstd/tcping.svg?branch=master)](https://travis-ci.org/cloverstd/tcping)
2+
13
# tcping
24

35
tcping is like [tcping.exe](https://elifulkerson.com/projects/tcping.php), but written with Golang.

0 commit comments

Comments
 (0)