mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
update ci config file with 2 changes:
1. add build SSC and do sanity test config 2. add tags to each job as sanity test need to be executed on special runner
This commit is contained in:
parent
add32cbc9a
commit
04aea7f987
@ -9,6 +9,8 @@ before_script:
|
|||||||
build_template_app:
|
build_template_app:
|
||||||
stage: build
|
stage: build
|
||||||
image: espressif/esp32-ci-env
|
image: espressif/esp32-ci-env
|
||||||
|
tags:
|
||||||
|
- build
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
SDK_PATH: "$CI_PROJECT_DIR"
|
SDK_PATH: "$CI_PROJECT_DIR"
|
||||||
@ -25,9 +27,54 @@ build_template_app:
|
|||||||
- make defconfig
|
- make defconfig
|
||||||
- make all
|
- make all
|
||||||
|
|
||||||
|
|
||||||
|
.build_gitlab: &build_template
|
||||||
|
stage: build
|
||||||
|
tags:
|
||||||
|
- build
|
||||||
|
image: espressif/esp32-ci-env
|
||||||
|
|
||||||
|
variables:
|
||||||
|
SDK_PATH: "$CI_PROJECT_DIR"
|
||||||
|
IDF_PATH: "$CI_PROJECT_DIR"
|
||||||
|
GIT_STRATEGY: clone
|
||||||
|
|
||||||
|
# add gitlab key to build docker
|
||||||
|
before_script:
|
||||||
|
- 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
|
||||||
|
|
||||||
|
build_ssc:
|
||||||
|
<<: *build_template
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- ./SSC/build/*.bin
|
||||||
|
- ./SSC/build/*.elf
|
||||||
|
- ./SSC/build/*.map
|
||||||
|
- ./SSC/build/bootloader/*.bin
|
||||||
|
expire_in: 6 mos
|
||||||
|
|
||||||
|
script:
|
||||||
|
# use gitlab wifi lib instead of github wifi lib
|
||||||
|
- git clone ssh://git@gitlab.espressif.cn:27227/idf/esp32-wifi-lib.git
|
||||||
|
- cp esp32-wifi-lib/* components/esp32/lib/
|
||||||
|
- git clone ssh://git@gitlab.espressif.cn:27227/yinling/SSC.git
|
||||||
|
- cd SSC
|
||||||
|
- make defconfig
|
||||||
|
- chmod +x gen_misc_ng.sh
|
||||||
|
- ./gen_misc_ng.sh
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
test_nvs_on_host:
|
test_nvs_on_host:
|
||||||
stage: test
|
stage: test
|
||||||
image: espressif/esp32-ci-env
|
image: espressif/esp32-ci-env
|
||||||
|
tags:
|
||||||
|
- nvs_host_test
|
||||||
script:
|
script:
|
||||||
- cd components/nvs_flash/test
|
- cd components/nvs_flash/test
|
||||||
- make test
|
- make test
|
||||||
@ -35,15 +82,58 @@ test_nvs_on_host:
|
|||||||
test_build_system:
|
test_build_system:
|
||||||
stage: test
|
stage: test
|
||||||
image: espressif/esp32-ci-env
|
image: espressif/esp32-ci-env
|
||||||
|
tags:
|
||||||
|
- build_test
|
||||||
variables:
|
variables:
|
||||||
IDF_PATH: "$CI_PROJECT_DIR"
|
IDF_PATH: "$CI_PROJECT_DIR"
|
||||||
script:
|
script:
|
||||||
- ./make/test_build_system.sh
|
- ./make/test_build_system.sh
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# template for test jobs
|
||||||
|
.test_template: &test_template
|
||||||
|
stage: test
|
||||||
|
when: on_success
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
|
||||||
|
variables:
|
||||||
|
# need user to set SDK_NAME and CONFIG_FILE (may need to set BIN_PATH and APP_NAME later) in before_script
|
||||||
|
SCRIPT_PATH: /home/gitlab-runner/auto_test_script
|
||||||
|
BIN_PATH: ${CI_PROJECT_DIR}/SSC/build/
|
||||||
|
APP_NAME: ssc
|
||||||
|
LOG_PATH: $CI_PROJECT_DIR/$CI_BUILD_REF
|
||||||
|
|
||||||
|
artifacts:
|
||||||
|
when: always
|
||||||
|
paths:
|
||||||
|
- $LOG_PATH
|
||||||
|
expire_in: 6 mos
|
||||||
|
|
||||||
|
script:
|
||||||
|
- cd $SCRIPT_PATH
|
||||||
|
- python CIRunner.py -l $LOG_PATH -c $SDK_NAME/$CONFIG_FILE bin_path $APP_NAME $BIN_PATH
|
||||||
|
|
||||||
|
sanity_test:
|
||||||
|
<<: *test_template
|
||||||
|
tags:
|
||||||
|
- ESP32
|
||||||
|
- SSC_T1_1
|
||||||
|
- SSC_T2_1
|
||||||
|
- SSC_T1_WAN
|
||||||
|
before_script:
|
||||||
|
- SDK_NAME=ESP32_IDF
|
||||||
|
- CONFIG_FILE=sanity_test.yml
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
push_master_to_github:
|
push_master_to_github:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
tags:
|
||||||
|
- deploy
|
||||||
when: on_success
|
when: on_success
|
||||||
image: espressif/esp32-ci-env
|
image: espressif/esp32-ci-env
|
||||||
variables:
|
variables:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user