mirror of
https://github.com/jmcnamara/libxlsxwriter
synced 2025-03-28 21:13:14 +00:00
Add sonarcloud analysis make rule.
This commit is contained in:
parent
fb84d514e3
commit
127d85070f
2
.gitignore
vendored
2
.gitignore
vendored
@ -40,6 +40,8 @@ examples/*
|
||||
!examples/Makefile
|
||||
cov-int
|
||||
libxlsxwriter-coverity.tgz
|
||||
.scannerwork/
|
||||
.sonar_output/
|
||||
|
||||
third_party/zlib-1.2.8/configure.log
|
||||
third_party/zlib-1.2.8/contrib/minizip/miniunz
|
||||
|
20
Makefile
20
Makefile
@ -164,6 +164,26 @@ coverity: all
|
||||
$(Q)$(MAKE) -C src clean
|
||||
$(Q)rm -f lib/*
|
||||
|
||||
|
||||
# Run sonarcloud analysis.
|
||||
sonarcloud:
|
||||
ifndef SONAR_TOKEN
|
||||
@echo "Please define SONAR_TOKEN to run this analysis."
|
||||
@exit 1
|
||||
endif
|
||||
|
||||
$(Q)$(MAKE) clean
|
||||
$(Q)../sonar-scanner-4.6.1.2450-macosx/bin/build-wrapper-macosx-x86 --out-dir .sonar_output make all
|
||||
$(Q)../sonar-scanner-4.6.1.2450-macosx/bin/sonar-scanner \
|
||||
-Dsonar.organization=jmcnamara-github \
|
||||
-Dsonar.projectKey=jmcnamara_libxlsxwriter \
|
||||
-Dsonar.sources=src \
|
||||
-Dsonar.sourceEncoding=UTF-8 \
|
||||
-Dsonar.cfamily.build-wrapper-output=.sonar_output \
|
||||
-Dsonar.host.url=https://sonarcloud.io \
|
||||
-Dsonar.cfamily.threads=4 \
|
||||
-Dsonar.cfamily.cache.enabled=false
|
||||
|
||||
# Run a scan-build static analysis.
|
||||
scan_build: all
|
||||
$(Q)$(MAKE) -C src clean
|
||||
|
Loading…
x
Reference in New Issue
Block a user