From d5e3c294d88604dab5ea49a757f45c1ac603baf3 Mon Sep 17 00:00:00 2001 From: paulfantom <pawel@krupa.net.pl> Date: Thu, 10 Sep 2020 14:30:57 +0200 Subject: [PATCH] tests: allow easy test paralelization --- .travis.yml | 1 + tests/e2e/travis-e2e.sh | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index f22e4aef..4750d3ef 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/tests/e2e/travis-e2e.sh b/tests/e2e/travis-e2e.sh index d5493867..2ead7c2f 100755 --- a/tests/e2e/travis-e2e.sh +++ b/tests/e2e/travis-e2e.sh @@ -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" -- GitLab