From a86bd8e768c9a4af6a411d06bcc5a309868ba46b Mon Sep 17 00:00:00 2001 From: Alexey Gerenkov Date: Tue, 9 Mar 2021 20:24:39 +0300 Subject: [PATCH] ci: Install custom OpenOCD for target tests only --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bbe4197a41..30371b94dc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -66,7 +66,7 @@ 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 + if [[ ! -z "$OOCD_DISTRO_URL" && "$CI_JOB_STAGE" == "target_test" ]]; then echo "Using custom OpenOCD from ${OOCD_DISTRO_URL}" wget $OOCD_DISTRO_URL ARCH_NAME=$(basename $OOCD_DISTRO_URL)