forked from espressif/esp-idf
ci: add pytest example jtag job
This commit is contained in:
@@ -129,9 +129,52 @@
|
|||||||
--parallel-count ${CI_NODE_TOTAL:-1}
|
--parallel-count ${CI_NODE_TOTAL:-1}
|
||||||
--parallel-index ${CI_NODE_INDEX:-1}
|
--parallel-index ${CI_NODE_INDEX:-1}
|
||||||
|
|
||||||
|
.build_pytest_no_jtag_template:
|
||||||
|
extends: .build_pytest_template
|
||||||
|
script:
|
||||||
|
# CI specific options start from "--collect-size-info xxx". could ignore when running locally
|
||||||
|
- run_cmd python tools/ci/ci_build_apps.py $TEST_DIR -v
|
||||||
|
-t $IDF_TARGET
|
||||||
|
-m \"not host_test and not jtag\"
|
||||||
|
--pytest-apps
|
||||||
|
--collect-size-info size_info.txt
|
||||||
|
--parallel-count ${CI_NODE_TOTAL:-1}
|
||||||
|
--parallel-index ${CI_NODE_INDEX:-1}
|
||||||
|
|
||||||
|
.build_pytest_jtag_template:
|
||||||
|
extends:
|
||||||
|
- .build_cmake_template
|
||||||
|
- .before_script_build_jobs
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- "**/build*/size.json"
|
||||||
|
- "**/build*/build_log.txt"
|
||||||
|
- "**/build*/*.bin"
|
||||||
|
# upload to s3 server to save the artifacts size
|
||||||
|
# - "**/build*/*.map"
|
||||||
|
- "**/build*/*.elf" # need elf for gdb
|
||||||
|
- "**/build*/flasher_args.json"
|
||||||
|
- "**/build*/flash_project_args"
|
||||||
|
- "**/build*/config/sdkconfig.json"
|
||||||
|
- "**/build*/bootloader/*.bin"
|
||||||
|
- "**/build*/partition_table/*.bin"
|
||||||
|
- list_job_*.json
|
||||||
|
- size_info.txt
|
||||||
|
when: always
|
||||||
|
expire_in: 4 days
|
||||||
|
script:
|
||||||
|
# CI specific options start from "--collect-size-info xxx". could ignore when running locally
|
||||||
|
- run_cmd python tools/ci/ci_build_apps.py $TEST_DIR -v
|
||||||
|
-t $IDF_TARGET
|
||||||
|
-m \"not host_test and jtag\"
|
||||||
|
--pytest-apps
|
||||||
|
--collect-size-info size_info.txt
|
||||||
|
--parallel-count ${CI_NODE_TOTAL:-1}
|
||||||
|
--parallel-index ${CI_NODE_INDEX:-1}
|
||||||
|
|
||||||
build_pytest_examples_esp32:
|
build_pytest_examples_esp32:
|
||||||
extends:
|
extends:
|
||||||
- .build_pytest_template
|
- .build_pytest_no_jtag_template
|
||||||
- .rules:build:example_test-esp32
|
- .rules:build:example_test-esp32
|
||||||
parallel: 4
|
parallel: 4
|
||||||
variables:
|
variables:
|
||||||
@@ -140,7 +183,7 @@ build_pytest_examples_esp32:
|
|||||||
|
|
||||||
build_pytest_examples_esp32s2:
|
build_pytest_examples_esp32s2:
|
||||||
extends:
|
extends:
|
||||||
- .build_pytest_template
|
- .build_pytest_no_jtag_template
|
||||||
- .rules:build:example_test-esp32s2
|
- .rules:build:example_test-esp32s2
|
||||||
parallel: 3
|
parallel: 3
|
||||||
variables:
|
variables:
|
||||||
@@ -149,7 +192,7 @@ build_pytest_examples_esp32s2:
|
|||||||
|
|
||||||
build_pytest_examples_esp32s3:
|
build_pytest_examples_esp32s3:
|
||||||
extends:
|
extends:
|
||||||
- .build_pytest_template
|
- .build_pytest_no_jtag_template
|
||||||
- .rules:build:example_test-esp32s3
|
- .rules:build:example_test-esp32s3
|
||||||
parallel: 4
|
parallel: 4
|
||||||
variables:
|
variables:
|
||||||
@@ -158,7 +201,7 @@ build_pytest_examples_esp32s3:
|
|||||||
|
|
||||||
build_pytest_examples_esp32c3:
|
build_pytest_examples_esp32c3:
|
||||||
extends:
|
extends:
|
||||||
- .build_pytest_template
|
- .build_pytest_no_jtag_template
|
||||||
- .rules:build:example_test-esp32c3
|
- .rules:build:example_test-esp32c3
|
||||||
parallel: 3
|
parallel: 3
|
||||||
variables:
|
variables:
|
||||||
@@ -167,7 +210,7 @@ build_pytest_examples_esp32c3:
|
|||||||
|
|
||||||
build_pytest_examples_esp32c2:
|
build_pytest_examples_esp32c2:
|
||||||
extends:
|
extends:
|
||||||
- .build_pytest_template
|
- .build_pytest_no_jtag_template
|
||||||
- .rules:build:example_test-esp32c2
|
- .rules:build:example_test-esp32c2
|
||||||
variables:
|
variables:
|
||||||
IDF_TARGET: esp32c2
|
IDF_TARGET: esp32c2
|
||||||
@@ -175,12 +218,20 @@ build_pytest_examples_esp32c2:
|
|||||||
|
|
||||||
build_pytest_examples_esp32h4:
|
build_pytest_examples_esp32h4:
|
||||||
extends:
|
extends:
|
||||||
- .build_pytest_template
|
- .build_pytest_no_jtag_template
|
||||||
- .rules:build:example_test-esp32h4
|
- .rules:build:example_test-esp32h4
|
||||||
variables:
|
variables:
|
||||||
IDF_TARGET: esp32h4
|
IDF_TARGET: esp32h4
|
||||||
TEST_DIR: examples
|
TEST_DIR: examples
|
||||||
|
|
||||||
|
build_pytest_examples_jtag: # for all targets
|
||||||
|
extends:
|
||||||
|
- .build_pytest_jtag_template
|
||||||
|
- .rules:build:example_test-esp32
|
||||||
|
variables:
|
||||||
|
IDF_TARGET: all
|
||||||
|
TEST_DIR: examples
|
||||||
|
|
||||||
build_pytest_components_esp32h4:
|
build_pytest_components_esp32h4:
|
||||||
extends:
|
extends:
|
||||||
- .build_pytest_template
|
- .build_pytest_template
|
||||||
|
@@ -82,7 +82,7 @@ example_test_pytest_esp32_jtag:
|
|||||||
- .pytest_examples_dir_template
|
- .pytest_examples_dir_template
|
||||||
- .rules:test:example_test-esp32
|
- .rules:test:example_test-esp32
|
||||||
needs:
|
needs:
|
||||||
- build_pytest_examples_esp32
|
- build_pytest_examples_jtag
|
||||||
tags: [ esp32, jtag ]
|
tags: [ esp32, jtag ]
|
||||||
variables:
|
variables:
|
||||||
SETUP_TOOLS: "1" # need gdb openocd
|
SETUP_TOOLS: "1" # need gdb openocd
|
||||||
|
Reference in New Issue
Block a user