Skip to content
Snippets Groups Projects
Commit 14a7f35e authored by matt-kwong's avatar matt-kwong Committed by GitHub
Browse files

Merge pull request #8355 from jtattermusch/better_workspace_clone_backport

Save time when creating matrix workspaces on win and mac
parents 0b1a62c7 4251945f
No related branches found
No related tags found
No related merge requests found
......@@ -35,11 +35,13 @@
set -ex
cd $(dirname $0)/../..
export repo_root=$(pwd)
rm -rf "${WORKSPACE_NAME}"
# TODO(jtattermusch): clone --recursive fetches the submodules from github.
# Try avoiding that to save time and network capacity.
git clone --recursive . "${WORKSPACE_NAME}"
git clone . "${WORKSPACE_NAME}"
# clone gRPC submodules, use data from locally cloned submodules where possible
git submodule foreach 'cd "${repo_root}/${WORKSPACE_NAME}" \
&& git submodule update --init --reference ${repo_root}/${name} ${name}'
echo "Running run_tests.py in workspace ${WORKSPACE_NAME}"
python "${WORKSPACE_NAME}/tools/run_tests/run_tests.py" $@
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment