-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
23 lines (20 loc) · 1.09 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
language: bash
sudo: required
# This moves Kubernetes specific config files.
env:
- CHANGE_MINIKUBE_NONE_USER=true
before_script:
# Download kubectl, which is a requirement for using minikube.
- curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
# Download minikube.
- curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
- sudo minikube config set memory 4096
- sudo minikube start --vm-driver=none --bootstrapper=localkube
# Fix the kubectl context, as it's often stale.
- minikube update-context
- minikube addons enable ingress
# Wait for Kubernetes to be up and ready.
- 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
- /bin/bash start-travis.sh