1
0
Fork 0

PROJECT: added SonarQube to build.bat

This commit is contained in:
Duncan Ogilvie 2017-10-08 14:50:17 +02:00
parent bebc47b924
commit 0c46401fa7
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
2 changed files with 16 additions and 1 deletions

5
.gitignore vendored
View File

@ -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 File

@ -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.