File tree Expand file tree Collapse file tree 1 file changed +19
-14
lines changed Expand file tree Collapse file tree 1 file changed +19
-14
lines changed Original file line number Diff line number Diff line change @@ -6,34 +6,39 @@ variables:
6
6
buildPlatform : ' Any CPU'
7
7
buildConfiguration : ' Release'
8
8
9
+ trigger :
10
+ - master
11
+ - ci-upgrade
12
+
13
+ pr :
14
+ - master
15
+
9
16
steps :
17
+ - task : gittools.gitversion.gitversion-task.GitVersion@4
18
+ displayName : GitVersion
19
+ inputs :
20
+ preferBundledVersion : true
21
+
10
22
- task : DotNetCoreCLI@2
11
23
displayName : Build
12
24
inputs :
13
25
command : build
14
26
projects : ' **/*.csproj'
15
- arguments : ' --configuration Release '
27
+ arguments : --configuration $(buildConfiguration) /property:Version=$(GitVersion.AssemblySemVer)
16
28
17
29
- task : DotNetCoreCLI@2
30
+ displayName : Test
18
31
inputs :
19
32
command : test
20
33
projects : ' **/*.Test/*.csproj'
21
34
arguments : ' --configuration $(buildConfiguration) --logger:trx'
22
35
23
- - task : PublishTestResults@2
24
- inputs :
25
- testRunner : xUnit
26
- testResultsFiles : ' **/*.trx'
27
-
28
36
- task : DotNetCoreCLI@2
37
+ displayName : Pack nugets
29
38
inputs :
30
- command : pack
31
- projects : ' **/*.csproj'
39
+ command : custom
40
+ custom : pack
41
+ projects : ' **/*.csproj'
42
+ arguments : /p:Version=$(GitVersion.NuGetVersionV2) --no-build --configuration $(buildConfiguration) --output $(Build.ArtifactStagingDirectory)
32
43
33
44
- task : PublishBuildArtifacts@1
34
-
35
- trigger :
36
- - master
37
-
38
- pr :
39
- - master
You can’t perform that action at this time.
0 commit comments