Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build_cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ jobs:
if: matrix.configurations.compiler != 'emscripten'
# Use a bash shell, so we can use the same syntax for environment variable access regardless of the host operating system
shell: bash
run: cmake -S . -B ../build -DCMAKE_BUILD_TYPE=${{ matrix.cmake-build-type }} -DENABLE_COVERAGE=${{ matrix.configurations.name == env.REFERENCE_CONFIG && matrix.cmake-build-type == 'Debug' }}
run: cmake -S . -B ../build -DCMAKE_BUILD_TYPE=${{ matrix.cmake-build-type }} -DOPENCMW_ENABLE_COVERAGE=${{ matrix.configurations.name == env.REFERENCE_CONFIG && matrix.cmake-build-type == 'Debug' }}

- name: Configure CMake Emscripten
if: matrix.configurations.compiler == 'emscripten'
Expand Down Expand Up @@ -145,5 +145,5 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
sonar-scanner --define sonar.cfamily.build-wrapper-output="${{ env.BUILD_WRAPPER_OUT_DIR }}"
sonar-scanner --debug --define sonar.cfamily.build-wrapper-output="${{ env.BUILD_WRAPPER_OUT_DIR }}"
# Consult https://docs.sonarcloud.io/advanced-setup/ci-based-analysis/sonarscanner-cli/ for more information and options
26 changes: 26 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,22 @@ if(OPENCMW_ENABLE_TESTING)
EXECUTABLE
ctest
DEPENDENCIES
base64pp_tests
clientPublisher_tests
client_tests
core_tests
disruptor_core_tests
disruptor_tests
disruptor_waitstrategy_tests
majordomo_worker_rest_tests
majordomo_worker_tests
majordomo_tests
mockserver_tests
RBAC_tests
rest_client_mock_server_tests
rest_client_only_tests
serialiser_tests
SubscriptionMatch_tests
EXCLUDE
"$CMAKE_BUILD_DIR/*"
"concepts/.*"
Expand All @@ -159,9 +172,22 @@ if(OPENCMW_ENABLE_TESTING)
EXECUTABLE
ctest
DEPENDENCIES
base64pp_tests
clientPublisher_tests
client_tests
core_tests
disruptor_core_tests
disruptor_tests
disruptor_waitstrategy_tests
majordomo_worker_rest_tests
majordomo_worker_tests
majordomo_tests
mockserver_tests
RBAC_tests
rest_client_mock_server_tests
rest_client_only_tests
serialiser_tests
SubscriptionMatch_tests
EXCLUDE
"$CMAKE_BUILD_DIR/*"
"concepts/.*"
Expand Down
4 changes: 4 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ sonar.organization=fair-acc
# exclude benchmark which crashes the Analysis
# sonar.exclusions=bench/bm_case1.cpp
sonar.coverageReportPaths=/home/runner/work/opencmw-cpp/build/coverage_sonarcube.xml
sonar.sources = src/
sonar.tests = src/
sonar.exclusions = src/**/test/**/*
sonar.test.inclusions = src/**/test/**/*