2019-02-07 09:58:09 +00:00
|
|
|
---
|
2018-02-15 21:06:12 +00:00
|
|
|
# need for docker build
|
|
|
|
sudo: true
|
|
|
|
|
2019-02-07 10:22:59 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- realpath
|
|
|
|
- ruby
|
|
|
|
|
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:
|
2019-03-04 03:46:31 +00:00
|
|
|
- GOLANGCI_VERSION="v1.15.0"
|
2019-02-07 09:58:09 +00:00
|
|
|
- TEST_COVERAGE=stdout
|
|
|
|
- GO_METALINTER_THREADS=1
|
|
|
|
- GO_COVER_DIR=_output
|
2019-02-04 05:31:43 +00:00
|
|
|
|
2019-02-07 09:58:09 +00:00
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- name: Linter
|
|
|
|
install:
|
|
|
|
- gem install mdl
|
|
|
|
- pip install --user --upgrade pip
|
|
|
|
- pip install --user yamllint
|
2019-03-04 03:46:31 +00:00
|
|
|
# install golangci-lint
|
|
|
|
- curl -sf
|
|
|
|
"https://install.goreleaser.com/github.com/golangci/golangci-lint.sh"
|
|
|
|
| bash -s -- -b $GOPATH/bin "${GOLANGCI_VERSION}"
|
2019-02-07 09:58:09 +00:00
|
|
|
script:
|
|
|
|
- scripts/lint-text.sh --require-all
|
|
|
|
- scripts/lint-go.sh
|
|
|
|
- scripts/test-go.sh
|
2019-01-28 11:58:11 +00:00
|
|
|
|
2019-02-07 09:58:09 +00:00
|
|
|
- name: rbdplugin
|
|
|
|
script:
|
|
|
|
- make rbdplugin
|
2018-01-10 18:13:36 +00:00
|
|
|
|
2019-02-07 09:58:09 +00:00
|
|
|
- name: cephfsplugin
|
|
|
|
script:
|
|
|
|
- make cephfsplugin
|
2018-02-15 21:02:39 +00:00
|
|
|
|
2018-02-15 20:55:06 +00:00
|
|
|
deploy:
|
|
|
|
- provider: script
|
2019-03-04 03:46:31 +00:00
|
|
|
on: # yamllint disable-line rule:truthy
|
2018-12-10 16:05:25 +00:00
|
|
|
all_branches: true
|
2019-02-07 09:58:09 +00:00
|
|
|
script: ./deploy.sh
|