mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-24 22:10:23 +00:00
74ad010d85
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
52 lines
1012 B
YAML
52 lines
1012 B
YAML
---
|
|
# need for docker build
|
|
sudo: true
|
|
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- realpath
|
|
- ruby
|
|
|
|
language: go
|
|
branches:
|
|
only:
|
|
- csi-v0.3
|
|
- master
|
|
- csi-v1.0 # remove this once csi-v1.0 becomes master
|
|
|
|
go: 1.11.x
|
|
|
|
env:
|
|
global:
|
|
- GOLANGCI_VERSION="v1.15.0"
|
|
- TEST_COVERAGE=stdout
|
|
- GO_METALINTER_THREADS=1
|
|
- GO_COVER_DIR=_output
|
|
|
|
jobs:
|
|
include:
|
|
- name: Linter
|
|
install:
|
|
- gem install mdl
|
|
- pip install --user --upgrade pip
|
|
- pip install --user yamllint
|
|
# install golangci-lint
|
|
- curl -sf
|
|
"https://install.goreleaser.com/github.com/golangci/golangci-lint.sh"
|
|
| bash -s -- -b $GOPATH/bin "${GOLANGCI_VERSION}"
|
|
script:
|
|
- scripts/lint-text.sh --require-all
|
|
- scripts/lint-go.sh
|
|
- scripts/test-go.sh
|
|
|
|
- name: cephcsi
|
|
script:
|
|
- make cephcsi
|
|
|
|
deploy:
|
|
- provider: script
|
|
on: # yamllint disable-line rule:truthy
|
|
all_branches: true
|
|
script: ./deploy.sh
|