1 Star 0 Fork 16

feemelu/esp-mdf

forked from 乐鑫开源/esp-mdf 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.gitlab-ci.yml 6.74 KB
一键复制 编辑 原始数据 按行查看 历史
stages:
- build
- deploy
variables:
BATCH_BUILD: "1"
V: "0"
MAKEFLAGS: "-j5 --no-keep-going"
MDF_PATH: "$CI_PROJECT_DIR"
IDF_CI_BUILD: "1"
before_script:
- export IDF_PATH=/opt/esp/idf
- git clone -b v1.2.3 https://github.com/adafruit/Adafruit-GFX-Library.git examples/wireless_debug/components/lcd/Adafruit-GFX-Library
.setup_idf_4_3: &setup_idf_4_3
- cd $IDF_PATH
- git fetch origin tag v4.3.1
- git checkout v4.3.1
- git submodule update --init --recursive
- ./install.sh
- . ./export.sh
- cd -
build_template_make: &build_template
stage: build
image: espressif/idf:release-v4.3
tags:
- build
variables:
ARTIFACTS_NAME: "default"
DEFAULT_CONFIG: ""
BATCH_BUILD: "1"
V: "0"
script:
- *setup_idf_4_3
- ./tools/ci/build_examples_make.sh examples/get-started
- ./tools/ci/build_examples_make.sh examples/function_demo/mcommon
- ./tools/ci/build_examples_make.sh examples/function_demo/mconfig
- ./tools/ci/build_examples_make.sh examples/function_demo/mdebug
- ./tools/ci/build_examples_make.sh examples/function_demo/mupgrade
- ./tools/ci/build_examples_make.sh examples/function_demo/mwifi/console_test
- ./tools/ci/build_examples_make.sh examples/function_demo/mwifi/mqtt_example
- ./tools/ci/build_examples_make.sh examples/function_demo/mwifi/no_router
- ./tools/ci/build_examples_make.sh examples/function_demo/mwifi/root_on_ethernet
- ./tools/ci/build_examples_make.sh examples/function_demo/mwifi/router
- ./tools/ci/build_examples_make.sh examples/development_kit/light
- ./tools/ci/build_examples_make.sh examples/development_kit/button
# - ./tools/ci/build_examples_make.sh examples/development_kit/sense sense can not build by GNU make in idf release/v4.2(af8bc4c4)
- ./tools/ci/build_examples_make.sh examples/development_kit/buddy
- ./tools/ci/build_examples_make.sh examples/aliyun_linkkit/get-started
- ./tools/ci/build_examples_make.sh examples/aliyun_linkkit/mesh-with-aliyun
build_template_cmake: &build_template
stage: build
image: espressif/idf:release-v4.3
tags:
- build
variables:
ARTIFACTS_NAME: "default"
DEFAULT_CONFIG: ""
BATCH_BUILD: "1"
V: "0"
script:
- *setup_idf_4_3
- ./tools/ci/build_examples_cmake.sh examples/get-started esp32
- ./tools/ci/build_examples_cmake.sh examples/get-started esp32s2
- ./tools/ci/build_examples_cmake.sh examples/function_demo/mcommon esp32
- ./tools/ci/build_examples_cmake.sh examples/function_demo/mcommon esp32s2
- ./tools/ci/build_examples_cmake.sh examples/function_demo/mconfig esp32
- ./tools/ci/build_examples_cmake.sh examples/function_demo/mdebug esp32
- ./tools/ci/build_examples_cmake.sh examples/function_demo/mdebug esp32s2
- ./tools/ci/build_examples_cmake.sh examples/function_demo/mupgrade esp32
- ./tools/ci/build_examples_cmake.sh examples/function_demo/mupgrade esp32s2
- ./tools/ci/build_examples_cmake.sh examples/function_demo/mwifi/console_test esp32
- ./tools/ci/build_examples_cmake.sh examples/function_demo/mwifi/console_test esp32s2
- ./tools/ci/build_examples_cmake.sh examples/function_demo/mwifi/mqtt_example esp32
- ./tools/ci/build_examples_cmake.sh examples/function_demo/mwifi/mqtt_example esp32s2
- ./tools/ci/build_examples_cmake.sh examples/function_demo/mwifi/no_router esp32
- ./tools/ci/build_examples_cmake.sh examples/function_demo/mwifi/no_router esp32s2
- ./tools/ci/build_examples_cmake.sh examples/function_demo/mwifi/root_on_ethernet esp32
- ./tools/ci/build_examples_cmake.sh examples/function_demo/mwifi/router esp32
- ./tools/ci/build_examples_cmake.sh examples/function_demo/mwifi/router esp32s2
- ./tools/ci/build_examples_cmake.sh examples/development_kit/light esp32
- ./tools/ci/build_examples_cmake.sh examples/development_kit/button esp32
- ./tools/ci/build_examples_cmake.sh examples/development_kit/sense esp32
- ./tools/ci/build_examples_cmake.sh examples/development_kit/buddy esp32
- ./tools/ci/build_examples_cmake.sh examples/aliyun_linkkit/get-started esp32
- ./tools/ci/build_examples_cmake.sh examples/aliyun_linkkit/get-started esp32s2
- ./tools/ci/build_examples_cmake.sh examples/aliyun_linkkit/mesh-with-aliyun esp32
- ./tools/ci/build_examples_cmake.sh examples/aliyun_linkkit/mesh-with-aliyun esp32s2
push_master_to_github:
stage: deploy
only:
- master
- /^release\/v/
# when: on_success
image: $CI_DOCKER_REGISTRY/esp32-ci-env
variables:
GIT_STRATEGY: clone
GITHUB_PUSH_REFS: refs/remotes/origin/release refs/remotes/origin/master
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 add github git@github.com:espressif/esp-mdf.git
# What the next line of script does: goes through the list of refs for all branches we push to github,
# generates a snippet of shell which is evaluated. The snippet checks CI_BUILD_REF against the SHA
# (aka objectname) at tip of each branch, and if any SHAs match then it checks out the local branch
# and then pushes that ref to a corresponding github branch
#
# NB: In gitlab 9.x, CI_BUILD_REF was deprecated. New name is CI_COMMIT_REF. If below command suddenly
# generates bash syntax errors, this is probably why.
- eval $(git for-each-ref --shell bash --format 'if [ $CI_BUILD_REF == %(objectname) ]; then git checkout -B %(refname:strip=3); git push --follow-tags github %(refname:strip=3); fi;' $GITHUB_PUSH_REFS)
# If you want to add new build example jobs, please add it into dependencies of `.example_test_template`
build_docs:
stage: build
image: $CI_DOCKER_REGISTRY/esp-idf-doc-env:v10
tags:
- build_docs
artifacts:
when: always
paths:
# English version of documentation
- docs/en/doxygen-warning-log.txt
- docs/en/sphinx-warning-log.txt
- docs/en/sphinx-warning-log-sanitized.txt
- docs/en/_build/html
# Chinese version of documentation
- docs/zh_CN/doxygen-warning-log.txt
- docs/zh_CN/sphinx-warning-log.txt
- docs/zh_CN/sphinx-warning-log-sanitized.txt
- docs/zh_CN/_build/html
expire_in: 1 mos
script:
- git clone -b release/v4.3 https://github.com/espressif/esp-idf.git $IDF_PATH
- export PYTHON_VER=2.7.15
- source $IDF_PATH/tools/ci/setup_python.sh
- cd docs
- ./check_lang_folder_sync.sh
- cd en
- make gh-linkcheck
- make html
- ../check_doc_warnings.sh
- cd ../zh_CN
- make gh-linkcheck
- make html
- ../check_doc_warnings.sh
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/feemelu/esp-mdf.git
git@gitee.com:feemelu/esp-mdf.git
feemelu
esp-mdf
esp-mdf
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385