ci: don't do idf_tools.py install in target_test stage

This commit is contained in:
Ivan Grokhotkov 2019-06-07 01:17:29 +08:00
parent 4b0b2c6fda
commit 57f7c77aff

View file

@ -73,8 +73,10 @@ variables:
echo "Cleaning up $CUSTOM_TOOLCHAIN_PATH"
rm -rf "$CUSTOM_TOOLCHAIN_PATH"
.setup_tools: &setup_tools |
.setup_tools_unless_target_test: &setup_tools_unless_target_test |
if [ "$CI_JOB_STAGE" != "target_test" ]; then
tools/idf_tools.py --non-interactive install && eval "$(tools/idf_tools.py --non-interactive export)" || exit 1
fi
before_script:
- source tools/ci/setup_python.sh
@ -94,7 +96,7 @@ before_script:
# (the same regular expressions are used to set these are used in 'only:' sections below
- source tools/ci/configure_ci_environment.sh
- *setup_tools
- *setup_tools_unless_target_test
- *setup_custom_toolchain