|
@@ -22,6 +22,7 @@ steps:
|
|
command: 'custom'
|
|
command: 'custom'
|
|
custom: 'tool'
|
|
custom: 'tool'
|
|
arguments: 'install --global Codecov.Tool'
|
|
arguments: 'install --global Codecov.Tool'
|
|
|
|
+
|
|
- task: DotNetCoreCLI@2
|
|
- task: DotNetCoreCLI@2
|
|
displayName: Build
|
|
displayName: Build
|
|
inputs:
|
|
inputs:
|
|
@@ -29,20 +30,13 @@ steps:
|
|
projects: '**/*.csproj'
|
|
projects: '**/*.csproj'
|
|
arguments: '--configuration Release'
|
|
arguments: '--configuration Release'
|
|
|
|
|
|
-- task: DotNetCoreCLI@2
|
|
|
|
- displayName: Tests
|
|
|
|
- inputs:
|
|
|
|
- command: test
|
|
|
|
- projects: '**/*Tests/*.csproj'
|
|
|
|
- arguments: '--configuration $(buildConfiguration) --logger trx /p:CollectCoverage=true /p:CoverletOutputFormat=opencover"'
|
|
|
|
-
|
|
|
|
-- task: PublishTestResults@2
|
|
|
|
- condition: succeededOrFailed()
|
|
|
|
|
|
+- task: PowerShell@2
|
|
inputs:
|
|
inputs:
|
|
- testResultsFormat: 'XUnit'
|
|
|
|
- testResultsFiles: '**/*.trx'
|
|
|
|
|
|
+ filePath: '$env:userprofile\.nuget\packages\opencover\4.7.922\tools\OpenCover.Console.exe'
|
|
|
|
+ arguments: '-register:user -target:"$env:programfiles/dotnet/dotnet.exe" -targetargs:test -filter:"+[*]*" -output:".\PixiEditor_coverage.xml" -oldstyle'
|
|
|
|
+ workingDirectory: 'PixiEditorTests\'
|
|
|
|
|
|
- task: CmdLine@2
|
|
- task: CmdLine@2
|
|
inputs:
|
|
inputs:
|
|
- script: codecov -f .\PixiEditorTests\coverage.opencover.xml -t $(CODECOV_TOKEN)
|
|
|
|
|
|
+ script: codecov -f .\PixiEditorTests\PixiEditor_coverage.xml -t $(CODECOV_TOKEN)
|
|
displayName: Upload to Codecov.io
|
|
displayName: Upload to Codecov.io
|