diff --git a/azure-pipelines-ci.yml b/azure-pipelines-ci.yml index a786fa71..de0a27c2 100644 --- a/azure-pipelines-ci.yml +++ b/azure-pipelines-ci.yml @@ -25,25 +25,21 @@ steps: $jdkPath = $env:JAVA_HOME_11_X64 Write-Host "##vso[task.setvariable variable=JAVA_HOME]$jdkPath" +# Build tests and run tests for net452 +- script: | + dotnet test ./test/WireMock.Net.Tests/WireMock.Net.Tests.csproj --configuration Debug --framework net452 + displayName: 'Build tests and run tests for net452' + # Begin SonarScanner - script: | %USERPROFILE%\.dotnet\tools\dotnet-sonarscanner begin /k:"WireMock-Net_WireMock.Net" /o:"wiremock-net" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.login="$(SONAR_TOKEN)" /v:"$(buildId)" /d:sonar.cs.opencover.reportsPaths="**\coverage.netcoreapp3.1.opencover.xml" displayName: Begin SonarScanner condition: and(succeeded(), eq(variables['RUN_SONAR'], 'yes')) -- task: DotNetCoreCLI@2 - displayName: Build Debug - inputs: - command: 'build' - arguments: /p:Configuration=Debug - projects: $(buildProjects) - condition: and(succeeded(), eq(variables['BUILD_SOLUTION_AS_DEBUG'], 'yes')) - -# Build tests and run tests for net452 and netcoreapp3.1 (with coverage) +# Build tests and run tests for netcoreapp3.1 (with coverage) - script: | - dotnet test ./test/WireMock.Net.Tests/WireMock.Net.Tests.csproj --configuration Debug --framework net452 dotnet test ./test/WireMock.Net.Tests/WireMock.Net.Tests.csproj --configuration Debug --framework netcoreapp3.1 --logger trx /p:CollectCoverage=true /p:CoverletOutputFormat=opencover - displayName: 'Build tests and run tests for net452 and netcoreapp3.1 (with coverage)' + displayName: 'Build tests and run tests for netcoreapp3.1 (with coverage)' # End SonarScanner - script: |