-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
25 lines (20 loc) · 1.03 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
sudo: required
env:
- CHANGE_MINIKUBE_NONE_USER=true K8S_VER=1.9.0 M6E_VER=v0.25.2
before_script:
# Setup minikube
- curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v$K8S_VER/bin/linux/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
- curl -Lo minikube https://storage.googleapis.com/minikube/releases/$M6E_VER/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
- sudo minikube start --vm-driver=none --kubernetes-version=v$K8S_VER
- minikube update-context
- 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:
- bash install.sh
- kubectl plugin pvc create bar1 1Gi README.md README.md
- kubectl plugin pvc cat bar1 README.md
- kubectl plugin pvc cp bar1 README.md README.md
# Check that remote installation works as well
- rm -rvf ~/.kube/plugins
- rm -f pvc
- bash install.sh
- kubectl plugin pvc cat bar1 README.md