|
|
@@ -35,14 +35,11 @@ variables:
|
|
|
|
|
|
UNIT_TEST_BUILD_SYSTEM: cmake
|
|
|
EXAMPLE_TEST_BUILD_SYSTEM: cmake
|
|
|
-# IDF environment
|
|
|
-
|
|
|
IDF_PATH: "$CI_PROJECT_DIR"
|
|
|
BATCH_BUILD: "1"
|
|
|
V: "0"
|
|
|
APPLY_BOT_FILTER_SCRIPT: "$CI_PROJECT_DIR/tools/ci/apply_bot_filter.py"
|
|
|
CHECKOUT_REF_SCRIPT: "$CI_PROJECT_DIR/tools/ci/checkout_project_ref.py"
|
|
|
- CUSTOM_TOOLCHAIN_PATH: "/opt/xtensa-custom"
|
|
|
|
|
|
# Docker images
|
|
|
BOT_DOCKER_IMAGE_TAG: ":latest"
|
|
|
@@ -55,25 +52,6 @@ variables:
|
|
|
.apply_bot_filter: &apply_bot_filter
|
|
|
python $APPLY_BOT_FILTER_SCRIPT || exit 0
|
|
|
|
|
|
-.setup_custom_toolchain: &setup_custom_toolchain |
|
|
|
- if [ "$IDF_XTENSA_TOOLCHAIN_URL" ] ; then
|
|
|
- echo "Use a custom toolchain: ${IDF_XTENSA_TOOLCHAIN_URL:-Unknown}"
|
|
|
- rm -rf "$CUSTOM_TOOLCHAIN_PATH" &&
|
|
|
- mkdir -p -v "$CUSTOM_TOOLCHAIN_PATH" &&
|
|
|
- pushd "$CUSTOM_TOOLCHAIN_PATH" &&
|
|
|
- curl -sSL -o xtensa-custom.xxx "$IDF_XTENSA_TOOLCHAIN_URL" &&
|
|
|
- ls -l xtensa-custom.xxx &&
|
|
|
- tar xf xtensa-custom.xxx --strip-components 1 &&
|
|
|
- ls -l . &&
|
|
|
- popd
|
|
|
- PATH=$CUSTOM_TOOLCHAIN_PATH/bin:$PATH
|
|
|
- export PATH
|
|
|
- fi
|
|
|
-
|
|
|
-.cleanup_custom_toolchain: &cleanup_custom_toolchain |
|
|
|
- echo "Cleaning up $CUSTOM_TOOLCHAIN_PATH"
|
|
|
- rm -rf "$CUSTOM_TOOLCHAIN_PATH"
|
|
|
-
|
|
|
.setup_tools_unless_target_test: &setup_tools_unless_target_test |
|
|
|
if [[ -n "$IDF_DONT_USE_MIRRORS" ]]; then
|
|
|
export IDF_MIRROR_PREFIX_MAP=
|
|
|
@@ -98,13 +76,10 @@ before_script:
|
|
|
- echo -e "Host gitlab.espressif.cn\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
|
|
|
# Set some options and environment for CI
|
|
|
- source tools/ci/configure_ci_environment.sh
|
|
|
-
|
|
|
- *setup_tools_unless_target_test
|
|
|
|
|
|
- *fetch_submodules
|
|
|
|
|
|
- - *setup_custom_toolchain
|
|
|
-
|
|
|
# used for check scripts which we want to run unconditionally
|
|
|
.before_script_lesser_nofilter:
|
|
|
variables:
|
|
|
@@ -113,7 +88,6 @@ before_script:
|
|
|
- echo "Not setting up GitLab key, not fetching submodules, not applying bot filter"
|
|
|
- source tools/ci/setup_python.sh
|
|
|
- source tools/ci/configure_ci_environment.sh
|
|
|
- - *setup_custom_toolchain
|
|
|
|
|
|
# used for everything else where we want to do no prep, except for bot filter
|
|
|
.before_script_lesser:
|
|
|
@@ -125,10 +99,6 @@ before_script:
|
|
|
# apply bot filter in before script
|
|
|
- *apply_bot_filter
|
|
|
- source tools/ci/configure_ci_environment.sh
|
|
|
- - *setup_custom_toolchain
|
|
|
-
|
|
|
-after_script:
|
|
|
- - *cleanup_custom_toolchain
|
|
|
|
|
|
.check_job_template:
|
|
|
stage: pre_check
|
|
|
@@ -154,7 +124,6 @@ after_script:
|
|
|
before_script:
|
|
|
- *apply_bot_filter
|
|
|
- *setup_tools_unless_target_test
|
|
|
- - *setup_custom_toolchain
|
|
|
- source tools/ci/configure_ci_environment.sh
|
|
|
|
|
|
include:
|