CI: Add dependency "fast_template_app" to build jobs

This commit is contained in:
Fu Hanxi 2020-11-10 17:48:35 +08:00
parent 7c5eb76113
commit 9e4f5dd01f

View File

@ -43,7 +43,9 @@
# build-related-pre-check-jobs ------------------------------------------------ # build-related-pre-check-jobs ------------------------------------------------
# Build at least one project for each target at earliest stage to reduce build cost for obvious failing commits # Build at least one project for each target at earliest stage to reduce build cost for obvious failing commits
fast_template_app: fast_template_app:
extends: .build_template_app_template extends:
- .build_template_app_template
- .rules:build_tests:target_test-weekend_test
stage: pre_check stage: pre_check
variables: variables:
BUILD_COMMAND_ARGS: "-p" BUILD_COMMAND_ARGS: "-p"
@ -89,6 +91,10 @@ build_ssc_esp32s2:
extends: extends:
- .build_template - .build_template
- .rules:build_tests:unit_test - .rules:build_tests:unit_test
needs:
- job: fast_template_app
artifacts: false
- scan_tests
artifacts: artifacts:
paths: paths:
- tools/unit-test-app/output/${IDF_TARGET} - tools/unit-test-app/output/${IDF_TARGET}
@ -132,6 +138,10 @@ build_esp_idf_tests_cmake_esp32s3:
extends: extends:
- .build_template - .build_template
- .rules:build_tests:example_test-weekend_test - .rules:build_tests:example_test-weekend_test
needs:
- job: fast_template_app
artifacts: false
- scan_tests
variables: variables:
TEST_PREFIX: examples TEST_PREFIX: examples
TEST_RELATIVE_DIR: examples TEST_RELATIVE_DIR: examples
@ -168,8 +178,6 @@ build_examples_make:
# same as above, but for CMake # same as above, but for CMake
.build_examples_cmake: .build_examples_cmake:
extends: .build_examples_template extends: .build_examples_template
needs:
- scan_tests
artifacts: artifacts:
paths: paths:
- build_${TEST_PREFIX}/list.json - build_${TEST_PREFIX}/list.json
@ -291,6 +299,9 @@ build_docs_pdf:
extends: extends:
- .build_template - .build_template
- .rules:build_tests:weekend_test - .rules:build_tests:weekend_test
needs:
- job: fast_template_app
artifacts: false
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
@ -390,6 +401,9 @@ build_installer:
# This job builds template app with permutations of targets and optimization levels # This job builds template app with permutations of targets and optimization levels
build_template_app: build_template_app:
needs:
- job: fast_template_app
artifacts: false
extends: .build_template_app_template extends: .build_template_app_template
# Sonarqube related jobs put here for this reason: # Sonarqube related jobs put here for this reason: