CI: Do not need submodules in target test

This commit is contained in:
Chen Yudong
2022-07-20 15:11:55 +08:00
committed by Chen Yu Dong
parent fde4afc67a
commit 486dbf441b

View File

@@ -1,8 +1,21 @@
.pytest_template: .target_test_template:
image: $TARGET_TEST_ENV_IMAGE image: $TARGET_TEST_ENV_IMAGE
stage: target_test stage: target_test
timeout: 1 hour timeout: 1 hour
extends: .before_script_pytest variables:
GIT_DEPTH: 1
SUBMODULES_TO_FETCH: "none"
cache:
# Usually do not need submodule-cache in target_test
- key: pip-cache
paths:
- .cache/pip
policy: pull
.pytest_template:
extends:
- .target_test_template
- .before_script_pytest
artifacts: artifacts:
when: always when: always
paths: paths:
@@ -11,9 +24,6 @@
reports: reports:
junit: XUNIT_RESULT.xml junit: XUNIT_RESULT.xml
expire_in: 1 week expire_in: 1 week
variables:
GIT_DEPTH: 1
SUBMODULES_TO_FETCH: "none"
script: script:
- retry_failed git clone $KNOWN_FAILURE_CASES_REPO known_failure_cases - retry_failed git clone $KNOWN_FAILURE_CASES_REPO known_failure_cases
# get runner env config file # get runner env config file
@@ -364,9 +374,8 @@ test_app_test_pytest_esp32s2_usb_host:
CONFIG_FILE="${CONFIG_FILE_PATH}/${JOB_FULL_NAME}.yml" CONFIG_FILE="${CONFIG_FILE_PATH}/${JOB_FULL_NAME}.yml"
.target_test_job_template: .target_test_job_template:
stage: target_test extends:
timeout: 1 hour - .target_test_template
image: $TARGET_TEST_ENV_IMAGE
artifacts: artifacts:
when: always when: always
paths: paths:
@@ -378,11 +387,9 @@ test_app_test_pytest_esp32s2_usb_host:
junit: $LOG_PATH/*/XUNIT_RESULT.xml junit: $LOG_PATH/*/XUNIT_RESULT.xml
expire_in: 1 week expire_in: 1 week
variables: variables:
GIT_DEPTH: 1
TEST_FW_PATH: "$CI_PROJECT_DIR/tools/tiny-test-fw" TEST_FW_PATH: "$CI_PROJECT_DIR/tools/tiny-test-fw"
LOG_PATH: "$CI_PROJECT_DIR/TEST_LOGS" LOG_PATH: "$CI_PROJECT_DIR/TEST_LOGS"
ENV_FILE: "$CI_PROJECT_DIR/ci-test-runner-configs/$CI_RUNNER_DESCRIPTION/EnvConfig.yml" ENV_FILE: "$CI_PROJECT_DIR/ci-test-runner-configs/$CI_RUNNER_DESCRIPTION/EnvConfig.yml"
SUBMODULES_TO_FETCH: "none"
script: script:
- *define_config_file_name - *define_config_file_name
# first test if config file exists, if not exist, exit 0 # first test if config file exists, if not exist, exit 0
@@ -405,13 +412,6 @@ test_app_test_pytest_esp32s2_usb_host:
TEST_CASE_PATH: "$CI_PROJECT_DIR/examples" TEST_CASE_PATH: "$CI_PROJECT_DIR/examples"
CONFIG_FILE_PATH: "${CI_PROJECT_DIR}/examples/test_configs" CONFIG_FILE_PATH: "${CI_PROJECT_DIR}/examples/test_configs"
.example_debug_template:
extends:
- .example_test_template
- .rules:test:example_test-esp32
variables:
SUBMODULES_TO_FETCH: "all"
test_weekend_mqtt: test_weekend_mqtt:
extends: extends:
- .test_app_esp32_template - .test_app_esp32_template
@@ -543,12 +543,10 @@ example_test_010:
- Example_ExtFlash - Example_ExtFlash
example_test_011: example_test_011:
extends: .example_debug_template extends: .example_test_esp32_template
tags: tags:
- ESP32 - ESP32
- Example_T2_RS485 - Example_T2_RS485
variables:
SETUP_TOOLS: "1"
example_test_013: example_test_013:
extends: .example_test_esp32_template extends: .example_test_esp32_template