forked from nunit/nunit-csharp-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
28 lines (28 loc) · 1.05 KB
/
azure-pipelines.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
jobs:
- job: Windows
pool:
vmImage: windows-2019
steps:
- bash: |
curl -OsSL https://testspace-client.s3.amazonaws.com/testspace-windows.zip
unzip -q testspace-windows.zip
./testspace config url samples.testspace.com
./testspace -v
displayName: 'Setup'
- task: NuGetCommand@2
inputs:
command: 'restore'
restoreSolution: 'money\cs-money.sln'
- task: VSBuild@1
inputs:
solution: 'money\cs-money.sln'
vsVersion: '15.0' # Optional. Options: latest, 15.0, 14.0, 12.0, 11.0
configuration: Debug
msbuildArgs: '/p:runCodeAnalysis=true /p:codeanalysislogfile=..\analysis.xml'
- script: |
.\money\packages\OpenCover.4.7.1221\tools\OpenCover.Console -target:".\money\packages\NUnit.ConsoleRunner.3.16.3\tools\nunit3-console.exe" -targetargs:"money\bin\Debug\cs-money.dll" -output:"coverage.xml" -filter:"+[*]* -[*]*MoneyTest*" -register:user
displayName: 'Test'
- script: |
testspace analysis.xml [Tests]TestResult.xml coverage.xml
condition: always()
displayName: 'Push'