Skip to content

Commit

Permalink
Switch to common azure-pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Kozachenko committed Mar 2, 2019
1 parent 5f9e058 commit 9db5387
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 103 deletions.
11 changes: 0 additions & 11 deletions .azure/build.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .azure/test.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .azure/tests.yml

This file was deleted.

59 changes: 11 additions & 48 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,50 +1,13 @@
jobs:
- job: macOs
pool:
name: Hosted macOS
steps:
- template: .azure/build.yml

- job: linux
pool:
name: Hosted Ubuntu 1604
steps:
- template: .azure/build.yml

- script: curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin -channel 1.1
displayName: Installing .netcore 1.1

- template: .azure/tests.yml
parameters:
netcore1Global: false
variables:
sln: progaudi.tarantool.sln
tests: tests/progaudi.tarantool.tests/progaudi.tarantool.tests.csproj

- job: win
dependsOn:
- macOs
- linux
pool:
name: Hosted VS2017
steps:
- template: .azure/build.yml
resources:
repositories:
- repository: templates
type: github
name: progaudi/azure-pipelines
endpoint: progaudi

- task: PowerShell@2
displayName: pack nuget package
inputs:
targetType: inline
script: |
$version = $(git describe --tags | %{$_ -replace '-([^g])', '.$1'})
dotnet pack --no-build -v minimal -c Release /property:Version=$version /property:PackageOutputPath=$(Build.ArtifactStagingDirectory)
- ${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
- task: NuGetCommand@2
displayName: push nuget packages
inputs:
command: push
packagesToPush: '$(Build.ArtifactStagingDirectory)/*.nupkg'
nuGetFeedType: external
publishFeedCredentials: api.nuget.org

- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: nupkgs
jobs:
- template: library/nuget.yml@templates

0 comments on commit 9db5387

Please sign in to comment.