This repository has been archived by the owner on Oct 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
74 lines (71 loc) · 2.79 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
language: go
dist: bionic
sudo: required
install: true
services:
- docker
go:
- 1.14.7
env:
global:
- GOARCH=$(go env GOARCH)
- GOPATH=$(go env GOPATH)
- GOPROXY="https://gocenter.io,direct"
- GO_FOR_RELEASE=1.13
- CHANGE_MINIKUBE_NONE_USER=true
- MINIKUBE_WANTUPDATENOTIFICATION=false
- MINIKUBE_WANTREPORTERRORPROMPT=false
- MINIKUBE_HOME=$HOME
- CHANGE_MINIKUBE_NONE_USER=true
- KUBECONFIG=$HOME/.kube/config
addons:
apt:
update: true
install:
- make bootstrap
before_install:
- git clone https://www.github.com/openebs/jiva-operator $GOPATH/src/github.com/openebs/jiva-operator
- sudo apt-get install -y open-iscsi
- sudo service open-iscsi restart
- sudo systemctl enable iscsid && sudo systemctl start iscsid
- sudo cat /etc/iscsi/initiatorname.iscsi
- systemctl status iscsid
# Download kubectl, which is a requirement for using minikube.
- curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.20.1/bin/linux/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
# Download minikube.
- curl -Lo minikube https://storage.googleapis.com/minikube/releases/v1.16.0/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
- mkdir -p $HOME/.kube $HOME/.minikube
- touch $KUBECONFIG
- sudo apt-get -qq -y install conntrack
- sudo minikube start --profile=minikube --vm-driver=none --kubernetes-version=v1.20.1
- minikube update-context --profile=minikube
- "sudo chown -R travis: /home/travis/.minikube/"
- eval "$(minikube docker-env --profile=minikube)" && export DOCKER_CLI='docker'
- JSONPATH='{range .items[*]}{@.metadata.name}:{range @.status.conditions[*]}{@.type}={@.status};{end}{end}';
until kubectl get nodes -o jsonpath="$JSONPATH" 2>&1 | grep -q "Ready=True"; do
sleep 1; done
script:
- kubectl cluster-info
# Verify kube-addon-manager.
# kube-addon-manager is responsible for managing other kubernetes components, such as kube-dns, dashboard, storage-provisioner..
- JSONPATH='{range .items[*]}{@.metadata.name}:{range @.status.conditions[*]}{@.type}={@.status};{end}{end}';
until kubectl -n kube-system get pods -lk8s-app=kube-dns -o jsonpath="$JSONPATH"
2>&1 | grep -q "Ready=True"; do sleep 1;echo "waiting for kube-dns to
be available"; kubectl get pods --all-namespaces; done
- make license-check
- make image
- cd $GOPATH/src/github.com/openebs/jiva-operator
- wget https://raw.githubusercontent.com/openebs/openebs/master/k8s/openebs-operator.yaml
- kubectl apply -f openebs-operator.yaml
- kubectl apply -f deploy/operator.yaml
- cd ${TRAVIS_BUILD_DIR}
- kubectl apply -f deploy/jiva-csi.yaml
- ./ci/ci.sh
- cd ./tests
- make tests
after_success:
- make push
notifications:
email:
recipients:
- kiran.mova@mayadata.io