-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
azure-setup.yml
55 lines (46 loc) · 1.63 KB
/
azure-setup.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
53
54
parameters:
os: ''
steps:
- task: DotNetCoreInstaller@1
displayName: Installing .NET 6 SDK
inputs:
includePreviewVersions: true
packageType: 'sdk' # Options: runtime, sdk
version: '6.0.101'
- task: NuGetToolInstaller@0
displayName: Installing NuGet CLI
inputs:
versionSpec: '5.x'
checkLatest: true
- checkout: self
persistCredentials: true
submodules: "recursive"
fetchDepth: 1
lfs: false
- script: |
dotnet run --project build -- Test
displayName: Compile and test commit
condition: not(variables['build.skiptest'])
- task: PublishTestResults@2
condition: not(variables['build.skiptest'])
displayName: Publish test results to Azure
inputs:
testResultsFormat: 'VSTest' # Options: JUnit, NUnit, VSTest, xUnit, cTest
testResultsFiles: '*.trx'
searchFolder: '$(System.DefaultWorkingDirectory)/src/Snowflake.Framework.Tests/TestResults'
- task: PublishCodeCoverageResults@1
condition: not(variables['build.skiptest'])
displayName: Publish test coverage to Azure
inputs:
codeCoverageTool: 'cobertura' # Options: cobertura, jaCoCo
summaryFileLocation: $(System.DefaultWorkingDirectory)/src/Snowflake.Framework.Tests/coverage.cobertura.xml
- script: |
dotnet run --project build -- PackModules
displayName: Package NuGet modules
condition: not(variables['build.skippack'])
- task: PublishBuildArtifacts@1
condition: not(variables['build.skippack'])
displayName: Publishing build artifacts
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: 'nuget'