File tree Expand file tree Collapse file tree 4 files changed +41
-63
lines changed Expand file tree Collapse file tree 4 files changed +41
-63
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -2,7 +2,28 @@ parameters:
2
2
netcore1Global : true
3
3
4
4
steps :
5
- - template : builds.yml
5
+ - task : DotNetCoreCLI@2
6
+ displayName : dotnet build
7
+ inputs :
8
+ command : build
9
+ projects : progaudi.tarantool.sln
10
+ arguments : -c Release
11
+ verbosityRestore : minimal
12
+
13
+ - task : Bash@3
14
+ displayName : set version variable
15
+ inputs :
16
+ targetType : inline
17
+ script : echo "##vso[task.setvariable variable=NugetPackageVersion]$(git describe --tags | sed 's/-/./')"
18
+
19
+ - task : DotNetCoreCLI@2
20
+ displayName : pack nuget package
21
+ inputs :
22
+ command : pack
23
+ versioningScheme : byEnvVar
24
+ versionEnvVar : NugetPackageVersion
25
+ arguments : --no-build -c Release /property:PackageOutputPath=$(Build.ArtifactStagingDirectory)
26
+ verbosityPack : minimal
6
27
7
28
- task : Bash@3
8
29
inputs :
Original file line number Diff line number Diff line change 1
1
jobs :
2
- - job : macOsBuild
2
+ - job : macOs
3
3
pool :
4
4
name : Hosted macOS
5
5
steps :
6
- - template : .azure/builds.yml
7
-
8
- - job : linuxBuild
9
- pool :
10
- name : Hosted Ubuntu 1604
11
- steps :
12
- - template : .azure/builds.yml
6
+ - template : .azure/tests.yml
13
7
14
- - job : linuxTest
15
- dependsOn :
16
- - linuxBuild
8
+ - job : linux
17
9
pool :
18
10
name : Hosted Ubuntu 1604
19
11
steps :
@@ -23,25 +15,25 @@ jobs:
23
15
parameters :
24
16
netcore1Global : false
25
17
26
- - job : winBuild
27
- pool :
28
- name : Hosted VS2017
29
- steps :
30
- - template : .azure/builds.yml
31
-
32
- - job : winTest
18
+ - job : win
33
19
dependsOn :
34
- - winBuild
20
+ - macOs
21
+ - linux
35
22
pool :
36
23
name : Hosted VS2017
37
24
steps :
38
25
- template : .azure/tests.yml
39
26
40
- - job : pushToNuget
41
- dependsOn :
42
- - linuxTest
43
- - winTest
44
- pool :
45
- name : Hosted VS2017
46
- steps :
47
- - template : .azure/publish.yml
27
+ - ${{ if ne(variables['Build.Reason'], 'PullRequest') }} :
28
+ - task : NuGetCommand@2
29
+ displayName : push nuget packages
30
+ inputs :
31
+ command : push
32
+ packagesToPush : ' $(Build.ArtifactStagingDirectory)/*.nupkg'
33
+ nuGetFeedType : external
34
+ publishFeedCredentials : api.nuget.org
35
+
36
+ - task : PublishBuildArtifacts@1
37
+ inputs :
38
+ pathtoPublish : ' $(Build.ArtifactStagingDirectory)'
39
+ artifactName : nupkgs
You can’t perform that action at this time.
0 commit comments