fix mispell (#54)
* fix mispell * update golint path in travis * Golint requires Go 1.9 or later * install golint only if go >=1.9 * exclude go 1.7 and go 1.8 for golint * add build on go 1.10.x
This commit is contained in:

committed by
Sebastian Zagrodzki

parent
15d2fa288b
commit
593cfb67e9
@@ -5,6 +5,7 @@ go:
|
||||
- 1.7.x
|
||||
- 1.8.x
|
||||
- 1.9.x
|
||||
- 1.10.x
|
||||
- tip
|
||||
|
||||
addons:
|
||||
@@ -14,13 +15,15 @@ addons:
|
||||
|
||||
install:
|
||||
- go get golang.org/x/tools/cmd/cover
|
||||
- go get github.com/golang/lint/golint
|
||||
# Golint requires Go 1.9 or later.
|
||||
- if ! [[ "$TRAVIS_GO_VERSION" =~ ^1\.7\.([0-9]+|x)$ || "$TRAVIS_GO_VERSION" =~ ^1\.8\.([0-9]+|x)$ ]]; then go get golang.org/x/lint/golint; fi
|
||||
- go get github.com/mattn/goveralls
|
||||
|
||||
script:
|
||||
# a workaround for go test not supporting coverage for multiple packages in a single invocation.
|
||||
# If goveralls upload fails, ignore the result.
|
||||
- $HOME/gopath/bin/golint ./...
|
||||
# Golint requires Go 1.9 or later.
|
||||
- if ! [[ "$TRAVIS_GO_VERSION" =~ ^1\.7\.([0-9]+|x)+$ || "$TRAVIS_GO_VERSION" =~ ^1\.8\.([0-9]+|x)$ ]]; then $HOME/gopath/bin/golint ./...; fi
|
||||
- |-
|
||||
echo 'mode: count' > coverage.merged && go list ./... | xargs -n1 -I{} sh -c ': > coverage.tmp; go test -v -covermode=count -coverprofile=coverage.tmp {} && tail -n +2 coverage.tmp >> coverage.merged' && rm coverage.tmp
|
||||
- |-
|
||||
|
Reference in New Issue
Block a user