-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
azure-pipeline-PR.yml
40 lines (36 loc) · 1.08 KB
/
azure-pipeline-PR.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
variables:
Major: 9
Minor: 0
Patch: 0
BuildConfiguration: Release
name: $(Major).$(Minor).$(Patch).$(rev:r)
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
steps:
- script: echo Build Number $(name)
- task: UseDotNet@2
displayName: 'Use .NET 8.0 sdk'
inputs:
packageType: sdk
version: 9.0.100
installationPath: $(Agent.ToolsDirectory)/dotnet
- script: echo Started restoring the source code
- task: DotNetCoreCLI@2
displayName: 'Restoring'
inputs:
command: 'restore'
projects: |
**/Xunit.Microsoft.DependencyInjection.csproj
**/examples/Xunit.Microsoft.DependencyInjection.ExampleTests/Xunit.Microsoft.DependencyInjection.ExampleTests.csproj
feedsToUse: 'select'
- script: echo Started building the source code
- task: DotNetCoreCLI@2
displayName: 'Building'
inputs:
command: 'build'
projects: |
**/Xunit.Microsoft.DependencyInjection.csproj
**/examples/Xunit.Microsoft.DependencyInjection.ExampleTests/Xunit.Microsoft.DependencyInjection.ExampleTests.csproj
arguments: '--configuration $(BuildConfiguration)'