mirror of
https://github.com/optim-enterprises-bv/nDPId.git
synced 2025-10-29 01:12:22 +00:00
Disable SonarCloud Coverage generation.
* ToDo: Fix and Re-Enable? Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
38
.github/workflows/sonarcloud.yml
vendored
38
.github/workflows/sonarcloud.yml
vendored
@@ -15,15 +15,15 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 0
|
||||||
- uses: actions/checkout@v3
|
# - uses: actions/checkout@v3
|
||||||
- name: Set up Python 3.8 for gcovr
|
# - name: Set up Python 3.8 for gcovr
|
||||||
uses: actions/setup-python@v4
|
# uses: actions/setup-python@v4
|
||||||
with:
|
# with:
|
||||||
python-version: 3.8
|
# python-version: 3.8
|
||||||
- name: install gcovr 5.0
|
# - name: install gcovr 5.0
|
||||||
run: |
|
# run: |
|
||||||
pip install gcovr==5.0 # 5.1 is not supported
|
# pip install gcovr==5.0 # 5.1 is not supported
|
||||||
- name: Install sonar-scanner and build-wrapper
|
- name: Install sonar-scanner and build-wrapper
|
||||||
uses: SonarSource/sonarcloud-github-c-cpp@v2
|
uses: SonarSource/sonarcloud-github-c-cpp@v2
|
||||||
- name: Install Prerequisites
|
- name: Install Prerequisites
|
||||||
@@ -35,16 +35,16 @@ jobs:
|
|||||||
mkdir build
|
mkdir build
|
||||||
cmake -S . -B build -DBUILD_NDPI=ON -DDENABLE_ZLIB=ON -DNDPI_WITH_GCRYPT=OFF
|
cmake -S . -B build -DBUILD_NDPI=ON -DDENABLE_ZLIB=ON -DNDPI_WITH_GCRYPT=OFF
|
||||||
build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} cmake --build build/ --config Release
|
build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} cmake --build build/ --config Release
|
||||||
- name: Run tests
|
# - name: Run tests
|
||||||
run: |
|
# run: |
|
||||||
for file in $(ls libnDPI/tests/cfgs/*/pcap/*.pcap libnDPI/tests/cfgs/*/pcap/*.pcapng libnDPI/tests/cfgs/*/pcap/*.cap); do \
|
# for file in $(ls libnDPI/tests/cfgs/*/pcap/*.pcap libnDPI/tests/cfgs/*/pcap/*.pcapng libnDPI/tests/cfgs/*/pcap/*.cap); do \
|
||||||
echo -n "${file} "; \
|
# echo -n "${file} "; \
|
||||||
./build/nDPId-test "${file}" >/dev/null 2>/dev/null; \
|
# ./build/nDPId-test "${file}" >/dev/null 2>/dev/null; \
|
||||||
echo "[ok]"; \
|
# echo "[ok]"; \
|
||||||
done
|
# done
|
||||||
- name: Collect coverage into one XML report
|
# - name: Collect coverage into one XML report
|
||||||
run: |
|
# run: |
|
||||||
gcovr --sonarqube > coverage.xml
|
# gcovr --sonarqube > coverage.xml
|
||||||
- name: Run sonar-scanner
|
- name: Run sonar-scanner
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user