devops(chromium): install depot_tools if missing (#5204)

This commit is contained in:
Andrey Lushnikov 2021-01-28 01:43:54 -08:00 committed by GitHub
parent a7eea9ffdc
commit 75a0d7a76b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -1 +1,2 @@
/output
/depot_tools

View File

@ -34,10 +34,11 @@ compile_chromium() {
echo "ERROR: chromium compilation requires CR_CHECKOUT_PATH to be set to reuse checkout."
exit 1
fi
if ! command -v gclient >/dev/null; then
echo "ERROR: chromium compilation requires depot_tools to be installed!"
exit 1
if [[ ! -d "${SCRIPT_PATH}/depot_tools" ]]; then
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git "${SCRIPT_PATH}/depot_tools"
fi
export PATH="${SCRIPT_PATH}/depot_tools:$PATH"
CHROMIUM_FOLDER_NAME=""
CHROMIUM_FILES_TO_ARCHIVE=()