diff --git a/.gitignore b/.gitignore index cc5e702..95689c3 100644 --- a/.gitignore +++ b/.gitignore @@ -403,5 +403,8 @@ FodyWeavers.xsd ##### custom stuff -# publishing ips -*.zip \ No newline at end of file +# publishing zips +*.zip +# sonarz +.sonarqube +sonarToken.txt \ No newline at end of file diff --git a/source/sonar.ps1 b/source/sonar.ps1 new file mode 100644 index 0000000..4929f1e --- /dev/null +++ b/source/sonar.ps1 @@ -0,0 +1,8 @@ +$sonarToken = [System.IO.File]::ReadAllText("sonarToken.txt") + +dotnet sonarscanner begin /k:"Hybrid" /d:sonar.host.url="http://localhost:9000" /d:sonar.login=$sonarToken + +dotnet build --no-incremental +dotnet test + +dotnet sonarscanner end /d:sonar.login=$sonarToken \ No newline at end of file