SonarCloud integration

master
Inga 🏳‍🌈 7 years ago
parent 756b030f64
commit f621b18a86
  1. 23
      appveyor.yml

@ -2,16 +2,19 @@ version: 1.0.{build}
image: Visual Studio 2017 image: Visual Studio 2017
before_build: before_build:
- nuget restore - nuget restore
#- choco install opencover - choco install msbuild-sonarqube-runner
- choco install opencover.portable #- choco install opencover
- choco install codecov - choco install opencover.portable
- choco install codecov
build: build_script:
verbosity: minimal - 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: test_script:
- dotnet build /t:Rebuild /p:DebugType=full /p:DebugSymbols=true EternalArrowBackup.sln - dotnet build /t:Rebuild /p:DebugType=full /p:DebugSymbols=true EternalArrowBackup.sln
- OpenCoverForProject Tests\ContentTransformer\ClearText\EternalArrowBackup.ContentTransformer.ClearText.Tests.csproj - OpenCoverForProject Tests\ContentTransformer\ClearText\EternalArrowBackup.ContentTransformer.ClearText.Tests.csproj
- OpenCoverForProject Tests\Hasher\SHA1\EternalArrowBackup.Hasher.SHA1.Tests.csproj - OpenCoverForProject Tests\Hasher\SHA1\EternalArrowBackup.Hasher.SHA1.Tests.csproj
- codecov -f OpenCover.xml - codecov -f OpenCover.xml

Loading…
Cancel
Save