CI: add stage host_test:

1. Add `host_test` stage for test jobs running on host.
2. Rename stage `test` to `integration_test`.
This commit is contained in:
He Yin Ling
2018-06-25 10:33:59 +08:00
parent 5141570f24
commit 8f81157432

View File

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