mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
contrib/mesos/ci: add CONFORMANCE_BRANCH override
This commit is contained in:
parent
d800e02f84
commit
5e6d35897d
@ -31,4 +31,19 @@ TEST_ARGS="$@"
|
|||||||
|
|
||||||
KUBE_ROOT=$(cd "$(dirname "${BASH_SOURCE}")/../../.." && pwd)
|
KUBE_ROOT=$(cd "$(dirname "${BASH_SOURCE}")/../../.." && pwd)
|
||||||
|
|
||||||
"${KUBE_ROOT}/contrib/mesos/ci/run-with-cluster.sh" KUBECONFIG=~/.kube/config hack/conformance-test.sh ${TEST_ARGS}
|
if [ -n "${CONFORMANCE_BRANCH}" ]; then
|
||||||
|
# checkout CONFORMANCE_BRANCH, but leave the contrib/mesos/ci directory
|
||||||
|
# untouched.
|
||||||
|
TEST_CMD="
|
||||||
|
git fetch https://github.com/kubernetes/kubernetes ${CONFORMANCE_BRANCH} &&
|
||||||
|
git checkout FETCH_HEAD -- . ':(exclude)contrib/mesos/ci/**' &&
|
||||||
|
git reset FETCH_HEAD &&
|
||||||
|
git clean -d -f -- . ':(exclude)contrib/mesos/ci/**' &&
|
||||||
|
git status &&
|
||||||
|
make all &&
|
||||||
|
"
|
||||||
|
else
|
||||||
|
TEST_CMD=""
|
||||||
|
fi
|
||||||
|
TEST_CMD+="KUBECONFIG=~/.kube/config hack/conformance-test.sh"
|
||||||
|
"${KUBE_ROOT}/contrib/mesos/ci/run-with-cluster.sh" ${TEST_CMD} ${TEST_ARGS}
|
||||||
|
Loading…
Reference in New Issue
Block a user