mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-30 02:00:19 +00:00
5cf0599367
Remove Travis from skip doc check Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
73 lines
1.8 KiB
YAML
73 lines
1.8 KiB
YAML
---
|
|
# need for docker build
|
|
sudo: true
|
|
dist: xenial
|
|
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- realpath
|
|
- ruby
|
|
services:
|
|
- docker
|
|
|
|
language: go
|
|
branches:
|
|
only:
|
|
- csi-v0.3
|
|
- master
|
|
|
|
go: 1.12.x
|
|
|
|
env:
|
|
global:
|
|
- GOLANGCI_VERSION=v1.17.0
|
|
- TEST_COVERAGE=stdout
|
|
- GO_METALINTER_THREADS=1
|
|
- GO_COVER_DIR=_output
|
|
- VM_DRIVER=none
|
|
- MINIKUBE_VERSION=v1.2.0
|
|
- CHANGE_MINIKUBE_NONE_USER=true
|
|
- KUBECONFIG=$HOME/.kube/config
|
|
|
|
jobs:
|
|
include:
|
|
- name: static-check-make
|
|
install:
|
|
- gem install mdl
|
|
- pip install --user --upgrade pip
|
|
- pip install --user yamllint
|
|
# install golangci-lint
|
|
# workaround for https://github.com/golangci/golangci-lint/issues/575
|
|
- curl -sf
|
|
"https://raw.githubusercontent.com/golangci/golangci-lint/master/install.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 with kube 1.13.7
|
|
script:
|
|
- scripts/skip-doc-change.sh || travis_terminate 0;
|
|
- make image-cephcsi || travis_terminate 1;
|
|
- scripts/travis-functest.sh v1.13.7 || travis_terminate 1;
|
|
|
|
- name: cephcsi with kube 1.14.3
|
|
script:
|
|
- scripts/skip-doc-change.sh || travis_terminate 0;
|
|
- make image-cephcsi || travis_terminate 1;
|
|
- scripts/travis-functest.sh v1.14.3 || travis_terminate 1;
|
|
|
|
- name: cephcsi with kube 1.15.0
|
|
script:
|
|
- scripts/skip-doc-change.sh || travis_terminate 0;
|
|
- make image-cephcsi || travis_terminate 1;
|
|
- scripts/travis-functest.sh v1.15.0 || travis_terminate 1;
|
|
|
|
deploy:
|
|
- provider: script
|
|
on: # yamllint disable-line rule:truthy
|
|
all_branches: true
|
|
script: ./deploy.sh
|