mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-22 22:30:23 +00:00
update travis to add gometalinter static check
Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
This commit is contained in:
parent
25642fe404
commit
d625eb7f54
@ -9,13 +9,16 @@ branches:
|
|||||||
|
|
||||||
go: 1.10.x
|
go: 1.10.x
|
||||||
|
|
||||||
|
install:
|
||||||
|
- curl -L https://git.io/vp6lP | sh
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- GO_FILES=$(find . -iname '*.go' -type f | grep -v /vendor/)
|
- GO_FILES=$(find . -iname '*.go' -type f | grep -v /vendor/)
|
||||||
- go get -u golang.org/x/lint/golint #go get github.com/golang/lint/golint
|
- go get -u golang.org/x/lint/golint #go get github.com/golang/lint/golint
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
- gometalinter --deadline=10m -j 4 --disable=gocyclo --enable=gosimple --enable=misspell --enable=unused --enable=unparam --enable=staticcheck --vendor ./...
|
||||||
- test -z $(gofmt -s -l $GO_FILES)
|
- test -z $(gofmt -s -l $GO_FILES)
|
||||||
- go vet -v $(go list ./... | grep -v /vendor/)
|
|
||||||
- make rbdplugin
|
- make rbdplugin
|
||||||
- make cephfsplugin
|
- make cephfsplugin
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user