forked from Umplify/xunit-dependency-injection
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipeline-PR.yml
49 lines (45 loc) · 1.41 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
41
42
43
44
45
46
47
48
49
variables:
Major: 1
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 6.0 sdk'
inputs:
packageType: sdk
version: 6.0.403
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)'
- task: NuGetCommand@2
displayName: 'Packing'
inputs:
command: 'pack'
packagesToPack: |
**/Xunit.Microsoft.DependencyInjection.csproj
**/examples/Xunit.Microsoft.DependencyInjection.ExampleTests/Xunit.Microsoft.DependencyInjection.ExampleTests.csproj
versioningScheme: 'byEnvVar'
versionEnvVar: 'Build.BuildNumber'