forked from WalletWasabi/WalletWasabi
-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
azure-pipelines-linux.yml
51 lines (49 loc) · 1.54 KB
/
azure-pipelines-linux.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
trigger:
batch: true
variables:
testConfiguration: 'Debug'
jobs:
- job: Linux
pool:
vmImage: 'ubuntu-20.04'
steps:
- task: UseDotNet@2
displayName: 'Install .NET'
inputs:
version: 7.0.x
- task: DotNetCoreCLI@2
displayName: 'Restore'
inputs:
command: 'restore'
restoreArguments: '--force --locked-mode'
feedsToUse: 'config'
nugetConfigPath: 'NuGet.Config'
- task: DotNetCoreCLI@2
displayName: 'Build Debug'
inputs:
command: build
arguments: --no-restore --configuration Debug
- task: DotNetCoreCLI@2
displayName: 'Build Release'
inputs:
command: build
arguments: --no-restore --configuration Release
- task: CmdLine@2
inputs:
# Remove PathMap properties which ensure deterministic builds, since this
# interferes with the coverage analysis.
script: 'sed -i "/PathMap/d" $(System.DefaultWorkingDirectory)/*/*.csproj'
- task: DotNetCoreCLI@2
displayName: 'Test Debug'
inputs:
command: test
projects: 'WalletWasabi.Tests/WalletWasabi.Tests.csproj'
arguments: --configuration $(testConfiguration) --filter "UnitTests" --logger "console;verbosity=detailed" --collect:"XPlat Code Coverage"
publishTestResults: true
- task: PublishCodeCoverageResults@1
displayName: 'Publish code coverage report'
inputs:
codeCoverageTool: 'Cobertura'
summaryFileLocation: '$(Agent.TempDirectory)/**/coverage.cobertura.xml'
pathToSources: '$(System.DefaultWorkingDirectory)/'
failIfCoverageEmpty: true