From b412182ec3d5ec4a9108a9333106f2cb92d7244b Mon Sep 17 00:00:00 2001 From: mritunjaygoutam12 Date: Sun, 4 Nov 2018 11:12:44 +0530 Subject: [PATCH 1/2] makefile: added option for http clone of gcovr --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index aa8d75242c00f5..9390a2d23f9303 100644 --- a/Makefile +++ b/Makefile @@ -204,8 +204,10 @@ coverage-build: all mkdir -p node_modules if [ ! -d node_modules/nyc ]; then \ $(NODE) ./deps/npm install nyc@13 --no-save --no-package-lock; fi - if [ ! -d gcovr ]; then git clone -b 3.4 --depth=1 \ - --single-branch git://github.com/gcovr/gcovr.git; fi + if [ ! -d gcovr ]; then timeout 20s \ + git clone -b 3.4 --depth=1 --single-branch git://github.com/gcovr/gcovr.git \ + || \ + git clone -b 3.4 --depth=1 --single-branch https://github.com/gcovr/gcovr.git; fi if [ ! -d build ]; then git clone --depth=1 \ --single-branch https://github.com/nodejs/build.git; fi if [ ! -f gcovr/scripts/gcovr.orig ]; then \ From 630f5dab9b62275796317aa91504f3dd5a68b3b3 Mon Sep 17 00:00:00 2001 From: mritunjaygoutam12 Date: Sun, 4 Nov 2018 23:52:26 +0530 Subject: [PATCH 2/2] makefile: git clone URI changed to http from SSH(git protocol) --- Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 9390a2d23f9303..8250aa16a76331 100644 --- a/Makefile +++ b/Makefile @@ -204,10 +204,8 @@ coverage-build: all mkdir -p node_modules if [ ! -d node_modules/nyc ]; then \ $(NODE) ./deps/npm install nyc@13 --no-save --no-package-lock; fi - if [ ! -d gcovr ]; then timeout 20s \ - git clone -b 3.4 --depth=1 --single-branch git://github.com/gcovr/gcovr.git \ - || \ - git clone -b 3.4 --depth=1 --single-branch https://github.com/gcovr/gcovr.git; fi + if [ ! -d gcovr ]; then git clone -b 3.4 --depth=1 \ + --single-branch https://github.com/gcovr/gcovr.git; fi if [ ! -d build ]; then git clone --depth=1 \ --single-branch https://github.com/nodejs/build.git; fi if [ ! -f gcovr/scripts/gcovr.orig ]; then \