mirror of
https://github.com/espressif/esp-mqtt.git
synced 2026-06-05 21:04:46 +00:00
ci: Fix mqtt being unavailable to host test
This commit is contained in:
+14
-6
@@ -26,12 +26,20 @@ host_tests:
|
||||
path: "**/coverage.xml"
|
||||
before_script:
|
||||
- pip install -U gcovr 'idf-ci<1'
|
||||
script:
|
||||
- idf-ci build run -t linux -p test/host
|
||||
- cd test/host
|
||||
- ./build_linux_coverage/host_mqtt_client_test.elf -r junit -o junit.xml
|
||||
- cd ../..
|
||||
- gcovr --gcov-ignore-parse-errors -g -k -r . --html coverage.html -x coverage.xml
|
||||
script: |
|
||||
set -euo pipefail
|
||||
ORIG_DIR="${CI_PROJECT_DIR:-$(pwd)}"
|
||||
cd "${ORIG_DIR}"
|
||||
echo "Original dir: $(pwd)"
|
||||
rm -rf mqtt
|
||||
git worktree add --force mqtt HEAD || (echo "Worktree failed; using local clone" && git clone --local --no-hardlinks . mqtt)
|
||||
git worktree list || true
|
||||
cd mqtt
|
||||
idf-ci build run -t linux -p test/host
|
||||
cd test/host
|
||||
./build_linux_coverage/host_mqtt_client_test.elf -r junit -o junit.xml
|
||||
cd ../..
|
||||
gcovr --gcov-ignore-parse-errors -g -k -r . --html coverage.html -x coverage.xml
|
||||
|
||||
check_remotes_sync:
|
||||
stage: test_deploy
|
||||
|
||||
Reference in New Issue
Block a user