Skip to content

Commit

Permalink
Resolve codecov dynamically
Browse files Browse the repository at this point in the history
  • Loading branch information
Gh0stWalk3r committed Aug 13, 2019
1 parent 68d2786 commit 973e426
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ steps:
- powershell: |
$testsDirectory = Join-Path -Path '$(Build.SourcesDirectory)' -ChildPath 'tests'
$coverageFile = Get-ChildItem -Path "$testsDirectory" -Recurse -File -Filter 'coverage.xml' | Select-Object -First 1
& "$ENV:USERPROFILE\.nuget\packages\codecov\1.7.1\tools\codecov.exe" -f "$($coverageFile.FullName)" -t '$(CODECOV_TOKEN)'
$codecovExecutable = Get-ChildItem -Path "$ENV:USERPROFILE\.nuget\packages\codecov" -Recurse -File -Filter "codecov.exe" | Sort-Object -Descending -Property FullName | Select-Object -First 1
& "$($codecovExecutable.FullName)" -f "$($coverageFile.FullName)" -t '$(CODECOV_TOKEN)'
displayName: 'Upload coverage to codecov.io'

- task: DotNetCoreCLI@2
Expand Down

0 comments on commit 973e426

Please sign in to comment.