From 493a92665d816b094792a02cc25d377278be97dc Mon Sep 17 00:00:00 2001 From: He Yin Ling Date: Fri, 1 Dec 2017 12:00:40 +0800 Subject: [PATCH 1/2] CI: support build SSC in multiple jobs --- .gitlab-ci.yml | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c3e188bdc..8167ac69e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -111,17 +111,29 @@ build_template_app: BATCH_BUILD: "1" V: "0" -build_ssc: +.build_ssc_template: &build_ssc_template <<: *build_template artifacts: paths: - SSC/ssc_bin - expire_in: 6 mos + expire_in: 1 mos + variables: + SSC_CONFIG_FOLDER: "$CI_PROJECT_DIR/SSC/configs/ESP32_IDF" script: - git clone $SSC_REPOSITORY - cd SSC - python $CHECKOUT_REF_SCRIPT SSC - - MAKEFLAGS= ./gen_misc_ng.sh + - MAKEFLAGS= ./ci_build_ssc.sh "${CI_JOB_NAME}" "${IDF_PATH}/.gitlab-ci.yml" + +# don't forget to add to dependency to test_template when adding new build_ssc jobs +build_ssc_00: + <<: *build_ssc_template + +build_ssc_01: + <<: *build_ssc_template + +build_ssc_02: + <<: *build_ssc_template build_esp_idf_tests: <<: *build_template @@ -472,7 +484,7 @@ assign_test: EXAMPLE_CONFIG_OUTPUT_PATH: "$CI_PROJECT_DIR/examples/test_configs" artifacts: paths: - - test_bins + - $OUTPUT_BIN_PATH - components/idf_test/*/CIConfigs - components/idf_test/*/TC.sqlite - $EXAMPLE_CONFIG_OUTPUT_PATH @@ -492,7 +504,7 @@ assign_test: - cd auto_test_script - python $CHECKOUT_REF_SCRIPT auto_test_script # assgin integration test cases - - python CIAssignTestCases.py -t $IDF_PATH/components/idf_test/integration_test -c $IDF_PATH/.gitlab-ci.yml -b $IDF_PATH/test_bins + - python CIAssignTestCases.py -t $IDF_PATH/components/idf_test/integration_test -c $IDF_PATH/.gitlab-ci.yml -b $IDF_PATH/SSC/ssc_bin .example_test_template: &example_test_template stage: test @@ -544,6 +556,9 @@ assign_test: allow_failure: true dependencies: - assign_test + - build_ssc_00 + - build_ssc_01 + - build_ssc_02 artifacts: when: always paths: From 48e3e3efca00101d92b3e6c1002d9a401f75fe37 Mon Sep 17 00:00:00 2001 From: He Yin Ling Date: Fri, 1 Dec 2017 15:03:04 +0800 Subject: [PATCH 2/2] test: change SSC binary path --- .../idf_test/integration_test/CIConfigs/nvs_compatible_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/idf_test/integration_test/CIConfigs/nvs_compatible_test.yml b/components/idf_test/integration_test/CIConfigs/nvs_compatible_test.yml index ac552ad0c..6318d4e42 100644 --- a/components/idf_test/integration_test/CIConfigs/nvs_compatible_test.yml +++ b/components/idf_test/integration_test/CIConfigs/nvs_compatible_test.yml @@ -1,5 +1,5 @@ BinPath: - path: test_bins/ESP32_IDF/SSC_BLE + path: SSC/ssc_bin/ESP32_IDF/SSC_BLE test app: SSC_BLE DUT: [SSC1]