mirror of
https://github.com/espressif/esp-modbus.git
synced 2025-09-25 14:10:56 +02:00
check the build artifacts download issue
This commit is contained in:
@@ -60,7 +60,7 @@ after_script:
|
|||||||
.before_script_build_jobs:
|
.before_script_build_jobs:
|
||||||
before_script:
|
before_script:
|
||||||
- pip install idf-component-manager --upgrade
|
- pip install idf-component-manager --upgrade
|
||||||
- pip install "idf_build_apps~=1.0.1"
|
- pip install "idf_build_apps" --upgrade
|
||||||
|
|
||||||
.check_idf_ver: &check_idf_ver |
|
.check_idf_ver: &check_idf_ver |
|
||||||
export IDF_PATH=$(find /opt -type d -name "*idf*" \
|
export IDF_PATH=$(find /opt -type d -name "*idf*" \
|
||||||
@@ -113,7 +113,6 @@ after_script:
|
|||||||
- *check_idf_ver
|
- *check_idf_ver
|
||||||
# This is workaround to build library under esp-idf v4.4
|
# This is workaround to build library under esp-idf v4.4
|
||||||
- pip install idf-component-manager --upgrade
|
- pip install idf-component-manager --upgrade
|
||||||
- ${IDF_PATH}/install.sh --enable-ci
|
|
||||||
- cd ${TEST_DIR}/test_apps
|
- cd ${TEST_DIR}/test_apps
|
||||||
- *build_cur_folder
|
- *build_cur_folder
|
||||||
- cd ${TEST_DIR}/examples
|
- cd ${TEST_DIR}/examples
|
||||||
@@ -179,7 +178,7 @@ build_idf_latest:
|
|||||||
extends: .build_pytest_template
|
extends: .build_pytest_template
|
||||||
image: espressif/idf:latest
|
image: espressif/idf:latest
|
||||||
variables:
|
variables:
|
||||||
TEST_TARGETS: "esp32 esp32s2 esp32s3 esp32c2 esp32c3 esp32c5 esp32c61 esp32c6 esp32h2 esp32p4"
|
TEST_TARGETS: "esp32 esp32s2 esp32s3 esp32c2 esp32c3 esp32c5 esp32c6 esp32h2 esp32p4"
|
||||||
|
|
||||||
build_idf_v5.5:
|
build_idf_v5.5:
|
||||||
extends: .build_pytest_template
|
extends: .build_pytest_template
|
||||||
@@ -218,12 +217,12 @@ build_idf_v5.1:
|
|||||||
- pip install -r ${TEST_DIR}/tools/test_requirements.txt
|
- pip install -r ${TEST_DIR}/tools/test_requirements.txt
|
||||||
# Upgrade the packages (workaround for esp-idf v5.0)
|
# Upgrade the packages (workaround for esp-idf v5.0)
|
||||||
- pip install --only-binary cryptography pytest-embedded pytest-embedded-serial-esp pytest-embedded-idf --upgrade
|
- pip install --only-binary cryptography pytest-embedded pytest-embedded-serial-esp pytest-embedded-idf --upgrade
|
||||||
- ${IDF_PATH}/install.sh --enable-ci
|
|
||||||
|
|
||||||
.test_cur_folder: &test_cur_folder |
|
.test_cur_folder: &test_cur_folder |
|
||||||
export IDF_VER=$(cat ${TEST_DIR}/idf_version_info.txt)
|
export IDF_VER=$(cat ${TEST_DIR}/idf_version_info.txt)
|
||||||
echo "Start test job: ${CI_JOB_NAME}, version: ${IDF_VER%-*}, folder: ${PWD##*/}"
|
echo "Start test job: ${CI_JOB_NAME}, version: ${IDF_VER%-*}, folder: ${PWD##*/}"
|
||||||
python -m pytest --junit-xml=${TEST_DIR}/${PWD##*/}/results_${IDF_VER%-*}_${PWD##*/}.xml --target=${IDF_TARGET} -m multi_dut_modbus_${TEST_MARKER}
|
echo "Check built artifacts:" $(find . -type d -regex '^\./.*build_esp32[a-z]*[0-9]*[_a-z]*' -print)
|
||||||
|
python -m pytest --junit-xml=${TEST_DIR}/${PWD##*/}/results_${IDF_VER%-*}_${PWD##*/}.xml -m multi_dut_modbus_${TEST_MARKER}
|
||||||
ls -lh > test_dir_${PWD##*/}.txt
|
ls -lh > test_dir_${PWD##*/}.txt
|
||||||
|
|
||||||
.test_template:
|
.test_template:
|
||||||
@@ -233,8 +232,6 @@ build_idf_v5.1:
|
|||||||
- .before_script_pytest_jobs
|
- .before_script_pytest_jobs
|
||||||
tags:
|
tags:
|
||||||
- multi_dut_modbus_${TEST_MARKER}
|
- multi_dut_modbus_${TEST_MARKER}
|
||||||
variables:
|
|
||||||
IDF_TARGET: "esp32" # the only esp32 runners are available for now
|
|
||||||
script:
|
script:
|
||||||
- cd ${TEST_DIR}/test_apps/
|
- cd ${TEST_DIR}/test_apps/
|
||||||
- *test_cur_folder
|
- *test_cur_folder
|
||||||
@@ -247,13 +244,11 @@ build_idf_v5.1:
|
|||||||
- "${TEST_DIR}/**/*.xml"
|
- "${TEST_DIR}/**/*.xml"
|
||||||
- "${TEST_DIR}/**/results_*.xml"
|
- "${TEST_DIR}/**/results_*.xml"
|
||||||
- "${TEST_DIR}/**/pytest_embedded_log/"
|
- "${TEST_DIR}/**/pytest_embedded_log/"
|
||||||
- "${TEST_DIR}/**/test_dir*.txt"
|
- "${TEST_DIR}/**/test_dir*.txt"
|
||||||
- "${TEST_DIR}/**/idf_version_info.txt"
|
- "${TEST_DIR}/**/idf_version_info.txt"
|
||||||
- "${TEST_DIR}/**/log.html"
|
- "${TEST_DIR}/**/log.html" # robot framework related files
|
||||||
- "${TEST_DIR}/**/report.html"
|
- "${TEST_DIR}/**/report.html"
|
||||||
- "${TEST_DIR}/**/*.pcap"
|
- "${TEST_DIR}/**/*.pcap"
|
||||||
reports:
|
|
||||||
junit: ${TEST_DIR}/results_${IDF_VER%-*}.xml
|
|
||||||
when: always
|
when: always
|
||||||
expire_in: 1 week
|
expire_in: 1 week
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user