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 /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." echo "ERROR: chromium compilation requires CR_CHECKOUT_PATH to be set to reuse checkout."
exit 1 exit 1
fi fi
if ! command -v gclient >/dev/null; then
echo "ERROR: chromium compilation requires depot_tools to be installed!" if [[ ! -d "${SCRIPT_PATH}/depot_tools" ]]; then
exit 1 git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git "${SCRIPT_PATH}/depot_tools"
fi fi
export PATH="${SCRIPT_PATH}/depot_tools:$PATH"
CHROMIUM_FOLDER_NAME="" CHROMIUM_FOLDER_NAME=""
CHROMIUM_FILES_TO_ARCHIVE=() CHROMIUM_FILES_TO_ARCHIVE=()