代码拉取完成,页面将自动刷新
同步操作将从 乐鑫开源/esp-box 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
stages:
- build
- deploy
variables:
ESP_BOX_PATH: "$CI_PROJECT_DIR"
BATCH_BUILD: "1"
V: "0"
IDF_CI_BUILD: "1"
before_script:
# add gitlab ssh key
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- echo -n $GITLAB_KEY > ~/.ssh/id_rsa_base64
- base64 --decode --ignore-garbage ~/.ssh/id_rsa_base64 > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- echo -e "Host gitlab.espressif.cn\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- git --version
- git submodule update --init --recursive --force
.build_examples_template: &build_examples_template
stage: build
image: espressif/idf:release-v4.4
tags:
- build
build_demo_cmake:
<<: *build_examples_template
script:
- cd idf_patch
- python3 apply_patch.py -d $IDF_PATH
- cd ../
- cd examples/factory_demo
- idf.py fullclean
- idf.py build
- rm sdkconfig sdkconfig.defaults
- cp sdkconfig.defaults.cn sdkconfig.defaults
- idf.py build
- idf.py fullclean
- cd ../
- cd image_display
- idf.py fullclean
- idf.py build
- cd ../
- cd lv_demos
- idf.py fullclean
- idf.py build
- cd ../
- cd mp3_demo
- idf.py fullclean
- idf.py build
- cd ../../
push_to_github:
stage: deploy
only:
- master
- /^release\/v/
# when: on_success
image: $CI_DOCKER_REGISTRY/esp32-ci-env
variables:
GIT_STRATEGY: clone
before_script:
- echo "skip default before_script"
script:
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- echo -n $GH_PUSH_KEY > ~/.ssh/id_rsa_base64
- base64 --decode --ignore-garbage ~/.ssh/id_rsa_base64 > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- git remote remove github &>/dev/null || true
- git remote add github [email protected]:espressif/esp-box.git
- ${ESP_BOX_PATH}/tools/ci/push_to_github.sh
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。