2017-06-25 16:59:08 +08:00
|
|
|
language: go
|
|
|
|
|
2017-11-10 04:58:34 +08:00
|
|
|
go: 1.x
|
2017-07-29 22:47:01 +08:00
|
|
|
|
2017-07-20 16:08:17 +08:00
|
|
|
env:
|
|
|
|
- "PATH=/home/travis/gopath/bin:$PATH"
|
|
|
|
|
2017-06-25 16:59:08 +08:00
|
|
|
install:
|
2017-07-25 19:11:03 +08:00
|
|
|
- go get ./...
|
|
|
|
# Install gometalinter and certain linters
|
|
|
|
- go get github.com/alecthomas/gometalinter
|
|
|
|
- go get github.com/client9/misspell/cmd/misspell
|
|
|
|
- go get github.com/gordonklaus/ineffassign
|
|
|
|
- go get golang.org/x/tools/cmd/goimports
|
|
|
|
- go get github.com/tsenart/deadcode
|
2017-06-25 16:59:08 +08:00
|
|
|
|
|
|
|
script:
|
2017-10-29 21:12:54 +08:00
|
|
|
- gometalinter --disable-all -E gofmt -E misspell -E ineffassign -E goimports -E deadcode --exclude="rice-box.go" --tests ./...
|
2017-07-25 19:33:47 +08:00
|
|
|
- go test ./... -timeout 30s
|
2017-07-27 15:12:02 +08:00
|
|
|
|
2017-07-30 02:35:49 +08:00
|
|
|
after_success:
|
|
|
|
- test -n "$TRAVIS_TAG" && curl -sL https://git.io/goreleaser | bash
|