Add a working Travis pipeline
This commit is contained in:
@@ -8,14 +8,21 @@ set -u
|
||||
# print each command before executing it
|
||||
set -x
|
||||
|
||||
SCRIPT_DIR=$(dirname "${BASH_SOURCE[0]}")
|
||||
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
|
||||
curl -Lo kind https://github.com/kubernetes-sigs/kind/releases/download/0.2.1/kind-linux-amd64
|
||||
chmod +x kind
|
||||
|
||||
"${SCRIPT_DIR}"/../../../../scripts/create-minikube.sh
|
||||
./kind create cluster
|
||||
export KUBECONFIG="$(./kind get kubeconfig-path)"
|
||||
|
||||
(
|
||||
cd "${SCRIPT_DIR}"/../.. || exit
|
||||
kubectl apply -f manifests
|
||||
KUBECONFIG=~/.kube/config make test-e2e
|
||||
)
|
||||
./kubectl apply -f manifests/0prometheus-operator-0alertmanagerCustomResourceDefinition.yaml
|
||||
./kubectl apply -f manifests/0prometheus-operator-0prometheusCustomResourceDefinition.yaml
|
||||
./kubectl apply -f manifests/0prometheus-operator-0prometheusruleCustomResourceDefinition.yaml
|
||||
./kubectl apply -f manifests/0prometheus-operator-0servicemonitorCustomResourceDefinition.yaml
|
||||
|
||||
"${SCRIPT_DIR}"/../../../../scripts/delete-minikube.sh
|
||||
# Wait for CRDs to be successfully registered
|
||||
sleep 10
|
||||
|
||||
./kubectl apply -f manifests
|
||||
make test-e2e
|
||||
|
Reference in New Issue
Block a user