Skip to content

Commit 9db5387

Browse files
author
Roman Kozachenko
committed
Switch to common azure-pipelines
1 parent 5f9e058 commit 9db5387

File tree

4 files changed

+11
-103
lines changed

4 files changed

+11
-103
lines changed

Diff for: .azure/build.yml

-11
This file was deleted.

Diff for: .azure/test.yml

-19
This file was deleted.

Diff for: .azure/tests.yml

-25
This file was deleted.

Diff for: azure-pipelines.yml

+11-48
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,13 @@
1-
jobs:
2-
- job: macOs
3-
pool:
4-
name: Hosted macOS
5-
steps:
6-
- template: .azure/build.yml
7-
8-
- job: linux
9-
pool:
10-
name: Hosted Ubuntu 1604
11-
steps:
12-
- template: .azure/build.yml
13-
14-
- script: curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin -channel 1.1
15-
displayName: Installing .netcore 1.1
16-
17-
- template: .azure/tests.yml
18-
parameters:
19-
netcore1Global: false
1+
variables:
2+
sln: progaudi.tarantool.sln
3+
tests: tests/progaudi.tarantool.tests/progaudi.tarantool.tests.csproj
204

21-
- job: win
22-
dependsOn:
23-
- macOs
24-
- linux
25-
pool:
26-
name: Hosted VS2017
27-
steps:
28-
- template: .azure/build.yml
5+
resources:
6+
repositories:
7+
- repository: templates
8+
type: github
9+
name: progaudi/azure-pipelines
10+
endpoint: progaudi
2911

30-
- task: PowerShell@2
31-
displayName: pack nuget package
32-
inputs:
33-
targetType: inline
34-
script: |
35-
$version = $(git describe --tags | %{$_ -replace '-([^g])', '.$1'})
36-
dotnet pack --no-build -v minimal -c Release /property:Version=$version /property:PackageOutputPath=$(Build.ArtifactStagingDirectory)
37-
38-
- ${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
39-
- task: NuGetCommand@2
40-
displayName: push nuget packages
41-
inputs:
42-
command: push
43-
packagesToPush: '$(Build.ArtifactStagingDirectory)/*.nupkg'
44-
nuGetFeedType: external
45-
publishFeedCredentials: api.nuget.org
46-
47-
- task: PublishBuildArtifacts@1
48-
inputs:
49-
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
50-
artifactName: nupkgs
12+
jobs:
13+
- template: library/nuget.yml@templates

0 commit comments

Comments
 (0)