mirror of
https://github.com/espressif/esp-mqtt.git
synced 2026-06-05 21:04:46 +00:00
169e1ee88d
- Makes the name of component mqtt - Updates README - Adjust CI to build for supported idf versions - Removes qemu job
51 lines
1.4 KiB
YAML
51 lines
1.4 KiB
YAML
.add_gh_key_remote: &add_gh_key_remote |
|
|
curl -sSL ${CIT_LOADER_URL} | sh
|
|
source citools/import_functions
|
|
cit_add_ssh_key "${GH_PUSH_KEY}"
|
|
git remote remove github || true
|
|
git remote add github ${GH_PUSH_REPO}
|
|
|
|
host_tests:
|
|
image: espressif/idf:latest
|
|
stage: test
|
|
tags: [build]
|
|
timeout: 1h
|
|
variables:
|
|
GIT_DEPTH: 1
|
|
needs: []
|
|
artifacts:
|
|
paths:
|
|
- "**/coverage.xml"
|
|
- "**/coverage.html"
|
|
expire_in: 1 week
|
|
when: always
|
|
reports:
|
|
junit: "**/junit.xml"
|
|
coverage_report:
|
|
coverage_format: cobertura
|
|
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
|
|
|
|
check_remotes_sync:
|
|
stage: test_deploy
|
|
image: espressif/idf:latest
|
|
tags:
|
|
- build
|
|
- internet
|
|
needs: []
|
|
except:
|
|
- master
|
|
- idf
|
|
script:
|
|
- *add_gh_key_remote
|
|
- git fetch --depth=1 origin master
|
|
- git fetch --depth=1 github master
|
|
- test "$(git rev-parse origin/master)" == "$(git rev-parse github/master)"
|