Skip to content

Commit

Permalink
Merge pull request kubernetes#17835 from mesosphere/sttts-conformance…
Browse files Browse the repository at this point in the history
…-branch

Auto commit by PR queue bot
  • Loading branch information
k8s-merge-robot committed Nov 27, 2015
2 parents 14bebe3 + 5e6d358 commit 6850c6d
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion contrib/mesos/ci/test-conformance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,19 @@ TEST_ARGS="$@"

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}

0 comments on commit 6850c6d

Please sign in to comment.