forked from espressif/esp-idf
Merge branch 'ci/fix-custom-oocd-setting' into 'master'
ci: select OpenOCD binary based on runner See merge request espressif/esp-idf!39375
This commit is contained in:
@ -314,7 +314,6 @@ build_child_pipeline:
|
|||||||
PARENT_PIPELINE_ID: $CI_PIPELINE_ID
|
PARENT_PIPELINE_ID: $CI_PIPELINE_ID
|
||||||
BUILD_AND_TEST_ALL_APPS: $BUILD_AND_TEST_ALL_APPS
|
BUILD_AND_TEST_ALL_APPS: $BUILD_AND_TEST_ALL_APPS
|
||||||
REPORT_EXIT_CODE: $REPORT_EXIT_CODE
|
REPORT_EXIT_CODE: $REPORT_EXIT_CODE
|
||||||
OOCD_DISTRO_URL: ${OOCD_DISTRO_URL:-}
|
|
||||||
# https://gitlab.com/gitlab-org/gitlab/-/issues/214340
|
# https://gitlab.com/gitlab-org/gitlab/-/issues/214340
|
||||||
inherit:
|
inherit:
|
||||||
variables: false
|
variables: false
|
||||||
|
@ -198,13 +198,21 @@ variables:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Custom OpenOCD
|
# Custom OpenOCD
|
||||||
if [[ ! -z "$OOCD_DISTRO_URL" && "$CI_JOB_STAGE" == "target_test" ]]; then
|
if [[ "$CI_JOB_STAGE" == "target_test" ]]; then
|
||||||
echo "Using custom OpenOCD from ${OOCD_DISTRO_URL}"
|
machine="$(uname -m)"
|
||||||
wget $OOCD_DISTRO_URL
|
if [[ "$machine" == "armv7l" ]] ; then
|
||||||
ARCH_NAME=$(basename $OOCD_DISTRO_URL)
|
OOCD_DISTRO_URL="$OOCD_DISTRO_URL_ARMHF"
|
||||||
tar -x -f $ARCH_NAME
|
elif [[ "$machine" == "aarch64" ]] ; then
|
||||||
export OPENOCD_SCRIPTS=$PWD/openocd-esp32/share/openocd/scripts
|
OOCD_DISTRO_URL="$OOCD_DISTRO_URL_ARM64"
|
||||||
export PATH=$PWD/openocd-esp32/bin:$PATH
|
fi
|
||||||
|
if [[ ! -z "$OOCD_DISTRO_URL" ]]; then
|
||||||
|
echo "Using custom OpenOCD from ${OOCD_DISTRO_URL}"
|
||||||
|
wget $OOCD_DISTRO_URL
|
||||||
|
ARCH_NAME=$(basename $OOCD_DISTRO_URL)
|
||||||
|
tar -x -f $ARCH_NAME
|
||||||
|
export OPENOCD_SCRIPTS=$PWD/openocd-esp32/share/openocd/scripts
|
||||||
|
export PATH=$PWD/openocd-esp32/bin:$PATH
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n "$CI_PYTHON_TOOL_REPO" ]]; then
|
if [[ -n "$CI_PYTHON_TOOL_REPO" ]]; then
|
||||||
|
@ -165,6 +165,8 @@ pipeline_variables:
|
|||||||
if [ -n "$CI_PYTHON_CONSTRAINT_BRANCH" ]; then
|
if [ -n "$CI_PYTHON_CONSTRAINT_BRANCH" ]; then
|
||||||
echo "BUILD_AND_TEST_ALL_APPS=1" >> pipeline.env
|
echo "BUILD_AND_TEST_ALL_APPS=1" >> pipeline.env
|
||||||
fi
|
fi
|
||||||
|
- echo "OOCD_DISTRO_URL_ARMHF=$OOCD_DISTRO_URL_ARMHF" >> pipeline.env
|
||||||
|
- echo "OOCD_DISTRO_URL_ARM64=$OOCD_DISTRO_URL_ARM64" >> pipeline.env
|
||||||
- python tools/ci/ci_process_description.py
|
- python tools/ci/ci_process_description.py
|
||||||
- cat pipeline.env
|
- cat pipeline.env
|
||||||
- python tools/ci/artifacts_handler.py upload --type modified_files_and_components_report
|
- python tools/ci/artifacts_handler.py upload --type modified_files_and_components_report
|
||||||
|
@ -57,6 +57,9 @@
|
|||||||
ENV_MARKERS: ""
|
ENV_MARKERS: ""
|
||||||
INSTALL_EXTRA_TOOLS: "xtensa-esp-elf-gdb riscv32-esp-elf-gdb openocd-esp32 esp-rom-elfs"
|
INSTALL_EXTRA_TOOLS: "xtensa-esp-elf-gdb riscv32-esp-elf-gdb openocd-esp32 esp-rom-elfs"
|
||||||
PYTEST_EXTRA_FLAGS: "--dev-passwd ${ETHERNET_TEST_PASSWORD} --dev-user ${ETHERNET_TEST_USER} --capture=fd --verbosity=0 --unity-test-report-mode merge"
|
PYTEST_EXTRA_FLAGS: "--dev-passwd ${ETHERNET_TEST_PASSWORD} --dev-user ${ETHERNET_TEST_USER} --capture=fd --verbosity=0 --unity-test-report-mode merge"
|
||||||
|
needs:
|
||||||
|
- pipeline: $PARENT_PIPELINE_ID
|
||||||
|
job: pipeline_variables
|
||||||
cache:
|
cache:
|
||||||
# Usually do not need submodule-cache in target_test
|
# Usually do not need submodule-cache in target_test
|
||||||
- key: pip-cache-${LATEST_GIT_TAG}
|
- key: pip-cache-${LATEST_GIT_TAG}
|
||||||
|
@ -38,7 +38,6 @@ Pytest Target Test Jobs:
|
|||||||
needs:
|
needs:
|
||||||
- generate_pytest_child_pipeline
|
- generate_pytest_child_pipeline
|
||||||
variables:
|
variables:
|
||||||
OOCD_DISTRO_URL: ${OOCD_DISTRO_URL:-}
|
|
||||||
PARENT_PIPELINE_ID: $PARENT_PIPELINE_ID
|
PARENT_PIPELINE_ID: $PARENT_PIPELINE_ID
|
||||||
REPORT_EXIT_CODE: $REPORT_EXIT_CODE
|
REPORT_EXIT_CODE: $REPORT_EXIT_CODE
|
||||||
# https://gitlab.com/gitlab-org/gitlab/-/issues/214340
|
# https://gitlab.com/gitlab-org/gitlab/-/issues/214340
|
||||||
|
Reference in New Issue
Block a user