Stop errcheck running for go < 1.5

This commit is contained in:
Nick Craig-Wood 2016-01-07 16:34:52 +00:00
parent 4ce2a84df0
commit c245183101
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ go:
install:
- go get ./...
- go get -u github.com/kisielk/errcheck
- '[[ `go version` =~ go1.[0-4][^0-9] ]] || go get -u github.com/kisielk/errcheck'
- go get -u golang.org/x/tools/cmd/goimports
- go get -u github.com/golang/lint/golint

View File

@ -13,7 +13,7 @@ test: rclone
check: rclone
go vet ./...
errcheck ./...
[[ `go version` =~ go1.[0-4][^0-9] ]] || errcheck -verbose ./...
goimports -d . | grep . ; test $$? -eq 1
golint ./... | grep -E -v '(StorageUrl|CdnUrl)' ; test $$? -eq 1