diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a7dd6d054..a859bc586 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,8 +1,9 @@ stages: - build - assign_test + - host_test - unit_test - - test + - integration_test - deploy variables: @@ -224,54 +225,44 @@ build_docs: - make html - ./check_doc_warnings.sh -test_nvs_on_host: - stage: test - image: $CI_DOCKER_REGISTRY/esp32-ci-env +.host_test_template: &host_test_template + stage: host_test + image: $CI_DOCKER_REGISTRY/esp32-ci-env$BOT_DOCKER_IMAGE_TAG tags: - - nvs_host_test + - host_test dependencies: [] + +test_nvs_on_host: + <<: *host_test_template script: - cd components/nvs_flash/test_nvs_host - make test test_partition_table_on_host: - stage: test - image: $CI_DOCKER_REGISTRY/esp32-ci-env + <<: *host_test_template tags: - build - dependencies: [] script: - cd components/partition_table/test_gen_esp32part_host - ./gen_esp32part_tests.py test_wl_on_host: - stage: test - image: $CI_DOCKER_REGISTRY/esp32-ci-env - tags: - - wl_host_test + <<: *host_test_template artifacts: paths: - components/wear_levelling/test_wl_host/coverage_report.zip - dependencies: [] script: - cd components/wear_levelling/test_wl_host - make test test_multi_heap_on_host: - stage: test - image: $CI_DOCKER_REGISTRY/esp32-ci-env - tags: - - wl_host_test + <<: *host_test_template script: - cd components/heap/test_multi_heap_host - ./test_all_configs.sh test_build_system: - stage: test - image: $CI_DOCKER_REGISTRY/esp32-ci-env - tags: - - build_test - dependencies: [] + <<: *host_test_template script: - ${IDF_PATH}/tools/ci/test_configure_ci_environment.sh - rm -rf test_build_system @@ -310,8 +301,8 @@ push_master_to_github: deploy_docs: - stage: deploy - image: $CI_DOCKER_REGISTRY/esp32-ci-env + stage: host_test + image: $CI_DOCKER_REGISTRY/esp32-ci-env$BOT_DOCKER_IMAGE_TAG tags: - deploy only: @@ -337,8 +328,8 @@ deploy_docs: - ssh $DOCS_SERVER -x "cd $DOCS_PATH && tar xzvf $GIT_VER.tar.gz && rm -f latest && ln -s $GIT_VER latest" check_doc_links: - stage: test - image: $CI_DOCKER_REGISTRY/esp32-ci-env + stage: host_test + image: $CI_DOCKER_REGISTRY/esp32-ci-env$BOT_DOCKER_IMAGE_TAG tags: - check_doc_links only: @@ -426,7 +417,7 @@ assign_test: - 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 + stage: integration_test when: on_success only: - master @@ -461,7 +452,7 @@ assign_test: - python Runner.py $TEST_CASE_PATH -c $CONFIG_FILE .test_template: &test_template - stage: test + stage: integration_test when: on_success only: - master