From 9ff19b07372460b4c8b41b37a66c1b488bd07bc0 Mon Sep 17 00:00:00 2001 From: Stef Heyenrath Date: Thu, 1 Nov 2018 14:36:49 +0000 Subject: [PATCH] Codecov (#222) * Codecov * .nuget\packages\codecov\1.1.0 --- azure-pipelines.yml | 9 +++++++-- test/WireMock.Net.Tests/WireMock.Net.Tests.csproj | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 29544e3f..ac816e65 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -12,10 +12,10 @@ steps: echo "BuildId = $(buildId)" displayName: 'Print buildId' -# Install SonarScanner +# Install Tools (SonarScanner) - script: | dotnet tool install --global dotnet-sonarscanner - displayName: Install SonarScanner + displayName: Install Tools (SonarScanner) # Begin SonarScanner # See also @@ -38,6 +38,11 @@ steps: %USERPROFILE%\.dotnet\tools\dotnet-sonarscanner end /d:sonar.login="$(SONAR_TOKEN)" displayName: End SonarScanner +# Upload coverage to codecov.io +- script: | + %USERPROFILE%\.nuget\packages\codecov\1.1.0\tools\codecov.exe -f "./test/WireMock.Net.Tests/coverage.opencover.xml" -t $(CODECOV_TOKEN) + displayName: Upload coverage to codecov.io + - task: PublishTestResults@2 inputs: testRunner: VSTest diff --git a/test/WireMock.Net.Tests/WireMock.Net.Tests.csproj b/test/WireMock.Net.Tests/WireMock.Net.Tests.csproj index 2eda1787..d770ac80 100644 --- a/test/WireMock.Net.Tests/WireMock.Net.Tests.csproj +++ b/test/WireMock.Net.Tests/WireMock.Net.Tests.csproj @@ -24,6 +24,7 @@ + all runtime; build; native; contentfiles; analyzers