mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-25 02:41:53 +01:00
netcoreapp3.1 (with coverage)
This commit is contained in:
@@ -25,25 +25,21 @@ steps:
|
|||||||
$jdkPath = $env:JAVA_HOME_11_X64
|
$jdkPath = $env:JAVA_HOME_11_X64
|
||||||
Write-Host "##vso[task.setvariable variable=JAVA_HOME]$jdkPath"
|
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
|
# Begin SonarScanner
|
||||||
- script: |
|
- 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"
|
%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
|
displayName: Begin SonarScanner
|
||||||
condition: and(succeeded(), eq(variables['RUN_SONAR'], 'yes'))
|
condition: and(succeeded(), eq(variables['RUN_SONAR'], 'yes'))
|
||||||
|
|
||||||
- task: DotNetCoreCLI@2
|
# Build tests and run tests for netcoreapp3.1 (with coverage)
|
||||||
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)
|
|
||||||
- script: |
|
- 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
|
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
|
# End SonarScanner
|
||||||
- script: |
|
- script: |
|
||||||
|
|||||||
Reference in New Issue
Block a user