mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
47 lines
1.6 KiB
YAML
47 lines
1.6 KiB
YAML
.assign_test_template:
|
|
image: $TARGET_TEST_ENV_IMAGE
|
|
stage: assign_test
|
|
tags:
|
|
- assign_test
|
|
variables:
|
|
SUBMODULES_TO_FETCH: "none"
|
|
artifacts:
|
|
paths:
|
|
- ${TEST_DIR}/test_configs/
|
|
- artifact_index.json
|
|
when: always
|
|
expire_in: 1 week
|
|
script:
|
|
- 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
|
|
|
|
assign_integration_test:
|
|
extends:
|
|
- .assign_test_template
|
|
- .rules:test:integration_test
|
|
- .before_script:minimal
|
|
image: ${CI_INTEGRATION_TEST_ENV_IMAGE}
|
|
needs:
|
|
- build_ssc_esp32
|
|
- build_ssc_esp32c3
|
|
- build_ssc_esp32c2
|
|
artifacts:
|
|
paths:
|
|
- $TEST_DIR/test_configs
|
|
expire_in: 1 week
|
|
variables:
|
|
TEST_DIR: ${CI_PROJECT_DIR}/tools/ci/integration_test
|
|
BUILD_DIR: ${CI_PROJECT_DIR}/SSC/ssc_bin
|
|
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
|
|
GIT_LFS_SKIP_SMUDGE: 1
|
|
script:
|
|
- add_gitlab_ssh_keys
|
|
# clone test script to assign tests
|
|
- 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
|
|
# assign integration test cases
|
|
- python ${ASSIGN_TEST_CASE_SCRIPT} -t ${INTEGRATION_TEST_CASE_PATH} -c $CI_TARGET_TEST_CONFIG_FILE -b ${BUILD_DIR} -o $TEST_DIR/test_configs
|