Skip to content

Commit 6471491

Browse files
committed
add .travis.yml
1 parent 49d5041 commit 6471491

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
sudo: false
2+
language: go
3+
go: go1.6
4+
install:
5+
- go get -u github.com/golang/lint/golint
6+
- go get -u github.com/mitchellh/gox
7+
script:
8+
- test -z "$(gofmt -s -l -w $(find . -type f -name '*.go' -not -path './vendor/*') | tee /dev/stderr)"
9+
- test -z "$(golint . | tee /dev/stderr)"
10+
- test -z "$(go vet -v $(go list ./... | grep -v '/vendor/') | tee /dev/stderr)"
11+
- go list ./... | grep -v '/vendor/' | xargs go test -v -cover
12+
- gox -os="linux darwin windows" -arch="amd64"

0 commit comments

Comments
 (0)