mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-30 18:20:38 +03:00
fix(gitlab): Use overwritten IDF_TOOLS_PATH
This commit is contained in:
@@ -142,8 +142,8 @@ variables:
|
||||
# download constraint file for dev
|
||||
if [[ -n "$CI_PYTHON_CONSTRAINT_BRANCH" ]]; then
|
||||
wget -O /tmp/constraint.txt --header="Authorization:Bearer ${ESPCI_TOKEN}" ${GITLAB_HTTP_SERVER}/api/v4/projects/2581/repository/files/${CI_PYTHON_CONSTRAINT_FILE}/raw?ref=${CI_PYTHON_CONSTRAINT_BRANCH}
|
||||
mkdir -p ~/.espressif
|
||||
mv /tmp/constraint.txt ~/.espressif/${CI_PYTHON_CONSTRAINT_FILE}
|
||||
mkdir -p "${IDF_TOOLS_PATH:-$HOME/.espressif}"
|
||||
mv /tmp/constraint.txt "${IDF_TOOLS_PATH:-$HOME/.espressif}/${CI_PYTHON_CONSTRAINT_FILE}"
|
||||
fi
|
||||
|
||||
# Mirror
|
||||
@@ -194,7 +194,7 @@ variables:
|
||||
# we need the latest DEV release for esptool to be installed in every job without bumping the minimal requirement in
|
||||
# the constraint file.
|
||||
section_start "esptool_upgrade" "Upgrade esptool to the latest development version"
|
||||
pip install --upgrade --pre esptool -c ~/.espressif/${CI_PYTHON_CONSTRAINT_FILE}
|
||||
pip install --upgrade --pre esptool -c "${IDF_TOOLS_PATH:-$HOME/.espressif}/${CI_PYTHON_CONSTRAINT_FILE}"
|
||||
section_end "esptool_upgrade"
|
||||
|
||||
# Custom clang toolchain
|
||||
|
||||
Reference in New Issue
Block a user