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-02-04 05:31:43 +00:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- GO_METALINTER_VERSION="v3.0.0"
|
|
|
|
|
2019-01-28 11:58:11 +00:00
|
|
|
install:
|
2019-02-04 05:31:43 +00:00
|
|
|
# install gometalinter
|
2019-02-04 14:11:41 +00:00
|
|
|
- curl -L
|
|
|
|
"https://raw.githubusercontent.com/alecthomas/gometalinter/"${GO_METALINTER_VERSION}"/scripts/install.sh"
|
2019-02-04 05:31:43 +00:00
|
|
|
| bash -s -- -b $GOPATH/bin "${GO_METALINTER_VERSION}"
|
2019-01-28 11:58:11 +00:00
|
|
|
|
2018-01-10 18:13:36 +00:00
|
|
|
before_script:
|
|
|
|
- GO_FILES=$(find . -iname '*.go' -type f | grep -v /vendor/)
|
|
|
|
|
|
|
|
script:
|
2019-02-04 05:14:00 +00:00
|
|
|
- gometalinter --deadline=10m -j 4 --enable=misspell --enable=staticcheck --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
|