Skip to content

Commit cc209d0

Browse files
committed
Merge branch 'ci/run_testss_with_custom_oocd' into 'master'
CI target tests with custom OpenOCD distro See merge request espressif/esp-idf!12062
2 parents 2bddd67 + 80d8351 commit cc209d0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.gitlab-ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@ variables:
7272
fi
7373
if [[ "$SETUP_TOOLS" == "1" || "$CI_JOB_STAGE" != "target_test" ]]; then
7474
tools/idf_tools.py --non-interactive install && eval "$(tools/idf_tools.py --non-interactive export)" || exit 1
75+
if [[ ! -z "$OOCD_DISTRO_URL" ]]; then
76+
echo "Using custom OpenOCD from ${OOCD_DISTRO_URL}"
77+
wget $OOCD_DISTRO_URL
78+
ARCH_NAME=$(basename $OOCD_DISTRO_URL)
79+
tar -x -f $ARCH_NAME
80+
export OPENOCD_SCRIPTS=$PWD/openocd-esp32/share/openocd/scripts
81+
export PATH=$PWD/openocd-esp32/bin:$PATH
82+
fi
7583
fi
7684

7785
before_script:

0 commit comments

Comments
 (0)