mirror of
https://github.com/espressif/esp-mqtt.git
synced 2025-07-30 18:58:07 +02:00
ci: internal ci step for building with legacy idf to avoid travis failures
This commit is contained in:
@ -7,6 +7,8 @@ stages:
|
||||
|
||||
variables:
|
||||
IDF_REPO: ${GITLAB_SSH_SERVER}/idf/esp-idf.git
|
||||
OLDER_IDF: release/v3.1
|
||||
RECENT_IDF: release/v3.3
|
||||
|
||||
.add_gh_key_remote: &add_gh_key_remote |
|
||||
cit_add_ssh_key "${GH_PUSH_KEY}"
|
||||
@ -19,6 +21,23 @@ before_script:
|
||||
- source citools/import_functions
|
||||
- PATH=$CI_PROJECT_DIR/esp-idf/tools:$PATH
|
||||
|
||||
build_with_older_idf:
|
||||
stage: build
|
||||
image: ${CI_DOCKER_REGISTRY}/esp32-ci-env
|
||||
tags:
|
||||
- build
|
||||
dependencies: []
|
||||
script:
|
||||
- cit_add_ssh_key "${GITLAB_KEY}"
|
||||
- git clone "${IDF_REPO}" && cd esp-idf && git checkout ${OLDER_IDF}
|
||||
- ./tools/ci/mirror-submodule-update.sh
|
||||
- export IDF_PATH=$(pwd)
|
||||
- cd $CI_PROJECT_DIR
|
||||
- ./modify_for_legacy_idf.sh ${RECENT_IDF} || true
|
||||
- cd $CI_PROJECT_DIR/examples/tcp
|
||||
- make defconfig
|
||||
- make
|
||||
|
||||
build_with_idf:
|
||||
stage: build
|
||||
image: ${CI_DOCKER_REGISTRY}/esp32-ci-env
|
||||
|
Reference in New Issue
Block a user