aboutsummaryrefslogtreecommitdiff
path: root/kokoro/scripts/linux/build-docker.sh
diff options
context:
space:
mode:
Diffstat (limited to 'kokoro/scripts/linux/build-docker.sh')
-rwxr-xr-xkokoro/scripts/linux/build-docker.sh16
1 files changed, 14 insertions, 2 deletions
diff --git a/kokoro/scripts/linux/build-docker.sh b/kokoro/scripts/linux/build-docker.sh
index 7d62ee36..80043b8a 100755
--- a/kokoro/scripts/linux/build-docker.sh
+++ b/kokoro/scripts/linux/build-docker.sh
@@ -30,6 +30,14 @@ fi
cd $ROOT_DIR
+function clone_if_missing() {
+ url=$1
+ dir=$2
+ if [[ ! -d "$dir" ]]; then
+ git clone ${@:3} "$url" "$dir"
+ fi
+}
+
function clean_dir() {
dir=$1
if [[ -d "$dir" ]]; then
@@ -38,8 +46,12 @@ function clean_dir() {
mkdir "$dir"
}
-# Get source for dependencies, as specified in the DEPS file
-/usr/bin/python3 utils/git-sync-deps --treeless
+clone_if_missing https://github.com/KhronosGroup/SPIRV-Headers external/spirv-headers --depth=1
+clone_if_missing https://github.com/google/googletest external/googletest
+pushd external/googletest; git reset --hard 1fb1bb23bb8418dc73a5a9a82bbed31dc610fec7; popd
+clone_if_missing https://github.com/google/effcee external/effcee --depth=1
+clone_if_missing https://github.com/google/re2 external/re2 --depth=1
+clone_if_missing https://github.com/protocolbuffers/protobuf external/protobuf --branch v3.13.0.1
if [ $TOOL = "cmake" ]; then
using cmake-3.17.2