From bb442bd015cbc893d439544a89e3d3335fa57d7e Mon Sep 17 00:00:00 2001 From: He Yin Ling Date: Fri, 20 Dec 2019 10:52:33 +0800 Subject: [PATCH] test: add build ssc job for esp32s2beta --- tools/ci/config/assign-test.yml | 2 +- tools/ci/config/build.yml | 17 ++++++++++++++--- tools/ci/config/target-test.yml | 2 +- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/tools/ci/config/assign-test.yml b/tools/ci/config/assign-test.yml index e997062e3..5a7020b94 100644 --- a/tools/ci/config/assign-test.yml +++ b/tools/ci/config/assign-test.yml @@ -7,7 +7,7 @@ assign_test: # gitlab ci do not support match job with RegEx or wildcard now in dependencies. # we have a lot build example jobs. now we don't use dependencies, just download all artificats of build stage. dependencies: - - build_ssc + - build_ssc_esp32 - build_esp_idf_tests_cmake variables: SUBMODULES_TO_FETCH: "components/esptool_py/esptool" diff --git a/tools/ci/config/build.yml b/tools/ci/config/build.yml index a8e38a659..cc98e4e3d 100644 --- a/tools/ci/config/build.yml +++ b/tools/ci/config/build.yml @@ -22,7 +22,7 @@ - $BOT_LABEL_UNIT_TEST - $BOT_LABEL_REGULAR_TEST -build_ssc: +.build_ssc_template: extends: .build_template parallel: 3 artifacts: @@ -30,7 +30,7 @@ build_ssc: - SSC/ssc_bin expire_in: 1 week variables: - SSC_CONFIG_FOLDER: "$CI_PROJECT_DIR/SSC/configs/ESP32_IDF" + TARGET_NAME: "ESP32" only: variables: - $BOT_TRIGGER_WITH_LABEL == null @@ -41,7 +41,18 @@ build_ssc: - git clone $SSC_REPOSITORY - python $CHECKOUT_REF_SCRIPT SSC SSC - cd SSC - - MAKEFLAGS= ./ci_build_ssc.sh + - MAKEFLAGS= ./ci_build_ssc.sh $TARGET_NAME + +build_ssc_esp32: + extends: .build_ssc_template + variables: + TARGET_NAME: "ESP32" + +build_ssc_esp32s2beta: + extends: .build_ssc_template + parallel: 2 + variables: + TARGET_NAME: "ESP32S2" build_esp_idf_tests_make: extends: .build_esp_idf_unit_test_template diff --git a/tools/ci/config/target-test.yml b/tools/ci/config/target-test.yml index 586079b4f..335c58bb7 100644 --- a/tools/ci/config/target-test.yml +++ b/tools/ci/config/target-test.yml @@ -123,7 +123,7 @@ - $BOT_LABEL_INTEGRATION_TEST dependencies: - assign_test - - build_ssc + - build_ssc_esp32 artifacts: when: always reports: