mirror of
https://github.com/prometheus-operator/kube-prometheus.git
synced 2025-08-31 19:31:23 +02:00
tests: allow easy test paralelization
This commit is contained in:
parent
a6e6853f62
commit
d5e3c294d8
@ -19,3 +19,4 @@ jobs:
|
||||
script: make --always-make test
|
||||
- name: Run e2e tests
|
||||
script: ./tests/e2e/travis-e2e.sh
|
||||
env: K8S_VERSION=1.19.0
|
||||
|
@ -8,12 +8,14 @@ set -u
|
||||
# print each command before executing it
|
||||
set -x
|
||||
|
||||
K8S_VERSION="${K8S_VERSION:-"1.19.1"}"
|
||||
|
||||
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/v0.7.0/kind-linux-amd64
|
||||
curl -Lo kind https://github.com/kubernetes-sigs/kind/releases/download/v0.9.0/kind-linux-amd64
|
||||
chmod +x kind
|
||||
|
||||
./kind create cluster --image=kindest/node:v1.19.0
|
||||
./kind create cluster --image="kindest/node:v${K8S_VERSION}"
|
||||
# the default kube config location used by kind
|
||||
export KUBECONFIG="${HOME}/.kube/config"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user