Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions dev/ci/presubmits/cloud-provider-gcp-e2e-full
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/env bash

set -o errexit;
set -o nounset;
set -o pipefail;
set -o xtrace;

REPO_ROOT=$(git rev-parse --show-toplevel)

export GO111MODULE=on
if [[ -f "${REPO_ROOT}/.bazelversion" ]]; then
export BAZEL_VERSION=$(cat "${REPO_ROOT}/.bazelversion")
echo "BAZEL_VERSION set to ${BAZEL_VERSION}"
else
export BAZEL_VERSION="5.3.0"
echo "BAZEL_VERSION - Falling back to 5.3.0"
fi
/workspace/test-infra/images/kubekins-e2e/install-bazel.sh

go install sigs.k8s.io/kubetest2@latest
go install sigs.k8s.io/kubetest2/kubetest2-gce@latest
go install sigs.k8s.io/kubetest2/kubetest2-tester-ginkgo@latest

if [[ -f "${REPO_ROOT}/ginko-test-package-version.env" ]]; then
export TEST_PACKAGE_VERSION=$(cat "${REPO_ROOT}/ginko-test-package-version.env")
echo "TEST_PACKAGE_VERSION set to ${TEST_PACKAGE_VERSION}"
else
export TEST_PACKAGE_VERSION="v1.25.0"
echo "TEST_PACKAGE_VERSION - Falling back to v1.25.0"
fi

kubetest2 gce -v 2 --repo-root "${REPO_ROOT}" --build --up --down --test=ginkgo --node-size e2-standard-4 --master-size e2-standard-8 -- --test-package-version="${TEST_PACKAGE_VERSION}" --parallel=30 --test-args='--minStartupPods=8' --skip-regex='\[Slow\]|\[Serial\]|\[Disruptive\]|\[Flaky\]|\[Feature:.+\]'
5 changes: 5 additions & 0 deletions dev/ci/presubmits/cloud-provider-gcp-verify-all
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env python3

import subprocess

subprocess.run(["tools/verify-all.sh"], check=True)
5 changes: 5 additions & 0 deletions dev/ci/presubmits/cloud-provider-gcp-verify-up-to-date
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env python3

import subprocess

subprocess.run(["tools/verify-up-to-date.sh"], check=True)
5 changes: 5 additions & 0 deletions dev/ci/presubmits/pull-cloud-provider-gcp-e2e
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env python3

import subprocess

subprocess.run(["tools/run-e2e-test.sh"], check=True)
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env python3

import subprocess

subprocess.run(["e2e/add-kubernetes-to-workspace.sh"], check=True)

subprocess.run(["e2e/scenarios/kops-simple"], check=True)