Skip to content
Snippets Groups Projects
Commit e708f046 authored by Soeren Peters's avatar Soeren Peters
Browse files

Add file extensions to sonarqube file. Add compile_commands database.

parent b92dfb38
No related branches found
No related tags found
No related merge requests found
......@@ -311,6 +311,7 @@ lizard:
- lizard.txt
# code coverage
# this job also produces a compile commands json file.
gcov_gcc_9:
stage: analyze
......@@ -331,7 +332,7 @@ gcov_gcc_9:
script:
- mkdir -p $CI_PROJECT_DIR/gcov_build
- cd $CI_PROJECT_DIR/gcov_build
- cmake .. -DBUILD_VF_CPU=ON -DBUILD_VF_GPU=ON -DBUILD_VF_COVERAGE=ON -DBUILD_VF_UNIT_TESTS=ON
- cmake .. -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DBUILD_VF_CPU=ON -DBUILD_VF_GPU=ON -DBUILD_VF_COVERAGE=ON -DBUILD_VF_UNIT_TESTS=ON
- make -j4
- ./bin/basicsTests
- cd ..
......@@ -342,6 +343,7 @@ gcov_gcc_9:
paths:
- coverage/
- gcov_build/
- gcov_build/compile_commands.json
reports:
cobertura: coverage/coverage.xml
......
......@@ -10,6 +10,10 @@ sonar.projectName=VirtualFluids
sonar.language=cxx
sonar.cxx.suffixes.sources=cpp,c,cxx,cu
sonar.cxx.suffixes.headers=h,hpp,hxx,cuh
# Path is relative to the sonar-project.properties file. Defaults to .
sonar.sources=./src
......@@ -24,7 +28,8 @@ sonar.cxx.cppcheck.reportPath=cppcheck.xml
sonar.cxx.clangtidy.reportPath=build_clang_tidy/clangtidy.txt
#sonar.cxx.jsonCompilationDatabase=cmake-build-debug/compile_commands.json
sonar.cxx.jsonCompilationDatabase=gcov_build/compile_commands.json
#sonar.cxx.gcc.reportPath
#sonar.cxx.valgrind.reportPath
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment