diff --git a/pull-test.sh b/pull-test.sh new file mode 100755 index 000000000..0e5e7ddfc --- /dev/null +++ b/pull-test.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +set -ex + +CSI_RELEASE_TOOLS_DIR="$(pwd)" + +# Find the other repo. +# TODO: move this to Prow job. +ls -l /home/prow/go/src/github.com/kubernetes-csi +OTHER_REPO_DIR="/home/prow/go/src/github.com/kubernetes-csi/$(ls /home/prow/go/src/github.com/kubernetes-csi | grep -v csi-release-tools)" + +# Update the other repo. +cd "$OTHER_REPO_DIR" +git subtree git subtree pull --squash --prefix=release-tools "$CSI_RELEASE_TOOLS_DIR" master + +# Now fall through to testing. +exec ./.prow.sh