2018-02-15 21:06:12 +00:00
|
|
|
# need for docker build
|
|
|
|
sudo: true
|
|
|
|
|
2018-01-10 18:13:36 +00:00
|
|
|
language: go
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
2018-12-10 14:24:04 +00:00
|
|
|
- csi-v1.0
|
2018-01-10 18:13:36 +00:00
|
|
|
|
2019-01-28 12:08:16 +00:00
|
|
|
go: 1.11.x
|
2018-01-10 18:13:36 +00:00
|
|
|
|
2019-01-28 11:58:11 +00:00
|
|
|
install:
|
|
|
|
- curl -L https://git.io/vp6lP | sh
|
|
|
|
|
2018-01-10 18:13:36 +00:00
|
|
|
before_script:
|
|
|
|
- GO_FILES=$(find . -iname '*.go' -type f | grep -v /vendor/)
|
2018-10-15 15:06:21 +00:00
|
|
|
- go get -u golang.org/x/lint/golint #go get github.com/golang/lint/golint
|
2018-01-10 18:13:36 +00:00
|
|
|
|
|
|
|
script:
|
2019-01-28 12:15:35 +00:00
|
|
|
- gometalinter --deadline=10m -j 4 --disable=gocyclo --enable=megacheck --enable=misspell --enable=unparam --vendor ./...
|
2018-01-10 18:13:36 +00:00
|
|
|
- test -z $(gofmt -s -l $GO_FILES)
|
2018-02-15 20:58:10 +00:00
|
|
|
- make rbdplugin
|
2018-04-24 08:00:24 +00:00
|
|
|
- make cephfsplugin
|
2018-02-15 21:02:39 +00:00
|
|
|
|
2018-02-15 20:55:06 +00:00
|
|
|
deploy:
|
|
|
|
- provider: script
|
|
|
|
script:
|
2018-07-19 18:01:05 +00:00
|
|
|
- ./deploy.sh
|
2018-12-10 16:05:25 +00:00
|
|
|
on:
|
|
|
|
all_branches: true
|