Merge pull request #4 from rootfs/travis

add travis
This commit is contained in:
Huamin Chen 2018-01-10 13:19:48 -05:00 committed by GitHub
commit 798f851bf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

14
.travis Normal file
View File

@ -0,0 +1,14 @@
language: go
branches:
only:
- master
go: 1.9.x
before_script:
- GO_FILES=$(find . -iname '*.go' -type f | grep -v /vendor/)
- go get github.com/golang/lint/golint
script:
- test -z $(gofmt -s -l $GO_FILES)
- go vet -v $(go list ./... | grep -v /vendor/)