Browse Source

Update azure-pipelines.yml for Azure Pipelines

Krzysztof Krysiński 5 years ago
parent
commit
5c5f87c3fe
1 changed files with 6 additions and 12 deletions
  1. 6 12
      azure-pipelines.yml

+ 6 - 12
azure-pipelines.yml

@@ -22,6 +22,7 @@ steps:
     command: 'custom'
     custom: 'tool'
     arguments: 'install --global Codecov.Tool'
+
 - task: DotNetCoreCLI@2
   displayName: Build
   inputs:
@@ -29,20 +30,13 @@ steps:
     projects: '**/*.csproj'
     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:
-    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
   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