Skip to content

Commit df81ecd

Browse files
authored
[build] Fixed outdated SonarQube configuration (#3124).
1 parent 8bc76ac commit df81ecd

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/cxx11-ubuntu.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: configure
2020
run: |
2121
mkdir _build && cd _build
22-
cmake ../ -DCMAKE_COMPILE_WARNING_AS_ERROR=ON -DENABLE_STDCXX_SYNC=ON -DENABLE_ENCRYPTION=ON -DENABLE_UNITTESTS=ON -DENABLE_BONDING=ON -DENABLE_TESTING=ON -DENABLE_EXAMPLES=ON -DENABLE_CODE_COVERAGE=ON
22+
cmake ../ -DCMAKE_COMPILE_WARNING_AS_ERROR=ON -DENABLE_STDCXX_SYNC=ON -DENABLE_ENCRYPTION=ON -DENABLE_UNITTESTS=ON -DENABLE_BONDING=ON -DENABLE_TESTING=ON -DENABLE_EXAMPLES=ON -DENABLE_CODE_COVERAGE=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
2323
- name: build
2424
run: cd _build && build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} cmake --build .
2525
- name: test
@@ -35,4 +35,4 @@ jobs:
3535
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3636
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
3737
# Consult https://docs.sonarcloud.io/advanced-setup/ci-based-analysis/sonarscanner-cli/ for more information and options.
38-
run: sonar-scanner --define sonar.cfamily.build-wrapper-output=_build/"${{ env.BUILD_WRAPPER_OUT_DIR }}"
38+
run: sonar-scanner --define sonar.cfamily.compile-commands="_build/compile_commands.json"

sonar-project.properties

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,9 @@ sonar.sources=srtcore/,apps/,common/,examples/,haicrypt/,scripts/,testing/
3232
sonar.tests=test/
3333

3434
# Properties specific to the C/C++ analyzer:
35-
sonar.cfamily.build-wrapper-output=_build/sonar-output
35+
#sonar.cfamily.build-wrapper-output=_build/sonar-output
36+
# This field is deprecated. compile-commands should be used
37+
# instead, and this property is set in the action specification
38+
# Should be something like:
39+
#sonar.cfamily.compile-commands=_build/compile_commands.json
3640
sonar.cfamily.gcov.reportsPath=.

0 commit comments

Comments
 (0)