Skip to content

Commit f943317

Browse files
committed
check the build artifacts download issue
1 parent efdb986 commit f943317

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

.gitlab-ci.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ after_script:
6060
.before_script_build_jobs:
6161
before_script:
6262
- pip install idf-component-manager --upgrade
63-
- pip install "idf_build_apps~=1.0.1"
63+
- pip install "idf_build_apps" --upgrade
6464

6565
.check_idf_ver: &check_idf_ver |
6666
export IDF_PATH=$(find /opt -type d -name "*idf*" \
@@ -113,7 +113,6 @@ after_script:
113113
- *check_idf_ver
114114
# This is workaround to build library under esp-idf v4.4
115115
- pip install idf-component-manager --upgrade
116-
- ${IDF_PATH}/install.sh --enable-ci
117116
- cd ${TEST_DIR}/test_apps
118117
- *build_cur_folder
119118
- cd ${TEST_DIR}/examples
@@ -179,7 +178,7 @@ build_idf_latest:
179178
extends: .build_pytest_template
180179
image: espressif/idf:latest
181180
variables:
182-
TEST_TARGETS: "esp32 esp32s2 esp32s3 esp32c2 esp32c3 esp32c5 esp32c61 esp32c6 esp32h2 esp32p4"
181+
TEST_TARGETS: "esp32 esp32s2 esp32s3 esp32c2 esp32c3 esp32c5 esp32c6 esp32h2 esp32p4"
183182

184183
build_idf_v5.5:
185184
extends: .build_pytest_template
@@ -218,12 +217,12 @@ build_idf_v5.1:
218217
- pip install -r ${TEST_DIR}/tools/test_requirements.txt
219218
# Upgrade the packages (workaround for esp-idf v5.0)
220219
- pip install --only-binary cryptography pytest-embedded pytest-embedded-serial-esp pytest-embedded-idf --upgrade
221-
- ${IDF_PATH}/install.sh --enable-ci
222220

223221
.test_cur_folder: &test_cur_folder |
224222
export IDF_VER=$(cat ${TEST_DIR}/idf_version_info.txt)
225223
echo "Start test job: ${CI_JOB_NAME}, version: ${IDF_VER%-*}, folder: ${PWD##*/}"
226-
python -m pytest --junit-xml=${TEST_DIR}/${PWD##*/}/results_${IDF_VER%-*}_${PWD##*/}.xml --target=${IDF_TARGET} -m multi_dut_modbus_${TEST_MARKER}
224+
echo "Check built artifacts:" $(find . -type d -regex '^\./.*build_esp32[a-z]*[0-9]*[_a-z]*' -print)
225+
python -m pytest --junit-xml=${TEST_DIR}/${PWD##*/}/results_${IDF_VER%-*}_${PWD##*/}.xml -m multi_dut_modbus_${TEST_MARKER}
227226
ls -lh > test_dir_${PWD##*/}.txt
228227

229228
.test_template:
@@ -233,8 +232,6 @@ build_idf_v5.1:
233232
- .before_script_pytest_jobs
234233
tags:
235234
- multi_dut_modbus_${TEST_MARKER}
236-
variables:
237-
IDF_TARGET: "esp32" # the only esp32 runners are available for now
238235
script:
239236
- cd ${TEST_DIR}/test_apps/
240237
- *test_cur_folder
@@ -247,13 +244,11 @@ build_idf_v5.1:
247244
- "${TEST_DIR}/**/*.xml"
248245
- "${TEST_DIR}/**/results_*.xml"
249246
- "${TEST_DIR}/**/pytest_embedded_log/"
250-
- "${TEST_DIR}/**/test_dir*.txt"
247+
- "${TEST_DIR}/**/test_dir*.txt"
251248
- "${TEST_DIR}/**/idf_version_info.txt"
252-
- "${TEST_DIR}/**/log.html"
249+
- "${TEST_DIR}/**/log.html" # robot framework related files
253250
- "${TEST_DIR}/**/report.html"
254251
- "${TEST_DIR}/**/*.pcap"
255-
reports:
256-
junit: ${TEST_DIR}/results_${IDF_VER%-*}.xml
257252
when: always
258253
expire_in: 1 week
259254

0 commit comments

Comments
 (0)