Skip to content

Commit

Permalink
Updates Sonar scanner github action and configure BullseyeCoverage wi…
Browse files Browse the repository at this point in the history
…thin the build github action
  • Loading branch information
luc-guyot-infomaniak committed Oct 2, 2024
1 parent 8a54fde commit 7ec47d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,13 @@ jobs:

- name: Build kDrive desktop
run : |
# Configure BullseyeCoverage
rm -f "${HOME}/BullseyeCoverageEnv.txt"
echo "COVFILE=${BASEPATH}/src/test.cov" > "${HOME}/BullseyeCoverageEnv.txt"
export PATH="/opt/BullseyeCoverage/bin/:${PATH}"
cov01 -1 # coverage on
# Build the application
./infomaniak-build-tools/linux/build-ci-amd64.sh
- name: Grant tests script execute permission
Expand All @@ -59,7 +64,7 @@ jobs:
covxml -f src/test.cov -o coverage.xml
- name: Install sonar-scanner
uses: sonarsource/sonarqube-github-c-cpp@v1
uses: SonarSource/sonarcloud-github-c-cpp@v3
env:
SONAR_HOST_URL: https://sonarcloud.io

Expand Down
7 changes: 0 additions & 7 deletions infomaniak-build-tools/linux/build-ci-amd64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,6 @@ CMAKE_PARAMS=()

export KDRIVE_DEBUG=0

# Configure code coverage computation
if [ ! -f "${HOME}/BullseyeCoverageEnv.txt" ]; then
# Tells BullseyeCoverage where to store the coverage information generated during the build and the run of the tests
echo "COVFILE=${BASEPATH}/src/test.cov" > "${HOME}/BullseyeCoverageEnv.txt"
fi


cmake -B$BUILDDIR -H$BASEPATH \
-DOPENSSL_ROOT_DIR=/usr/local \
-DOPENSSL_INCLUDE_DIR=/usr/local/include \
Expand Down

0 comments on commit 7ec47d2

Please sign in to comment.