mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
5e04be9e1f
Update minikube to 1.14 and also update container images to latest
64 lines
1.4 KiB
YAML
64 lines
1.4 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.11.x
|
|
|
|
env:
|
|
global:
|
|
- GOLANGCI_VERSION="v1.15.0"
|
|
- TEST_COVERAGE=stdout
|
|
- GO_METALINTER_THREADS=1
|
|
- GO_COVER_DIR=_output
|
|
- VM_DRIVER=none
|
|
- KUBE_VERSION=v1.14.2
|
|
- MINIKUBE_VERSION=v1.1.0
|
|
- CHANGE_MINIKUBE_NONE_USER=true
|
|
|
|
jobs:
|
|
include:
|
|
- name: static-check-make
|
|
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:
|
|
- scripts/skip-doc-change.sh || travis_terminate 0;
|
|
- make cephcsi || travis_terminate 1;
|
|
- sudo scripts/minikube.sh up || travis_terminate 1;
|
|
# pull docker images to speed up e2e
|
|
- scripts/minikube.sh cephcsi
|
|
- scripts/minikube.sh k8s-sidecar
|
|
- "sudo chown -R travis: $HOME/.minikube /usr/local/bin/kubectl"
|
|
|
|
deploy:
|
|
- provider: script
|
|
on: # yamllint disable-line rule:truthy
|
|
all_branches: true
|
|
script: ./deploy.sh
|