From f621b18a86de1684316ea21c0edc6dfb643cdeb4 Mon Sep 17 00:00:00 2001 From: Inga Lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Thu, 20 Jul 2017 17:58:06 +0300 Subject: [PATCH] SonarCloud integration --- appveyor.yml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 645b271..44cd05c 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -2,16 +2,19 @@ version: 1.0.{build} image: Visual Studio 2017 before_build: -- nuget restore -#- choco install opencover -- choco install opencover.portable -- choco install codecov + - nuget restore + - choco install msbuild-sonarqube-runner + #- choco install opencover + - choco install opencover.portable + - choco install codecov -build: - verbosity: minimal +build_script: + - MSBuild.SonarQube.Runner.exe begin /k:"EternalArrowBackup" /d:"sonar.organization=inga-lovinde-github" /d:"sonar.host.url=https://sonarcloud.io" /d:"sonar.login=%SONAR_LOGIN%" + - msbuild /t:Rebuild EternalArrowBackup.sln + - MSBuild.SonarQube.Runner.exe end /d:"sonar.login=%SONAR_LOGIN%" test_script: -- dotnet build /t:Rebuild /p:DebugType=full /p:DebugSymbols=true EternalArrowBackup.sln -- OpenCoverForProject Tests\ContentTransformer\ClearText\EternalArrowBackup.ContentTransformer.ClearText.Tests.csproj -- OpenCoverForProject Tests\Hasher\SHA1\EternalArrowBackup.Hasher.SHA1.Tests.csproj -- codecov -f OpenCover.xml + - dotnet build /t:Rebuild /p:DebugType=full /p:DebugSymbols=true EternalArrowBackup.sln + - OpenCoverForProject Tests\ContentTransformer\ClearText\EternalArrowBackup.ContentTransformer.ClearText.Tests.csproj + - OpenCoverForProject Tests\Hasher\SHA1\EternalArrowBackup.Hasher.SHA1.Tests.csproj + - codecov -f OpenCover.xml