Permalink
Browse files

PROJECT: added SonarQube to build.bat

  • Loading branch information...
mrexodia committed Oct 8, 2017
1 parent bebc47b commit 0c46401fa72e29b0c90cc488d310baf58add2faa
Showing with 16 additions and 1 deletion.
  1. +4 −1 .gitignore
  2. +12 −0 build.bat
View
@@ -72,4 +72,7 @@ src/build-*/
!/hooks/AStyleWhore.exe
!/hooks/AStyle.dll
!/bin/x64dbg_shell_remove.reg
!*.lib
!*.lib
.scannerwork/
bw-output/
build-wrapper*
View
@@ -8,6 +8,7 @@ cd %~dp0
if /i "%1"=="x32" call setenv.bat x32&set type=Configuration=Release;Platform=Win32&goto build
if /i "%1"=="x64" call setenv.bat x64&set type=Configuration=Release;Platform=x64&goto build
if /i "%1"=="coverity" goto coverity
if /i "%1"=="sonarqube" goto sonarqube
goto usage
@@ -50,6 +51,17 @@ cov-build --dir cov-int --instrument build.bat %2%
goto :restorepath
:sonarqube
if "%2"=="" (
echo "Usage: build.bat sonarqube x32/x64"
goto usage
)
echo Building with SonarQube
build-wrapper --out-dir bw-output build.bat %2%
sonar-scanner -Dsonar.projectKey=x64dbg -Dsonar.sources=. -Dsonar.cfamily.build-wrapper-output=bw-output -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=x64dbg-github -Dsonar.login=%SONARQUBE_TOKEN%
:usage
echo "Usage: build.bat x32/x64/coverity"
echo.

0 comments on commit 0c46401

Please sign in to comment.