2022-01-06 10:21:21 -05:00
|
|
|
.assign_test_template:
|
2022-01-31 01:20:59 -05:00
|
|
|
image: $TARGET_TEST_ENV_IMAGE
|
2019-06-28 12:39:21 -04:00
|
|
|
stage: assign_test
|
2022-01-06 10:21:21 -05:00
|
|
|
tags:
|
|
|
|
- assign_test
|
2022-04-28 06:36:58 -04:00
|
|
|
variables:
|
|
|
|
SUBMODULES_TO_FETCH: "none"
|
2022-01-06 10:21:21 -05:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2022-07-12 22:34:02 -04:00
|
|
|
- ${TEST_DIR}/test_configs/
|
|
|
|
- artifact_index.json
|
2022-01-06 10:21:21 -05:00
|
|
|
when: always
|
|
|
|
expire_in: 1 week
|
|
|
|
script:
|
2022-07-12 22:34:02 -04:00
|
|
|
- run_cmd python tools/ci/python_packages/ttfw_idf/IDFAssignTest.py $TEST_TYPE $TEST_DIR -c $CI_TARGET_TEST_CONFIG_FILE -o $TEST_DIR/test_configs
|
2022-01-06 10:21:21 -05:00
|
|
|
|
|
|
|
assign_integration_test:
|
|
|
|
extends:
|
|
|
|
- .assign_test_template
|
|
|
|
- .rules:test:integration_test
|
2023-09-26 07:24:26 -04:00
|
|
|
- .before_script:minimal
|
2022-08-03 05:36:28 -04:00
|
|
|
image: ${CI_INTEGRATION_TEST_ENV_IMAGE}
|
2022-01-06 10:21:21 -05:00
|
|
|
needs:
|
2019-12-19 21:52:33 -05:00
|
|
|
- build_ssc_esp32
|
2022-01-06 10:42:48 -05:00
|
|
|
- build_ssc_esp32c3
|
2022-12-01 22:12:00 -05:00
|
|
|
- build_ssc_esp32c2
|
2022-01-06 10:21:21 -05:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- $TEST_DIR/test_configs
|
2022-02-09 05:00:54 -05:00
|
|
|
expire_in: 1 week
|
2019-06-28 12:39:21 -04:00
|
|
|
variables:
|
2022-01-06 10:29:08 -05:00
|
|
|
TEST_DIR: ${CI_PROJECT_DIR}/tools/ci/integration_test
|
2022-01-06 10:21:21 -05:00
|
|
|
BUILD_DIR: ${CI_PROJECT_DIR}/SSC/ssc_bin
|
2020-10-23 21:21:17 -04:00
|
|
|
INTEGRATION_TEST_CASE_PATH: "${CI_PROJECT_DIR}/auto_test_script/TestCaseFiles"
|
|
|
|
ASSIGN_TEST_CASE_SCRIPT: "${CI_PROJECT_DIR}/auto_test_script/bin/CIAssignTestCases.py"
|
|
|
|
PYTHONPATH: ${CI_PROJECT_DIR}/auto_test_script/packages
|
2022-09-13 14:43:40 -04:00
|
|
|
GIT_LFS_SKIP_SMUDGE: 1
|
2019-06-28 12:39:21 -04:00
|
|
|
script:
|
2022-07-28 03:32:13 -04:00
|
|
|
- add_gitlab_ssh_keys
|
2019-06-28 12:39:21 -04:00
|
|
|
# clone test script to assign tests
|
2022-09-13 14:43:40 -04:00
|
|
|
- retry_failed git clone ${CI_AUTO_TEST_SCRIPT_REPO_URL} auto_test_script
|
|
|
|
- python $CHECKOUT_REF_SCRIPT auto_test_script auto_test_script
|
|
|
|
- cd auto_test_script
|
|
|
|
- ./tools/ci/setup_idfci.sh
|
2020-08-25 04:42:36 -04:00
|
|
|
# assign integration test cases
|
2022-01-06 10:21:21 -05:00
|
|
|
- python ${ASSIGN_TEST_CASE_SCRIPT} -t ${INTEGRATION_TEST_CASE_PATH} -c $CI_TARGET_TEST_CONFIG_FILE -b ${BUILD_DIR} -o $TEST_DIR/test_configs
|