-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
azure-codecov.yml
20 lines (19 loc) · 954 Bytes
/
azure-codecov.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
steps:
- bash: |
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
displayName: Install Codecov for Linux
condition: and(not(variables['build.skiptest']), eq(variables['Agent.OS'],'Linux'))
- powershell: |
$ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest -Uri https://uploader.codecov.io/latest/windows/codecov.exe -Outfile codecov.exe
displayName: Install Codecov for Windows
condition: and(not(variables['build.skiptest']), eq(variables['Agent.OS'],'Windows_NT'))
- script: |
codecov -B $(Build.SourceBranchName)
displayName: Publishing test coverage to Codecov
condition: and(not(variables['build.skiptest']), eq(variables['Agent.OS'],'Windows_NT'))
- script: |
./codecov -B $(Build.SourceBranchName)
displayName: Publishing test coverage to Codecov
condition: and(not(variables['build.skiptest']), eq(variables['Agent.OS'],'Linux'))