mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
6263b9cdb5
added staticheck option for gometalinter Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
30 lines
508 B
YAML
30 lines
508 B
YAML
# need for docker build
|
|
sudo: true
|
|
|
|
language: go
|
|
branches:
|
|
only:
|
|
- master
|
|
- csi-v1.0
|
|
|
|
go: 1.11.x
|
|
|
|
install:
|
|
- curl -L https://git.io/vp6lP | sh
|
|
|
|
before_script:
|
|
- GO_FILES=$(find . -iname '*.go' -type f | grep -v /vendor/)
|
|
|
|
script:
|
|
- gometalinter --deadline=10m -j 4 --enable=misspell --enable=staticcheck --vendor ./...
|
|
- test -z $(gofmt -s -l $GO_FILES)
|
|
- make rbdplugin
|
|
- make cephfsplugin
|
|
|
|
deploy:
|
|
- provider: script
|
|
script:
|
|
- ./deploy.sh
|
|
on:
|
|
all_branches: true
|