-
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sonarqube target put aside (WIP) modular meson targets
- Loading branch information
Showing
6 changed files
with
84 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
#!/bin/sh | ||
# wrapper script passed to ninja in build/sonarqube.mk | ||
scan-build -v -plist "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
## Initialize build defaults | ||
include build/init.mk | ||
|
||
## TODO: test with sonarqube server (we moved out of ow2) | ||
SONAR_LOGIN ?= "" | ||
SONAR_HOST_URL := https://sonarqube.ow2.org | ||
SCANBUILD_SCRIPT := $(pwd)/build/scanbuild.sh | ||
|
||
# Needs clang-tools for scan-build | ||
|
||
COMPILER := clang | ||
|
||
cflags += ${cflags_debug} -fPIC | ||
# activate CCACHE etc. | ||
include build/plugins.mk | ||
|
||
sonarqube: ## build a sonarqube cpp static analysis | ||
$(info Configure login token in build/sonarqube.sh) | ||
$(MAKE) -f build/meson.mk deps COMPILER=clang | ||
$(MAKE) -f build/meson.mk prepare COMPILER=clang | ||
$(MAKE) -f build/meson.mk config COMPILER=clang | ||
SCANBUILD=${SCANBUILD_SCRIPT} ninja -C meson scan-build | ||
@docker pull sonarqube | ||
@cp -v build/sonar-project.properties . | ||
@docker run --rm -e SONAR_HOST_URL=${SONAR_HOST_URL} \ | ||
-e SONAR_LOGIN=${SONAR_LOGIN} \ | ||
-v ${pwd}:/usr/src sonarsource/sonar-scanner-cli \ | ||
-Dsonar.projectKey=zenroom | ||
|
||
# sonarqube debug -X |