forked from WalletWasabi/WalletWasabi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines-osx.yml
52 lines (50 loc) · 1.62 KB
/
azure-pipelines-osx.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
52
trigger:
batch: true
variables:
testConfiguration: 'Debug'
jobs:
- job: macOS
pool:
vmImage: 'macOS-11'
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. sed -i seems unhappy with the
# shell glob but perl doesn't mind.
script: 'perl -ni -e "print unless /PathMap/" $(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