2019-02-07 09:58:09 +00:00
|
|
|
---
|
2018-02-15 21:06:12 +00:00
|
|
|
# need for docker build
|
|
|
|
sudo: true
|
2019-05-22 05:50:53 +00:00
|
|
|
dist: xenial
|
2018-02-15 21:06:12 +00:00
|
|
|
|
2019-02-07 10:22:59 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- realpath
|
|
|
|
- ruby
|
2019-05-22 05:50:53 +00:00
|
|
|
services:
|
|
|
|
- docker
|
2019-02-07 10:22:59 +00:00
|
|
|
|
2018-01-10 18:13:36 +00:00
|
|
|
language: go
|
|
|
|
branches:
|
|
|
|
only:
|
2019-03-26 06:05:47 +00:00
|
|
|
- csi-v0.3
|
2018-01-10 18:13:36 +00:00
|
|
|
- master
|
|
|
|
|
2019-06-18 05:56:00 +00:00
|
|
|
go: 1.12.x
|
2018-01-10 18:13:36 +00:00
|
|
|
|
2019-02-04 05:31:43 +00:00
|
|
|
env:
|
|
|
|
global:
|
2019-06-13 09:10:02 +00:00
|
|
|
- GOLANGCI_VERSION=v1.17.0
|
2019-02-07 09:58:09 +00:00
|
|
|
- TEST_COVERAGE=stdout
|
|
|
|
- GO_METALINTER_THREADS=1
|
|
|
|
- GO_COVER_DIR=_output
|
2019-05-22 05:50:53 +00:00
|
|
|
- VM_DRIVER=none
|
2019-06-11 07:01:05 +00:00
|
|
|
- MINIKUBE_VERSION=v1.1.1
|
2019-05-22 05:50:53 +00:00
|
|
|
- CHANGE_MINIKUBE_NONE_USER=true
|
2019-05-29 10:02:16 +00:00
|
|
|
- KUBECONFIG=$HOME/.kube/config
|
2019-02-04 05:31:43 +00:00
|
|
|
|
2019-02-07 09:58:09 +00:00
|
|
|
jobs:
|
|
|
|
include:
|
2019-05-27 09:31:47 +00:00
|
|
|
- name: static-check-make
|
2019-02-07 09:58:09 +00:00
|
|
|
install:
|
|
|
|
- gem install mdl
|
|
|
|
- pip install --user --upgrade pip
|
|
|
|
- pip install --user yamllint
|
2019-03-04 03:46:31 +00:00
|
|
|
# install golangci-lint
|
2019-06-13 09:10:02 +00:00
|
|
|
# workaround for https://github.com/golangci/golangci-lint/issues/575
|
2019-03-04 03:46:31 +00:00
|
|
|
- curl -sf
|
2019-06-13 09:10:02 +00:00
|
|
|
"https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh"
|
2019-03-04 03:46:31 +00:00
|
|
|
| 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-06-13 09:10:02 +00:00
|
|
|
- name: cephcsi with kube 1.13.7
|
2019-02-07 09:58:09 +00:00
|
|
|
script:
|
2019-05-29 13:32:15 +00:00
|
|
|
- scripts/skip-doc-change.sh || travis_terminate 0;
|
2019-05-29 10:02:16 +00:00
|
|
|
- make image-cephcsi || travis_terminate 1;
|
2019-06-13 09:10:02 +00:00
|
|
|
- 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;
|
2018-02-15 21:02:39 +00:00
|
|
|
|
2018-02-15 20:55:06 +00:00
|
|
|
deploy:
|
|
|
|
- provider: script
|
2019-03-04 04:28:37 +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
|