From 80d83518958a31dfd82f5b3e252962f9c0c8cc6c Mon Sep 17 00:00:00 2001 From: Alexey Gerenkov Date: Tue, 19 Jan 2021 23:14:59 +0300 Subject: [PATCH] ci: Run target tests with custom OpenOCD distro --- .gitlab-ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 672f4e9a66..ca04b19d34 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -71,6 +71,14 @@ variables: fi if [[ "$SETUP_TOOLS" == "1" || "$CI_JOB_STAGE" != "target_test" ]]; then tools/idf_tools.py --non-interactive install && eval "$(tools/idf_tools.py --non-interactive export)" || exit 1 + 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 before_script: