Browse Source

Merge pull request #16 from flabbet/azure-pipelines

Update azure-pipelines.yml for Azure Pipelines
Krzysztof Krysiński 5 years ago
parent
commit
23e07aed7b
1 changed files with 10 additions and 5 deletions
  1. 10 5
      azure-pipelines.yml

+ 10 - 5
azure-pipelines.yml

@@ -16,6 +16,12 @@ steps:
 - task: NuGetCommand@2
 - task: NuGetCommand@2
   inputs:
   inputs:
     restoreSolution: '$(solution)'
     restoreSolution: '$(solution)'
+
+- task: DotNetCoreCLI@2
+  inputs:
+    command: 'custom'
+    custom: 'tool'
+    arguments: 'install --global Codecov.Tool'
 - task: DotNetCoreCLI@2
 - task: DotNetCoreCLI@2
   displayName: Build
   displayName: Build
   inputs:
   inputs:
@@ -33,11 +39,10 @@ steps:
 - task: PublishTestResults@2
 - task: PublishTestResults@2
   condition: succeededOrFailed()
   condition: succeededOrFailed()
   inputs:
   inputs:
-      testRunner: VSTest
-      testResultsFiles: '**/*.trx'
+    testResultsFormat: 'XUnit'
+    testResultsFiles: '**/*.trx'
 
 
-- task: PowerShell@2
+- task: CmdLine@2
   inputs:
   inputs:
-    filePath: '.\codecov.ps1'
-    arguments: '-token $(CODECOV_TOKEN)'
+    script: codecov -f .\PixiEditorTests\coverage.opencover.xml -t $(CODECOV_TOKEN)
   displayName: Upload to Codecov.io
   displayName: Upload to Codecov.io